Class CfnCluster.PlacementTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.PlacementTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.PlacementTypeProperty>
- Enclosing interface:
CfnCluster.PlacementTypeProperty
@Stability(Stable)
public static final class CfnCluster.PlacementTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.PlacementTypeProperty>
A builder for
CfnCluster.PlacementTypeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) Sets the value ofCfnCluster.PlacementTypeProperty.getAvailabilityZone()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public CfnCluster.PlacementTypeProperty.Builder availabilityZone(String availabilityZone) Sets the value ofCfnCluster.PlacementTypeProperty.getAvailabilityZone()- Parameters:
availabilityZone- The Amazon EC2 Availability Zone for the cluster. This parameter is required.AvailabilityZoneis used for uniform instance groups, whileAvailabilityZones(plural) is used for instance fleets.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.PlacementTypeProperty>- Returns:
- a new instance of
CfnCluster.PlacementTypeProperty - Throws:
NullPointerException- if any required attribute was not provided
-