Class CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eks.CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty>
- Enclosing interface:
CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty
@Stability(Stable)
public static final class CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty>
A builder for
CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.minRepairWaitTimeMins(Number minRepairWaitTimeMins) nodeMonitoringCondition(String nodeMonitoringCondition) nodeUnhealthyReason(String nodeUnhealthyReason) repairAction(String repairAction)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
minRepairWaitTimeMins
@Stability(Stable) public CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty.Builder minRepairWaitTimeMins(Number minRepairWaitTimeMins) Sets the value ofCfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty.getMinRepairWaitTimeMins()- Parameters:
minRepairWaitTimeMins- Specify the minimum time in minutes to wait before attempting to repair a node with this specificnodeMonitoringConditionandnodeUnhealthyReason.- Returns:
this
-
nodeMonitoringCondition
@Stability(Stable) public CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty.Builder nodeMonitoringCondition(String nodeMonitoringCondition) Sets the value ofCfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty.getNodeMonitoringCondition()- Parameters:
nodeMonitoringCondition- Specify an unhealthy condition reported by the node monitoring agent that this override would apply to.- Returns:
this
-
nodeUnhealthyReason
@Stability(Stable) public CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty.Builder nodeUnhealthyReason(String nodeUnhealthyReason) - Parameters:
nodeUnhealthyReason- Specify a reason reported by the node monitoring agent that this override would apply to.- Returns:
this
-
repairAction
@Stability(Stable) public CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty.Builder repairAction(String repairAction) - 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<CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty>- Returns:
- a new instance of
CfnNodegroupPropsMixin.NodeRepairConfigOverridesProperty - Throws:
NullPointerException- if any required attribute was not provided
-