Class EmrModifyInstanceGroupByName.InstanceResizePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByName.InstanceResizePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrModifyInstanceGroupByName.InstanceResizePolicyProperty>
- Enclosing interface:
- EmrModifyInstanceGroupByName.InstanceResizePolicyProperty
@Stability(Stable)
public static final class EmrModifyInstanceGroupByName.InstanceResizePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrModifyInstanceGroupByName.InstanceResizePolicyProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instancesToProtect
(List<String> instancesToProtect) instancesToTerminate
(List<String> instancesToTerminate) instanceTerminationTimeout
(Duration instanceTerminationTimeout)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instancesToProtect
@Stability(Stable) public EmrModifyInstanceGroupByName.InstanceResizePolicyProperty.Builder instancesToProtect(List<String> instancesToProtect) - Parameters:
instancesToProtect
- Specific list of instances to be protected when shrinking an instance group.- Returns:
this
-
instancesToTerminate
@Stability(Stable) public EmrModifyInstanceGroupByName.InstanceResizePolicyProperty.Builder instancesToTerminate(List<String> instancesToTerminate) Sets the value ofEmrModifyInstanceGroupByName.InstanceResizePolicyProperty.getInstancesToTerminate()
- Parameters:
instancesToTerminate
- Specific list of instances to be terminated when shrinking an instance group.- Returns:
this
-
instanceTerminationTimeout
@Stability(Stable) public EmrModifyInstanceGroupByName.InstanceResizePolicyProperty.Builder instanceTerminationTimeout(Duration instanceTerminationTimeout) Sets the value ofEmrModifyInstanceGroupByName.InstanceResizePolicyProperty.getInstanceTerminationTimeout()
- Parameters:
instanceTerminationTimeout
- Decommissioning timeout override for the specific list of instances to be terminated.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrModifyInstanceGroupByName.InstanceResizePolicyProperty>
- Returns:
- a new instance of
EmrModifyInstanceGroupByName.InstanceResizePolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-