Class TaintSpec.Builder
java.lang.Object
software.amazon.awscdk.services.eks.TaintSpec.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TaintSpec>
- Enclosing interface:
- TaintSpec
@Stability(Stable)
public static final class TaintSpec.Builder
extends Object
implements software.amazon.jsii.Builder<TaintSpec>
A builder for
TaintSpec-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.effect(TaintEffect effect) Sets the value ofTaintSpec.getEffect()Sets the value ofTaintSpec.getKey()Sets the value ofTaintSpec.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
effect
Sets the value ofTaintSpec.getEffect()- Parameters:
effect- Effect type.- Returns:
this
-
key
Sets the value ofTaintSpec.getKey()- Parameters:
key- Taint key.- Returns:
this
-
value
Sets the value ofTaintSpec.getValue()- Parameters:
value- Taint value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TaintSpec>- Returns:
- a new instance of
TaintSpec - Throws:
NullPointerException- if any required attribute was not provided
-