Class LifecycleHooks
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1beta1.LifecycleHooks
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<LifecycleHooksBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class LifecycleHooks extends Object implements io.fabric8.kubernetes.api.builder.Editable<LifecycleHooksBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
LifecycleHooks allow users to pause operations on the machine at certain prefedined points within the machine lifecycle.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LifecycleHooks()No args constructor for use in serializationLifecycleHooks(List<LifecycleHook> preDrain, List<LifecycleHook> preTerminate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LifecycleHooksBuilderedit()Map<String,Object>getAdditionalProperties()List<LifecycleHook>getPreDrain()preDrain hooks prevent the machine from being drained.List<LifecycleHook>getPreTerminate()preTerminate hooks prevent the machine from being terminated.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetPreDrain(List<LifecycleHook> preDrain)preDrain hooks prevent the machine from being drained.voidsetPreTerminate(List<LifecycleHook> preTerminate)preTerminate hooks prevent the machine from being terminated.LifecycleHooksBuildertoBuilder()
-
-
-
Constructor Detail
-
LifecycleHooks
public LifecycleHooks()
No args constructor for use in serialization
-
LifecycleHooks
public LifecycleHooks(List<LifecycleHook> preDrain, List<LifecycleHook> preTerminate)
-
-
Method Detail
-
getPreDrain
public List<LifecycleHook> getPreDrain()
preDrain hooks prevent the machine from being drained. This also blocks further lifecycle events, such as termination.
-
setPreDrain
public void setPreDrain(List<LifecycleHook> preDrain)
preDrain hooks prevent the machine from being drained. This also blocks further lifecycle events, such as termination.
-
getPreTerminate
public List<LifecycleHook> getPreTerminate()
preTerminate hooks prevent the machine from being terminated. PreTerminate hooks be actioned after the Machine has been drained.
-
setPreTerminate
public void setPreTerminate(List<LifecycleHook> preTerminate)
preTerminate hooks prevent the machine from being terminated. PreTerminate hooks be actioned after the Machine has been drained.
-
edit
public LifecycleHooksBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LifecycleHooksBuilder>
-
toBuilder
public LifecycleHooksBuilder toBuilder()
-
-