Class CfnCluster.EbsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.EbsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.EbsConfigurationProperty>
- Enclosing interface:
CfnCluster.EbsConfigurationProperty
@Stability(Stable)
public static final class CfnCluster.EbsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.EbsConfigurationProperty>
A builder for
CfnCluster.EbsConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ebsBlockDeviceConfigs(List<? extends Object> ebsBlockDeviceConfigs) Sets the value ofCfnCluster.EbsConfigurationProperty.getEbsBlockDeviceConfigs()ebsBlockDeviceConfigs(IResolvable ebsBlockDeviceConfigs) Sets the value ofCfnCluster.EbsConfigurationProperty.getEbsBlockDeviceConfigs()ebsOptimized(Boolean ebsOptimized) Sets the value ofCfnCluster.EbsConfigurationProperty.getEbsOptimized()ebsOptimized(IResolvable ebsOptimized) Sets the value ofCfnCluster.EbsConfigurationProperty.getEbsOptimized()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ebsBlockDeviceConfigs
@Stability(Stable) public CfnCluster.EbsConfigurationProperty.Builder ebsBlockDeviceConfigs(IResolvable ebsBlockDeviceConfigs) Sets the value ofCfnCluster.EbsConfigurationProperty.getEbsBlockDeviceConfigs()- Parameters:
ebsBlockDeviceConfigs- An array of Amazon EBS volume specifications attached to a cluster instance.- Returns:
this
-
ebsBlockDeviceConfigs
@Stability(Stable) public CfnCluster.EbsConfigurationProperty.Builder ebsBlockDeviceConfigs(List<? extends Object> ebsBlockDeviceConfigs) Sets the value ofCfnCluster.EbsConfigurationProperty.getEbsBlockDeviceConfigs()- Parameters:
ebsBlockDeviceConfigs- An array of Amazon EBS volume specifications attached to a cluster instance.- Returns:
this
-
ebsOptimized
@Stability(Stable) public CfnCluster.EbsConfigurationProperty.Builder ebsOptimized(Boolean ebsOptimized) Sets the value ofCfnCluster.EbsConfigurationProperty.getEbsOptimized()- Parameters:
ebsOptimized- Indicates whether an Amazon EBS volume is EBS-optimized. The default is false. You should explicitly set this value to true to enable the Amazon EBS-optimized setting for an EC2 instance.- Returns:
this
-
ebsOptimized
@Stability(Stable) public CfnCluster.EbsConfigurationProperty.Builder ebsOptimized(IResolvable ebsOptimized) Sets the value ofCfnCluster.EbsConfigurationProperty.getEbsOptimized()- Parameters:
ebsOptimized- Indicates whether an Amazon EBS volume is EBS-optimized. The default is false. You should explicitly set this value to true to enable the Amazon EBS-optimized setting for an EC2 instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.EbsConfigurationProperty>- Returns:
- a new instance of
CfnCluster.EbsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-