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