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.
  • Field Details

  • Constructor Details

    • V1StatefulSetOrdinals

      public V1StatefulSetOrdinals()
  • Method Details

    • start

      public V1StatefulSetOrdinals start(Integer start)
    • getStart

      @Nullable public Integer 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

      public void setStart(Integer start)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static V1StatefulSetOrdinals fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1StatefulSetOrdinals to an JSON string
      Returns:
      JSON string