Class V1VolumeResourceRequirements
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1VolumeResourceRequirements
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1VolumeResourceRequirements
extends Object
VolumeResourceRequirements describes the storage resource requirements for a volume.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Limits describes the maximum amount of compute resources allowed.Requests describes the minimum amount of compute resources required.int
hashCode()
Set limits in a chainable fashion.putlimitsItem
(String key, String limitsItem) Set the value for the key for the limits map property in a chainable fashion.putrequestsItem
(String key, String requestsItem) Set the value for the key for the requests map property in a chainable fashion.Set requests in a chainable fashion.void
Set the limits property valuevoid
setRequests
(Map<String, @NotNull String> requests) Set the requests property valuetoString()
-
Field Details
-
JSON_PROPERTY_LIMITS
- See Also:
-
JSON_PROPERTY_REQUESTS
- See Also:
-
-
Constructor Details
-
V1VolumeResourceRequirements
public V1VolumeResourceRequirements()
-
-
Method Details
-
getLimits
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/- Returns:
- the limits property value
-
setLimits
Set the limits property value- Parameters:
limits
- property value to set
-
limits
Set limits in a chainable fashion.- Returns:
- The same instance of V1VolumeResourceRequirements for chaining.
-
putlimitsItem
Set the value for the key for the limits map property in a chainable fashion.- Returns:
- The same instance of V1VolumeResourceRequirements for chaining.
-
getRequests
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/- Returns:
- the requests property value
-
setRequests
Set the requests property value- Parameters:
requests
- property value to set
-
requests
Set requests in a chainable fashion.- Returns:
- The same instance of V1VolumeResourceRequirements for chaining.
-
putrequestsItem
Set the value for the key for the requests map property in a chainable fashion.- Returns:
- The same instance of V1VolumeResourceRequirements for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-