Class V1StatefulSetOrdinals
java.lang.Object
io.kubernetes.client.openapi.models.V1StatefulSetOrdinals
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1StatefulSetOrdinals
extends Object
StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1StatefulSetOrdinals
Create an instance of V1StatefulSetOrdinals given an JSON stringgetStart()
start is the number representing the first replica's index.int
hashCode()
void
toJson()
Convert an instance of V1StatefulSetOrdinals 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_START
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1StatefulSetOrdinals
public V1StatefulSetOrdinals()
-
-
Method Details
-
start
-
getStart
start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas).- Returns:
- start
-
setStart
-
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 V1StatefulSetOrdinals
-
fromJson
Create an instance of V1StatefulSetOrdinals given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1StatefulSetOrdinals
- Throws:
IOException
- if the JSON string is invalid with respect to V1StatefulSetOrdinals
-
toJson
Convert an instance of V1StatefulSetOrdinals to an JSON string- Returns:
- JSON string
-