Class V1StatefulSetUpdateStrategy

java.lang.Object
io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1StatefulSetUpdateStrategy extends Object
StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.
  • Field Details

  • Constructor Details

    • V1StatefulSetUpdateStrategy

      public V1StatefulSetUpdateStrategy()
  • Method Details

    • rollingUpdate

    • getRollingUpdate

      @Nullable public V1RollingUpdateStatefulSetStrategy getRollingUpdate()
      Get rollingUpdate
      Returns:
      rollingUpdate
    • setRollingUpdate

      public void setRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate)
    • type

      public V1StatefulSetUpdateStrategy type(String type)
    • getType

      @Nullable public String getType()
      Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.
      Returns:
      type
    • setType

      public void setType(String type)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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 V1StatefulSetUpdateStrategy
    • fromJson

      public static V1StatefulSetUpdateStrategy fromJson(String jsonString) throws IOException
      Create an instance of V1StatefulSetUpdateStrategy given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1StatefulSetUpdateStrategy
      Throws:
      IOException - if the JSON string is invalid with respect to V1StatefulSetUpdateStrategy
    • toJson

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