Package org.cdk8s.plus23.k8s
Class PriorityLevelConfigurationSpecV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.PriorityLevelConfigurationSpecV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PriorityLevelConfigurationSpecV1Beta1>
- Enclosing interface:
- PriorityLevelConfigurationSpecV1Beta1
@Stability(Stable) public static final class PriorityLevelConfigurationSpecV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<PriorityLevelConfigurationSpecV1Beta1>
A builder forPriorityLevelConfigurationSpecV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriorityLevelConfigurationSpecV1Beta1
build()
Builds the configured instance.PriorityLevelConfigurationSpecV1Beta1.Builder
limited(LimitedPriorityLevelConfigurationV1Beta1 limited)
Sets the value ofPriorityLevelConfigurationSpecV1Beta1.getLimited()
PriorityLevelConfigurationSpecV1Beta1.Builder
type(String type)
Sets the value ofPriorityLevelConfigurationSpecV1Beta1.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public PriorityLevelConfigurationSpecV1Beta1.Builder type(String type)
Sets the value ofPriorityLevelConfigurationSpecV1Beta1.getType()
- Parameters:
type
- `type` indicates whether this priority level is subject to limitation on request execution. This parameter is required. A value of"Exempt"
means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of"Limited"
means that (a) requests of this priority level are subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.- Returns:
this
-
limited
@Stability(Stable) public PriorityLevelConfigurationSpecV1Beta1.Builder limited(LimitedPriorityLevelConfigurationV1Beta1 limited)
Sets the value ofPriorityLevelConfigurationSpecV1Beta1.getLimited()
- Parameters:
limited
- `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only iftype
is"Limited"
.- Returns:
this
-
build
@Stability(Stable) public PriorityLevelConfigurationSpecV1Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PriorityLevelConfigurationSpecV1Beta1>
- Returns:
- a new instance of
PriorityLevelConfigurationSpecV1Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-