Class SuccessPolicyRule
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.batch.v1.SuccessPolicyRule
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SuccessPolicyRuleBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SuccessPolicyRule extends Object implements io.fabric8.kubernetes.api.builder.Editable<SuccessPolicyRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the "succeededIndexes" or "succeededCount" specified.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SuccessPolicyRule()No args constructor for use in serializationSuccessPolicyRule(Integer succeededCount, String succeededIndexes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SuccessPolicyRuleBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetSucceededCount()succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job.StringgetSucceededIndexes()succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetSucceededCount(Integer succeededCount)succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job.voidsetSucceededIndexes(String succeededIndexes)succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job.SuccessPolicyRuleBuildertoBuilder()
-
-
-
Method Detail
-
getSucceededCount
public Integer getSucceededCount()
succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
-
setSucceededCount
public void setSucceededCount(Integer succeededCount)
succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
-
getSucceededIndexes
public String getSucceededIndexes()
succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
-
setSucceededIndexes
public void setSucceededIndexes(String succeededIndexes)
succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
-
edit
public SuccessPolicyRuleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SuccessPolicyRuleBuilder>
-
toBuilder
public SuccessPolicyRuleBuilder toBuilder()
-
-