Class CapacityRequestPolicyRange
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1.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 Summary
Constructors Constructor Description CapacityRequestPolicyRange()No args constructor for use in serializationCapacityRequestPolicyRange(Quantity max, Quantity min, Quantity step)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CapacityRequestPolicyRangeBuilderedit()Map<String,Object>getAdditionalProperties()QuantitygetMax()CapacityRequestPolicyRange defines a valid range for consumable capacity values.QuantitygetMin()CapacityRequestPolicyRange defines a valid range for consumable capacity values.QuantitygetStep()CapacityRequestPolicyRange defines a valid range for consumable capacity values.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMax(Quantity max)CapacityRequestPolicyRange defines a valid range for consumable capacity values.voidsetMin(Quantity min)CapacityRequestPolicyRange defines a valid range for consumable capacity values.voidsetStep(Quantity step)CapacityRequestPolicyRange defines a valid range for consumable capacity values.CapacityRequestPolicyRangeBuildertoBuilder()
-
-
-
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.
-
edit
public CapacityRequestPolicyRangeBuilder edit()
- Specified by:
editin interfaceEditable<CapacityRequestPolicyRangeBuilder>
-
toBuilder
public CapacityRequestPolicyRangeBuilder toBuilder()
-
-