Package io.fabric8.openshift.api.model
Class LifecycleHook
- java.lang.Object
-
- io.fabric8.openshift.api.model.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 defines a specific deployment lifecycle action. Only one type of action may be specified at any time.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LifecycleHook()No args constructor for use in serializationLifecycleHook(ExecNewPodHook execNewPod, String failurePolicy, List<TagImageHook> tagImages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LifecycleHookBuilderedit()Map<String,Object>getAdditionalProperties()ExecNewPodHookgetExecNewPod()LifecycleHook defines a specific deployment lifecycle action.StringgetFailurePolicy()failurePolicy specifies what action to take if the hook fails.List<TagImageHook>getTagImages()tagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetExecNewPod(ExecNewPodHook execNewPod)LifecycleHook defines a specific deployment lifecycle action.voidsetFailurePolicy(String failurePolicy)failurePolicy specifies what action to take if the hook fails.voidsetTagImages(List<TagImageHook> tagImages)tagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag.LifecycleHookBuildertoBuilder()
-
-
-
Constructor Detail
-
LifecycleHook
public LifecycleHook()
No args constructor for use in serialization
-
LifecycleHook
public LifecycleHook(ExecNewPodHook execNewPod, String failurePolicy, List<TagImageHook> tagImages)
-
-
Method Detail
-
getExecNewPod
public ExecNewPodHook getExecNewPod()
LifecycleHook defines a specific deployment lifecycle action. Only one type of action may be specified at any time.
-
setExecNewPod
public void setExecNewPod(ExecNewPodHook execNewPod)
LifecycleHook defines a specific deployment lifecycle action. Only one type of action may be specified at any time.
-
getFailurePolicy
public String getFailurePolicy()
failurePolicy specifies what action to take if the hook fails.
-
setFailurePolicy
public void setFailurePolicy(String failurePolicy)
failurePolicy specifies what action to take if the hook fails.
-
getTagImages
public List<TagImageHook> getTagImages()
tagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag.
-
setTagImages
public void setTagImages(List<TagImageHook> tagImages)
tagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag.
-
edit
public LifecycleHookBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LifecycleHookBuilder>
-
toBuilder
public LifecycleHookBuilder toBuilder()
-
-