Class CapacityRequestPolicyRange

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<CapacityRequestPolicyRangeBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class CapacityRequestPolicyRange
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<CapacityRequestPolicyRangeBuilder>, io.fabric8.kubernetes.api.model.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
      • CapacityRequestPolicyRange

        public CapacityRequestPolicyRange​(io.fabric8.kubernetes.api.model.Quantity max,
                                          io.fabric8.kubernetes.api.model.Quantity min,
                                          io.fabric8.kubernetes.api.model.Quantity step)
    • Method Detail

      • getMax

        public io.fabric8.kubernetes.api.model.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​(io.fabric8.kubernetes.api.model.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 io.fabric8.kubernetes.api.model.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​(io.fabric8.kubernetes.api.model.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 io.fabric8.kubernetes.api.model.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​(io.fabric8.kubernetes.api.model.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)