Class CapacityRequestPolicyRange

  • All Implemented Interfaces:
    Editable<CapacityRequestPolicyRangeBuilder>, KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class CapacityRequestPolicyRange
    extends Object
    implements Editable<CapacityRequestPolicyRangeBuilder>, KubernetesResource
    CapacityRequestPolicyRange defines a valid range for consumable capacity values.


    - If the requested amount is less than Min, it is rounded up to the Min value.

    - If Step is set and the requested amount is between Min and Max but not aligned with Step,

    it will be rounded up to the next value equal to Min + (n * Step).

    - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).

    - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,

    and the device cannot be allocated.

    See Also:
    Serialized Form
    • Constructor Detail

      • CapacityRequestPolicyRange

        public CapacityRequestPolicyRange()
        No args constructor for use in serialization
    • Method Detail

      • getMax

        public Quantity getMax()
        CapacityRequestPolicyRange defines a valid range for consumable capacity values.


        - If the requested amount is less than Min, it is rounded up to the Min value.

        - If Step is set and the requested amount is between Min and Max but not aligned with Step,

        it will be rounded up to the next value equal to Min + (n * Step).

        - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).

        - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,

        and the device cannot be allocated.

      • setMax

        public void setMax​(Quantity max)
        CapacityRequestPolicyRange defines a valid range for consumable capacity values.


        - If the requested amount is less than Min, it is rounded up to the Min value.

        - If Step is set and the requested amount is between Min and Max but not aligned with Step,

        it will be rounded up to the next value equal to Min + (n * Step).

        - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).

        - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,

        and the device cannot be allocated.

      • getMin

        public Quantity getMin()
        CapacityRequestPolicyRange defines a valid range for consumable capacity values.


        - If the requested amount is less than Min, it is rounded up to the Min value.

        - If Step is set and the requested amount is between Min and Max but not aligned with Step,

        it will be rounded up to the next value equal to Min + (n * Step).

        - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).

        - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,

        and the device cannot be allocated.

      • setMin

        public void setMin​(Quantity min)
        CapacityRequestPolicyRange defines a valid range for consumable capacity values.


        - If the requested amount is less than Min, it is rounded up to the Min value.

        - If Step is set and the requested amount is between Min and Max but not aligned with Step,

        it will be rounded up to the next value equal to Min + (n * Step).

        - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).

        - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,

        and the device cannot be allocated.

      • getStep

        public Quantity getStep()
        CapacityRequestPolicyRange defines a valid range for consumable capacity values.


        - If the requested amount is less than Min, it is rounded up to the Min value.

        - If Step is set and the requested amount is between Min and Max but not aligned with Step,

        it will be rounded up to the next value equal to Min + (n * Step).

        - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).

        - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,

        and the device cannot be allocated.

      • setStep

        public void setStep​(Quantity step)
        CapacityRequestPolicyRange defines a valid range for consumable capacity values.


        - If the requested amount is less than Min, it is rounded up to the Min value.

        - If Step is set and the requested amount is between Min and Max but not aligned with Step,

        it will be rounded up to the next value equal to Min + (n * Step).

        - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).

        - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,

        and the device cannot be allocated.

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)