Package org.cdk8s.plus28.k8s
Class PriorityLevelConfigurationSpecV1Beta3.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.PriorityLevelConfigurationSpecV1Beta3.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PriorityLevelConfigurationSpecV1Beta3>
- Enclosing interface:
- PriorityLevelConfigurationSpecV1Beta3
@Stability(Stable) public static final class PriorityLevelConfigurationSpecV1Beta3.Builder extends Object implements software.amazon.jsii.Builder<PriorityLevelConfigurationSpecV1Beta3>
A builder forPriorityLevelConfigurationSpecV1Beta3
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriorityLevelConfigurationSpecV1Beta3build()Builds the configured instance.PriorityLevelConfigurationSpecV1Beta3.Builderexempt(ExemptPriorityLevelConfigurationV1Beta3 exempt)Sets the value ofPriorityLevelConfigurationSpecV1Beta3.getExempt()PriorityLevelConfigurationSpecV1Beta3.Builderlimited(LimitedPriorityLevelConfigurationV1Beta3 limited)Sets the value ofPriorityLevelConfigurationSpecV1Beta3.getLimited()PriorityLevelConfigurationSpecV1Beta3.Buildertype(String type)Sets the value ofPriorityLevelConfigurationSpecV1Beta3.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public PriorityLevelConfigurationSpecV1Beta3.Builder type(String type)
Sets the value ofPriorityLevelConfigurationSpecV1Beta3.getType()- Parameters:
type-typeindicates 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
-
exempt
@Stability(Stable) public PriorityLevelConfigurationSpecV1Beta3.Builder exempt(ExemptPriorityLevelConfigurationV1Beta3 exempt)
Sets the value ofPriorityLevelConfigurationSpecV1Beta3.getExempt()- Parameters:
exempt-exemptspecifies how requests are handled for an exempt priority level. This field MUST be empty iftypeis"Limited". This field MAY be non-empty iftypeis"Exempt". If empty andtypeis"Exempt"then the default values forExemptPriorityLevelConfigurationapply.- Returns:
this
-
limited
@Stability(Stable) public PriorityLevelConfigurationSpecV1Beta3.Builder limited(LimitedPriorityLevelConfigurationV1Beta3 limited)
Sets the value ofPriorityLevelConfigurationSpecV1Beta3.getLimited()- Parameters:
limited-limitedspecifies how requests are handled for a Limited priority level. This field must be non-empty if and only iftypeis"Limited".- Returns:
this
-
build
@Stability(Stable) public PriorityLevelConfigurationSpecV1Beta3 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PriorityLevelConfigurationSpecV1Beta3>- Returns:
- a new instance of
PriorityLevelConfigurationSpecV1Beta3 - Throws:
NullPointerException- if any required attribute was not provided
-
-