Class V1RollingUpdateDaemonSet

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1RollingUpdateDaemonSet extends Object
Spec to control the desired behavior of daemon set rolling update.
  • Field Details

  • Constructor Details

    • V1RollingUpdateDaemonSet

      public V1RollingUpdateDaemonSet()
  • Method Details

    • maxSurge

      public V1RollingUpdateDaemonSet maxSurge(IntOrString maxSurge)
    • getMaxSurge

      @Nullable public IntOrString getMaxSurge()
      IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
      Returns:
      maxSurge
    • setMaxSurge

      public void setMaxSurge(IntOrString maxSurge)
    • maxUnavailable

      public V1RollingUpdateDaemonSet maxUnavailable(IntOrString maxUnavailable)
    • getMaxUnavailable

      @Nullable public IntOrString getMaxUnavailable()
      IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
      Returns:
      maxUnavailable
    • setMaxUnavailable

      public void setMaxUnavailable(IntOrString maxUnavailable)
    • 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 V1RollingUpdateDaemonSet
    • fromJson

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

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