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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Name of the resource to which this resource resize policy applies.Restart policy to apply when specified resource is resized.int
hashCode()
resourceName
(String resourceName) Set resourceName in a chainable fashion.restartPolicy
(String restartPolicy) Set restartPolicy in a chainable fashion.void
setResourceName
(String resourceName) Set the resourceName property valuevoid
setRestartPolicy
(String restartPolicy) Set the restartPolicy property valuetoString()
-
Field Details
-
JSON_PROPERTY_RESOURCE_NAME
- See Also:
-
JSON_PROPERTY_RESTART_POLICY
- See Also:
-
-
Constructor Details
-
V1ContainerResizePolicy
-
-
Method Details
-
getResourceName
Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.- Returns:
- the resourceName property value
-
setResourceName
Set the resourceName property value- Parameters:
resourceName
- property value to set
-
resourceName
Set resourceName in a chainable fashion.- Returns:
- The same instance of V1ContainerResizePolicy for chaining.
-
getRestartPolicy
Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.- Returns:
- the restartPolicy property value
-
setRestartPolicy
Set the restartPolicy property value- Parameters:
restartPolicy
- property value to set
-
restartPolicy
Set restartPolicy in a chainable fashion.- Returns:
- The same instance of V1ContainerResizePolicy for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-