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 Details

  • Constructor Details

    • V1ResourceRequirements

      public V1ResourceRequirements()
  • Method Details

    • getClaims

      public List<@Valid V1ResourceClaim> 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

      public void setClaims(List<@Valid V1ResourceClaim> claims)
      Set the claims property value
      Parameters:
      claims - property value to set
    • claims

      public V1ResourceRequirements claims(List<@Valid V1ResourceClaim> claims)
      Set claims in a chainable fashion.
      Returns:
      The same instance of V1ResourceRequirements for chaining.
    • addclaimsItem

      public V1ResourceRequirements addclaimsItem(V1ResourceClaim claimsItem)
      Add an item to the claims property in a chainable fashion.
      Returns:
      The same instance of V1ResourceRequirements for chaining.
    • getLimits

      public Map<String,@NotNull String> 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

      public void setLimits(Map<String,@NotNull String> limits)
      Set the limits property value
      Parameters:
      limits - property value to set
    • limits

      public V1ResourceRequirements limits(Map<String,@NotNull String> limits)
      Set limits in a chainable fashion.
      Returns:
      The same instance of V1ResourceRequirements for chaining.
    • putlimitsItem

      public V1ResourceRequirements putlimitsItem(String key, String limitsItem)
      Set the value for the key for the limits map property in a chainable fashion.
      Returns:
      The same instance of V1ResourceRequirements for chaining.
    • getRequests

      public Map<String,@NotNull String> 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

      public void setRequests(Map<String,@NotNull String> requests)
      Set the requests property value
      Parameters:
      requests - property value to set
    • requests

      public V1ResourceRequirements requests(Map<String,@NotNull String> requests)
      Set requests in a chainable fashion.
      Returns:
      The same instance of V1ResourceRequirements for chaining.
    • putrequestsItem

      public V1ResourceRequirements putrequestsItem(String key, String requestsItem)
      Set the value for the key for the requests map property in a chainable fashion.
      Returns:
      The same instance of V1ResourceRequirements 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