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
-
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.- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.EbsConfigurationProperty>
- Returns:
- a new instance of
CfnCluster.EbsConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-