Class V1DeploymentStrategy

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1DeploymentStrategy extends Object
DeploymentStrategy describes how to replace existing pods with new ones.
  • Field Details

  • Constructor Details

    • V1DeploymentStrategy

      public V1DeploymentStrategy()
  • Method Details

    • rollingUpdate

      public V1DeploymentStrategy rollingUpdate(V1RollingUpdateDeployment rollingUpdate)
    • getRollingUpdate

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

      public void setRollingUpdate(V1RollingUpdateDeployment rollingUpdate)
    • type

      public V1DeploymentStrategy type(String type)
    • getType

      @Nullable public String getType()
      Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". 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 V1DeploymentStrategy
    • fromJson

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

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