Package org.cdk8s.plus25.k8s
Class LimitRangeItem.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.LimitRangeItem.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LimitRangeItem>
- Enclosing interface:
- LimitRangeItem
@Stability(Stable) public static final class LimitRangeItem.Builder extends Object implements software.amazon.jsii.Builder<LimitRangeItem>
A builder forLimitRangeItem
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LimitRangeItembuild()Builds the configured instance.LimitRangeItem.BuilderdefaultRequest(Map<String,? extends Quantity> defaultRequest)Sets the value ofLimitRangeItem.getDefaultRequest()LimitRangeItem.BuilderdefaultValue(Map<String,? extends Quantity> defaultValue)Sets the value ofLimitRangeItem.getDefaultValue()LimitRangeItem.Buildermax(Map<String,? extends Quantity> max)Sets the value ofLimitRangeItem.getMax()LimitRangeItem.BuildermaxLimitRequestRatio(Map<String,? extends Quantity> maxLimitRequestRatio)Sets the value ofLimitRangeItem.getMaxLimitRequestRatio()LimitRangeItem.Buildermin(Map<String,? extends Quantity> min)Sets the value ofLimitRangeItem.getMin()LimitRangeItem.Buildertype(String type)Sets the value ofLimitRangeItem.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public LimitRangeItem.Builder type(String type)
Sets the value ofLimitRangeItem.getType()- Parameters:
type- Type of resource that this limit applies to. This parameter is required.- Returns:
this
-
defaultValue
@Stability(Stable) public LimitRangeItem.Builder defaultValue(Map<String,? extends Quantity> defaultValue)
Sets the value ofLimitRangeItem.getDefaultValue()- Parameters:
defaultValue- Default resource requirement limit value by resource name if resource limit is omitted.- Returns:
this
-
defaultRequest
@Stability(Stable) public LimitRangeItem.Builder defaultRequest(Map<String,? extends Quantity> defaultRequest)
Sets the value ofLimitRangeItem.getDefaultRequest()- Parameters:
defaultRequest- DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.- Returns:
this
-
max
@Stability(Stable) public LimitRangeItem.Builder max(Map<String,? extends Quantity> max)
Sets the value ofLimitRangeItem.getMax()- Parameters:
max- Max usage constraints on this kind by resource name.- Returns:
this
-
maxLimitRequestRatio
@Stability(Stable) public LimitRangeItem.Builder maxLimitRequestRatio(Map<String,? extends Quantity> maxLimitRequestRatio)
Sets the value ofLimitRangeItem.getMaxLimitRequestRatio()- Parameters:
maxLimitRequestRatio- MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value;. this represents the max burst for the named resource.- Returns:
this
-
min
@Stability(Stable) public LimitRangeItem.Builder min(Map<String,? extends Quantity> min)
Sets the value ofLimitRangeItem.getMin()- Parameters:
min- Min usage constraints on this kind by resource name.- Returns:
this
-
build
@Stability(Stable) public LimitRangeItem build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LimitRangeItem>- Returns:
- a new instance of
LimitRangeItem - Throws:
NullPointerException- if any required attribute was not provided
-
-