Class EmrCreateCluster.PlacementTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.PlacementTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateCluster.PlacementTypeProperty>
- Enclosing interface:
EmrCreateCluster.PlacementTypeProperty
@Stability(Stable)
public static final class EmrCreateCluster.PlacementTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateCluster.PlacementTypeProperty>
A builder for
EmrCreateCluster.PlacementTypeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) Sets the value ofEmrCreateCluster.PlacementTypeProperty.getAvailabilityZone()
availabilityZones
(List<String> availabilityZones) Sets the value ofEmrCreateCluster.PlacementTypeProperty.getAvailabilityZones()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public EmrCreateCluster.PlacementTypeProperty.Builder availabilityZone(String availabilityZone) Sets the value ofEmrCreateCluster.PlacementTypeProperty.getAvailabilityZone()
- Parameters:
availabilityZone
- The Amazon EC2 Availability Zone for the cluster. AvailabilityZone is used for uniform instance groups, while AvailabilityZones (plural) is used for instance fleets.- Returns:
this
-
availabilityZones
@Stability(Stable) public EmrCreateCluster.PlacementTypeProperty.Builder availabilityZones(List<String> availabilityZones) Sets the value ofEmrCreateCluster.PlacementTypeProperty.getAvailabilityZones()
- Parameters:
availabilityZones
- When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal Availability Zone. AvailabilityZones is used for instance fleets, while AvailabilityZone (singular) is used for uniform instance groups.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrCreateCluster.PlacementTypeProperty>
- Returns:
- a new instance of
EmrCreateCluster.PlacementTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-