Class V1ContainerResizePolicy

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ContainerResizePolicy

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1ContainerResizePolicy extends Object
ContainerResizePolicy represents resource resize policy for the container.
  • Field Details

  • Constructor Details

    • V1ContainerResizePolicy

      public V1ContainerResizePolicy(String resourceName, String restartPolicy)
  • Method Details

    • getResourceName

      public String getResourceName()
      Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.
      Returns:
      the resourceName property value
    • setResourceName

      public void setResourceName(String resourceName)
      Set the resourceName property value
    • resourceName

      public V1ContainerResizePolicy resourceName(String resourceName)
      Set resourceName in a chainable fashion.
      Returns:
      The same instance of V1ContainerResizePolicy for chaining.
    • getRestartPolicy

      public String getRestartPolicy()
      Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.
      Returns:
      the restartPolicy property value
    • setRestartPolicy

      public void setRestartPolicy(String restartPolicy)
      Set the restartPolicy property value
    • restartPolicy

      public V1ContainerResizePolicy restartPolicy(String restartPolicy)
      Set restartPolicy in a chainable fashion.
      Returns:
      The same instance of V1ContainerResizePolicy for chaining.
    • 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