Package io.fabric8.kubernetes.api.model
Class ContainerRestartRuleOnExitCodes
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ContainerRestartRuleOnExitCodes
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ContainerRestartRuleOnExitCodesBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ContainerRestartRuleOnExitCodes extends Object implements io.fabric8.kubernetes.api.builder.Editable<ContainerRestartRuleOnExitCodesBuilder>, KubernetesResource
ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContainerRestartRuleOnExitCodes()No args constructor for use in serializationContainerRestartRuleOnExitCodes(String operator, List<Integer> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerRestartRuleOnExitCodesBuilderedit()Map<String,Object>getAdditionalProperties()StringgetOperator()Represents the relationship between the container exit code(s) and the specified values.List<Integer>getValues()Specifies the set of values to check for container exit codes.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetOperator(String operator)Represents the relationship between the container exit code(s) and the specified values.voidsetValues(List<Integer> values)Specifies the set of values to check for container exit codes.ContainerRestartRuleOnExitCodesBuildertoBuilder()
-
-
-
Method Detail
-
getOperator
public String getOperator()
Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in theset of specified values.
- NotIn: the requirement is satisfied if the container exit code is
not in the set of specified values.
-
setOperator
public void setOperator(String operator)
Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in theset of specified values.
- NotIn: the requirement is satisfied if the container exit code is
not in the set of specified values.
-
getValues
public List<Integer> getValues()
Specifies the set of values to check for container exit codes. At most 255 elements are allowed.
-
setValues
public void setValues(List<Integer> values)
Specifies the set of values to check for container exit codes. At most 255 elements are allowed.
-
edit
public ContainerRestartRuleOnExitCodesBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ContainerRestartRuleOnExitCodesBuilder>
-
toBuilder
public ContainerRestartRuleOnExitCodesBuilder toBuilder()
-
-