Package org.cdk8s.plus24
Class NodeTaintQueryOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.NodeTaintQueryOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NodeTaintQueryOptions>
- Enclosing interface:
- NodeTaintQueryOptions
@Stability(Stable) public static final class NodeTaintQueryOptions.Builder extends Object implements software.amazon.jsii.Builder<NodeTaintQueryOptions>
A builder forNodeTaintQueryOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeTaintQueryOptions
build()
Builds the configured instance.NodeTaintQueryOptions.Builder
effect(TaintEffect effect)
Sets the value ofNodeTaintQueryOptions.getEffect()
NodeTaintQueryOptions.Builder
evictAfter(org.cdk8s.Duration evictAfter)
Sets the value ofNodeTaintQueryOptions.getEvictAfter()
-
-
-
Method Detail
-
effect
@Stability(Stable) public NodeTaintQueryOptions.Builder effect(TaintEffect effect)
Sets the value ofNodeTaintQueryOptions.getEffect()
- Parameters:
effect
- The taint effect to match.- Returns:
this
-
evictAfter
@Stability(Stable) public NodeTaintQueryOptions.Builder evictAfter(org.cdk8s.Duration evictAfter)
Sets the value ofNodeTaintQueryOptions.getEvictAfter()
- Parameters:
evictAfter
- How much time should a pod that tolerates the `NO_EXECUTE` effect be bound to the node. Only applies for theNO_EXECUTE
effect.- Returns:
this
-
build
@Stability(Stable) public NodeTaintQueryOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NodeTaintQueryOptions>
- Returns:
- a new instance of
NodeTaintQueryOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-