Class LifecycleHook
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1beta1.LifecycleHook
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<LifecycleHookBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class LifecycleHook extends Object implements io.fabric8.kubernetes.api.builder.Editable<LifecycleHookBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
LifecycleHook represents a single instance of a lifecycle hook- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LifecycleHook()No args constructor for use in serializationLifecycleHook(String name, String owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LifecycleHookBuilderedit()Map<String,Object>getAdditionalProperties()StringgetName()name defines a unique name for the lifcycle hook.StringgetOwner()owner defines the owner of the lifecycle hook.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)name defines a unique name for the lifcycle hook.voidsetOwner(String owner)owner defines the owner of the lifecycle hook.LifecycleHookBuildertoBuilder()
-
-
-
Method Detail
-
getName
public String getName()
name defines a unique name for the lifcycle hook. The name should be unique and descriptive, ideally 1-3 words, in CamelCase or it may be namespaced, eg. foo.example.com/CamelCase. Names must be unique and should only be managed by a single entity.
-
setName
public void setName(String name)
name defines a unique name for the lifcycle hook. The name should be unique and descriptive, ideally 1-3 words, in CamelCase or it may be namespaced, eg. foo.example.com/CamelCase. Names must be unique and should only be managed by a single entity.
-
getOwner
public String getOwner()
owner defines the owner of the lifecycle hook. This should be descriptive enough so that users can identify who/what is responsible for blocking the lifecycle. This could be the name of a controller (e.g. clusteroperator/etcd) or an administrator managing the hook.
-
setOwner
public void setOwner(String owner)
owner defines the owner of the lifecycle hook. This should be descriptive enough so that users can identify who/what is responsible for blocking the lifecycle. This could be the name of a controller (e.g. clusteroperator/etcd) or an administrator managing the hook.
-
edit
public LifecycleHookBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LifecycleHookBuilder>
-
toBuilder
public LifecycleHookBuilder toBuilder()
-
-