Class StatefulSetOrdinals
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.apps.v1.StatefulSetOrdinals
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class StatefulSetOrdinals extends java.lang.Object implements com.marcnuri.yakc.model.Model
StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatefulSetOrdinals.Builder
-
Constructor Summary
Constructors Constructor Description StatefulSetOrdinals()
StatefulSetOrdinals(java.lang.Number start)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatefulSetOrdinals.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Number
getStart()
start is the number representing the first replica's index.int
hashCode()
void
setStart(java.lang.Number start)
start is the number representing the first replica's index.StatefulSetOrdinals.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static StatefulSetOrdinals.Builder builder()
-
toBuilder
public StatefulSetOrdinals.Builder toBuilder()
-
getStart
public java.lang.Number 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).
-
setStart
public void setStart(java.lang.Number start)
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).
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-