Class V1PodFailurePolicy
java.lang.Object
io.kubernetes.client.openapi.models.V1PodFailurePolicy
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1PodFailurePolicy
extends Object
PodFailurePolicy describes how failed pods influence the backoffLimit.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem
(V1PodFailurePolicyRule rulesItem) boolean
static V1PodFailurePolicy
Create an instance of V1PodFailurePolicy given an JSON stringgetRules()
A list of pod failure policy rules.int
hashCode()
rules
(List<V1PodFailurePolicyRule> rules) void
setRules
(List<V1PodFailurePolicyRule> rules) toJson()
Convert an instance of V1PodFailurePolicy to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_RULES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1PodFailurePolicy
public V1PodFailurePolicy()
-
-
Method Details
-
rules
-
addRulesItem
-
getRules
A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.- Returns:
- rules
-
setRules
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1PodFailurePolicy
-
fromJson
Create an instance of V1PodFailurePolicy given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1PodFailurePolicy
- Throws:
IOException
- if the JSON string is invalid with respect to V1PodFailurePolicy
-
toJson
Convert an instance of V1PodFailurePolicy to an JSON string- Returns:
- JSON string
-