Package org.cdk8s.plus24.k8s
Class Taint.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.Taint.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Taint
build()
Builds the configured instance.Taint.Builder
effect(String effect)
Sets the value ofTaint.getEffect()
Taint.Builder
key(String key)
Sets the value ofTaint.getKey()
Taint.Builder
timeAdded(Instant timeAdded)
Sets the value ofTaint.getTimeAdded()
Taint.Builder
value(String value)
Sets the value ofTaint.getValue()
-
-
-
Method Detail
-
effect
@Stability(Stable) public Taint.Builder effect(String effect)
Sets the value ofTaint.getEffect()
- Parameters:
effect
- Required. This parameter is required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.- Returns:
this
-
key
@Stability(Stable) public Taint.Builder key(String key)
Sets the value ofTaint.getKey()
- Parameters:
key
- Required. This parameter is required. The taint key to be applied to a node.- Returns:
this
-
timeAdded
@Stability(Stable) public Taint.Builder timeAdded(Instant timeAdded)
Sets the value ofTaint.getTimeAdded()
- Parameters:
timeAdded
- TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.- Returns:
this
-
value
@Stability(Stable) public Taint.Builder value(String value)
Sets the value ofTaint.getValue()
- Parameters:
value
- The taint value corresponding to the taint key.- Returns:
this
-
build
@Stability(Stable) public Taint build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Taint>
- Returns:
- a new instance of
Taint
- Throws:
NullPointerException
- if any required attribute was not provided
-
-