Class V1ResourceRequirements
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ResourceRequirements
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ResourceRequirements
extends Object
ResourceRequirements describes the compute resource requirements.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddclaimsItem
(V1ResourceClaim claimsItem) Add an item to the claims property in a chainable fashion.claims
(List<@Valid V1ResourceClaim> claims) Set claims in a chainable fashion.boolean
List<@Valid V1ResourceClaim>
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.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
setClaims
(List<@Valid V1ResourceClaim> claims) Set the claims property valuevoid
Set the limits property valuevoid
setRequests
(Map<String, String> requests) Set the requests property valuetoString()
-
Field Details
-
JSON_PROPERTY_CLAIMS
- See Also:
-
JSON_PROPERTY_LIMITS
- See Also:
-
JSON_PROPERTY_REQUESTS
- See Also:
-
-
Constructor Details
-
V1ResourceRequirements
public V1ResourceRequirements()
-
-
Method Details
-
getClaims
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.- Returns:
- the claims property value
-
setClaims
Set the claims property value -
claims
Set claims in a chainable fashion.- Returns:
- The same instance of V1ResourceRequirements for chaining.
-
addclaimsItem
Add an item to the claims property in a chainable fashion.- Returns:
- The same instance of V1ResourceRequirements for chaining.
-
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 -
limits
Set limits in a chainable fashion.- Returns:
- The same instance of V1ResourceRequirements for chaining.
-
putlimitsItem
Set the value for the key for the limits map property in a chainable fashion.- Returns:
- The same instance of V1ResourceRequirements 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 -
requests
Set requests in a chainable fashion.- Returns:
- The same instance of V1ResourceRequirements for chaining.
-
putrequestsItem
Set the value for the key for the requests map property in a chainable fashion.- Returns:
- The same instance of V1ResourceRequirements for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-