Class V1RollingUpdateStatefulSetStrategy
java.lang.Object
io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1RollingUpdateStatefulSetStrategy
extends Object
RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of V1RollingUpdateStatefulSetStrategy given an JSON stringIntOrString is a type that can hold an int32 or a string.Partition indicates the ordinal at which the StatefulSet should be partitioned for updates.inthashCode()maxUnavailable(IntOrString maxUnavailable) voidsetMaxUnavailable(IntOrString maxUnavailable) voidsetPartition(Integer partition) toJson()Convert an instance of V1RollingUpdateStatefulSetStrategy to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MAX_UNAVAILABLE
- See Also:
-
SERIALIZED_NAME_PARTITION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1RollingUpdateStatefulSetStrategy
public V1RollingUpdateStatefulSetStrategy()
-
-
Method Details
-
partition
-
getPartition
Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.- Returns:
- partition
-
setPartition
-
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 V1RollingUpdateStatefulSetStrategy
-
fromJson
Create an instance of V1RollingUpdateStatefulSetStrategy given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1RollingUpdateStatefulSetStrategy
- Throws:
IOException- if the JSON string is invalid with respect to V1RollingUpdateStatefulSetStrategy
-
toJson
Convert an instance of V1RollingUpdateStatefulSetStrategy to an JSON string- Returns:
- JSON string