Class EmrModifyInstanceGroupByName.ShrinkPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByName.ShrinkPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrModifyInstanceGroupByName.ShrinkPolicyProperty>
- Enclosing interface:
- EmrModifyInstanceGroupByName.ShrinkPolicyProperty
@Stability(Stable)
public static final class EmrModifyInstanceGroupByName.ShrinkPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrModifyInstanceGroupByName.ShrinkPolicyProperty>
A builder for
EmrModifyInstanceGroupByName.ShrinkPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.decommissionTimeout
(Duration decommissionTimeout) instanceResizePolicy
(EmrModifyInstanceGroupByName.InstanceResizePolicyProperty instanceResizePolicy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
decommissionTimeout
@Stability(Stable) public EmrModifyInstanceGroupByName.ShrinkPolicyProperty.Builder decommissionTimeout(Duration decommissionTimeout) - Parameters:
decommissionTimeout
- The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.- Returns:
this
-
instanceResizePolicy
@Stability(Stable) public EmrModifyInstanceGroupByName.ShrinkPolicyProperty.Builder instanceResizePolicy(EmrModifyInstanceGroupByName.InstanceResizePolicyProperty instanceResizePolicy) - Parameters:
instanceResizePolicy
- Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrModifyInstanceGroupByName.ShrinkPolicyProperty>
- Returns:
- a new instance of
EmrModifyInstanceGroupByName.ShrinkPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-