Class V1SuccessPolicy
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1SuccessPolicy
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1SuccessPolicy
extends Object
SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddrulesItem
(V1SuccessPolicyRule rulesItem) Add an item to the rules property in a chainable fashion.boolean
List<@Valid V1SuccessPolicyRule>
getRules()
rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`.int
hashCode()
rules
(List<@Valid V1SuccessPolicyRule> rules) Set rules in a chainable fashion.void
setRules
(List<@Valid V1SuccessPolicyRule> rules) Set the rules property valuetoString()
-
Field Details
-
JSON_PROPERTY_RULES
- See Also:
-
-
Constructor Details
-
V1SuccessPolicy
-
-
Method Details
-
getRules
rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.- Returns:
- the rules property value
-
setRules
Set the rules property value- Parameters:
rules
- property value to set
-
rules
Set rules in a chainable fashion.- Returns:
- The same instance of V1SuccessPolicy for chaining.
-
addrulesItem
Add an item to the rules property in a chainable fashion.- Returns:
- The same instance of V1SuccessPolicy for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-