Class CfnNodegroup.NodeRepairConfigOverridesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnNodegroup.NodeRepairConfigOverridesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodegroup.NodeRepairConfigOverridesProperty>
- Enclosing interface:
CfnNodegroup.NodeRepairConfigOverridesProperty
@Stability(Stable)
public static final class CfnNodegroup.NodeRepairConfigOverridesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodegroup.NodeRepairConfigOverridesProperty>
A builder for
CfnNodegroup.NodeRepairConfigOverridesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.minRepairWaitTimeMins(Number minRepairWaitTimeMins) nodeMonitoringCondition(String nodeMonitoringCondition) nodeUnhealthyReason(String nodeUnhealthyReason) Sets the value ofCfnNodegroup.NodeRepairConfigOverridesProperty.getNodeUnhealthyReason()repairAction(String repairAction) Sets the value ofCfnNodegroup.NodeRepairConfigOverridesProperty.getRepairAction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
minRepairWaitTimeMins
@Stability(Stable) public CfnNodegroup.NodeRepairConfigOverridesProperty.Builder minRepairWaitTimeMins(Number minRepairWaitTimeMins) - Parameters:
minRepairWaitTimeMins- Specify the minimum time in minutes to wait before attempting to repair a node with this specific NodeMonitoringCondition and NodeUnhealthyReason.- Returns:
this
-
nodeMonitoringCondition
@Stability(Stable) public CfnNodegroup.NodeRepairConfigOverridesProperty.Builder nodeMonitoringCondition(String nodeMonitoringCondition) - Parameters:
nodeMonitoringCondition- Specify an unhealthy condition reported by the node monitoring agent that this override would apply to.- Returns:
this
-
nodeUnhealthyReason
@Stability(Stable) public CfnNodegroup.NodeRepairConfigOverridesProperty.Builder nodeUnhealthyReason(String nodeUnhealthyReason) Sets the value ofCfnNodegroup.NodeRepairConfigOverridesProperty.getNodeUnhealthyReason()- Parameters:
nodeUnhealthyReason- Specify a reason reported by the node monitoring agent that this override would apply to.- Returns:
this
-
repairAction
@Stability(Stable) public CfnNodegroup.NodeRepairConfigOverridesProperty.Builder repairAction(String repairAction) Sets the value ofCfnNodegroup.NodeRepairConfigOverridesProperty.getRepairAction()- Parameters:
repairAction- Specify the repair action to take for nodes when all of the specified conditions are met.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNodegroup.NodeRepairConfigOverridesProperty>- Returns:
- a new instance of
CfnNodegroup.NodeRepairConfigOverridesProperty - Throws:
NullPointerException- if any required attribute was not provided
-