Class V1SuccessPolicyRule
java.lang.Object
io.kubernetes.client.openapi.models.V1SuccessPolicyRule
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1SuccessPolicyRule
extends Object
SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1SuccessPolicyRule
Create an instance of V1SuccessPolicyRule given an JSON stringsucceededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job.succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job.int
hashCode()
void
setSucceededCount
(Integer succeededCount) void
setSucceededIndexes
(String succeededIndexes) succeededCount
(Integer succeededCount) succeededIndexes
(String succeededIndexes) toJson()
Convert an instance of V1SuccessPolicyRule to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_SUCCEEDED_COUNT
- See Also:
-
SERIALIZED_NAME_SUCCEEDED_INDEXES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1SuccessPolicyRule
public V1SuccessPolicyRule()
-
-
Method Details
-
succeededCount
-
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.- Returns:
- succeededCount
-
setSucceededCount
-
succeededIndexes
-
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.- Returns:
- succeededIndexes
-
setSucceededIndexes
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1SuccessPolicyRule
-
fromJson
Create an instance of V1SuccessPolicyRule given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1SuccessPolicyRule
- Throws:
IOException
- if the JSON string is invalid with respect to V1SuccessPolicyRule
-
toJson
Convert an instance of V1SuccessPolicyRule to an JSON string- Returns:
- JSON string
-