Class CfnApplicationProps.Builder
java.lang.Object
software.amazon.awscdk.services.emrserverless.CfnApplicationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationProps>
- Enclosing interface:
CfnApplicationProps
@Stability(Stable)
public static final class CfnApplicationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationProps>
A builder for
CfnApplicationProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarchitecture
(String architecture) Sets the value ofCfnApplicationProps.getArchitecture()
autoStartConfiguration
(IResolvable autoStartConfiguration) Sets the value ofCfnApplicationProps.getAutoStartConfiguration()
autoStartConfiguration
(CfnApplication.AutoStartConfigurationProperty autoStartConfiguration) Sets the value ofCfnApplicationProps.getAutoStartConfiguration()
autoStopConfiguration
(IResolvable autoStopConfiguration) Sets the value ofCfnApplicationProps.getAutoStopConfiguration()
autoStopConfiguration
(CfnApplication.AutoStopConfigurationProperty autoStopConfiguration) Sets the value ofCfnApplicationProps.getAutoStopConfiguration()
build()
Builds the configured instance.imageConfiguration
(IResolvable imageConfiguration) Sets the value ofCfnApplicationProps.getImageConfiguration()
imageConfiguration
(CfnApplication.ImageConfigurationInputProperty imageConfiguration) Sets the value ofCfnApplicationProps.getImageConfiguration()
initialCapacity
(List<? extends Object> initialCapacity) Sets the value ofCfnApplicationProps.getInitialCapacity()
initialCapacity
(IResolvable initialCapacity) Sets the value ofCfnApplicationProps.getInitialCapacity()
interactiveConfiguration
(IResolvable interactiveConfiguration) Sets the value ofCfnApplicationProps.getInteractiveConfiguration()
interactiveConfiguration
(CfnApplication.InteractiveConfigurationProperty interactiveConfiguration) Sets the value ofCfnApplicationProps.getInteractiveConfiguration()
maximumCapacity
(IResolvable maximumCapacity) Sets the value ofCfnApplicationProps.getMaximumCapacity()
maximumCapacity
(CfnApplication.MaximumAllowedResourcesProperty maximumCapacity) Sets the value ofCfnApplicationProps.getMaximumCapacity()
monitoringConfiguration
(IResolvable monitoringConfiguration) Sets the value ofCfnApplicationProps.getMonitoringConfiguration()
monitoringConfiguration
(CfnApplication.MonitoringConfigurationProperty monitoringConfiguration) Sets the value ofCfnApplicationProps.getMonitoringConfiguration()
Sets the value ofCfnApplicationProps.getName()
networkConfiguration
(IResolvable networkConfiguration) Sets the value ofCfnApplicationProps.getNetworkConfiguration()
networkConfiguration
(CfnApplication.NetworkConfigurationProperty networkConfiguration) Sets the value ofCfnApplicationProps.getNetworkConfiguration()
releaseLabel
(String releaseLabel) Sets the value ofCfnApplicationProps.getReleaseLabel()
runtimeConfiguration
(List<? extends Object> runtimeConfiguration) Sets the value ofCfnApplicationProps.getRuntimeConfiguration()
runtimeConfiguration
(IResolvable runtimeConfiguration) Sets the value ofCfnApplicationProps.getRuntimeConfiguration()
schedulerConfiguration
(IResolvable schedulerConfiguration) Sets the value ofCfnApplicationProps.getSchedulerConfiguration()
schedulerConfiguration
(CfnApplication.SchedulerConfigurationProperty schedulerConfiguration) Sets the value ofCfnApplicationProps.getSchedulerConfiguration()
Sets the value ofCfnApplicationProps.getTags()
Sets the value ofCfnApplicationProps.getType()
workerTypeSpecifications
(Map<String, ? extends Object> workerTypeSpecifications) Sets the value ofCfnApplicationProps.getWorkerTypeSpecifications()
workerTypeSpecifications
(IResolvable workerTypeSpecifications) Sets the value ofCfnApplicationProps.getWorkerTypeSpecifications()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
releaseLabel
Sets the value ofCfnApplicationProps.getReleaseLabel()
- Parameters:
releaseLabel
- The EMR release associated with the application. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnApplicationProps.getType()
- Parameters:
type
- The type of application, such as Spark or Hive. This parameter is required.- Returns:
this
-
architecture
Sets the value ofCfnApplicationProps.getArchitecture()
- Parameters:
architecture
- The CPU architecture of an application.- Returns:
this
-
autoStartConfiguration
@Stability(Stable) public CfnApplicationProps.Builder autoStartConfiguration(IResolvable autoStartConfiguration) Sets the value ofCfnApplicationProps.getAutoStartConfiguration()
- Parameters:
autoStartConfiguration
- The configuration for an application to automatically start on job submission.- Returns:
this
-
autoStartConfiguration
@Stability(Stable) public CfnApplicationProps.Builder autoStartConfiguration(CfnApplication.AutoStartConfigurationProperty autoStartConfiguration) Sets the value ofCfnApplicationProps.getAutoStartConfiguration()
- Parameters:
autoStartConfiguration
- The configuration for an application to automatically start on job submission.- Returns:
this
-
autoStopConfiguration
@Stability(Stable) public CfnApplicationProps.Builder autoStopConfiguration(IResolvable autoStopConfiguration) Sets the value ofCfnApplicationProps.getAutoStopConfiguration()
- Parameters:
autoStopConfiguration
- The configuration for an application to automatically stop after a certain amount of time being idle.- Returns:
this
-
autoStopConfiguration
@Stability(Stable) public CfnApplicationProps.Builder autoStopConfiguration(CfnApplication.AutoStopConfigurationProperty autoStopConfiguration) Sets the value ofCfnApplicationProps.getAutoStopConfiguration()
- Parameters:
autoStopConfiguration
- The configuration for an application to automatically stop after a certain amount of time being idle.- Returns:
this
-
imageConfiguration
@Stability(Stable) public CfnApplicationProps.Builder imageConfiguration(IResolvable imageConfiguration) Sets the value ofCfnApplicationProps.getImageConfiguration()
- Parameters:
imageConfiguration
- The image configuration applied to all worker types.- Returns:
this
-
imageConfiguration
@Stability(Stable) public CfnApplicationProps.Builder imageConfiguration(CfnApplication.ImageConfigurationInputProperty imageConfiguration) Sets the value ofCfnApplicationProps.getImageConfiguration()
- Parameters:
imageConfiguration
- The image configuration applied to all worker types.- Returns:
this
-
initialCapacity
Sets the value ofCfnApplicationProps.getInitialCapacity()
- Parameters:
initialCapacity
- The initial capacity of the application.- Returns:
this
-
initialCapacity
@Stability(Stable) public CfnApplicationProps.Builder initialCapacity(List<? extends Object> initialCapacity) Sets the value ofCfnApplicationProps.getInitialCapacity()
- Parameters:
initialCapacity
- The initial capacity of the application.- Returns:
this
-
interactiveConfiguration
@Stability(Stable) public CfnApplicationProps.Builder interactiveConfiguration(IResolvable interactiveConfiguration) Sets the value ofCfnApplicationProps.getInteractiveConfiguration()
- Parameters:
interactiveConfiguration
- The interactive configuration object that enables the interactive use cases for an application.- Returns:
this
-
interactiveConfiguration
@Stability(Stable) public CfnApplicationProps.Builder interactiveConfiguration(CfnApplication.InteractiveConfigurationProperty interactiveConfiguration) Sets the value ofCfnApplicationProps.getInteractiveConfiguration()
- Parameters:
interactiveConfiguration
- The interactive configuration object that enables the interactive use cases for an application.- Returns:
this
-
maximumCapacity
Sets the value ofCfnApplicationProps.getMaximumCapacity()
- Parameters:
maximumCapacity
- The maximum capacity of the application. This is cumulative across all workers at any given point in time during the lifespan of the application is created. No new resources will be created once any one of the defined limits is hit.- Returns:
this
-
maximumCapacity
@Stability(Stable) public CfnApplicationProps.Builder maximumCapacity(CfnApplication.MaximumAllowedResourcesProperty maximumCapacity) Sets the value ofCfnApplicationProps.getMaximumCapacity()
- Parameters:
maximumCapacity
- The maximum capacity of the application. This is cumulative across all workers at any given point in time during the lifespan of the application is created. No new resources will be created once any one of the defined limits is hit.- Returns:
this
-
monitoringConfiguration
@Stability(Stable) public CfnApplicationProps.Builder monitoringConfiguration(IResolvable monitoringConfiguration) Sets the value ofCfnApplicationProps.getMonitoringConfiguration()
- Parameters:
monitoringConfiguration
- A configuration specification to be used when provisioning an application. A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file.- Returns:
this
-
monitoringConfiguration
@Stability(Stable) public CfnApplicationProps.Builder monitoringConfiguration(CfnApplication.MonitoringConfigurationProperty monitoringConfiguration) Sets the value ofCfnApplicationProps.getMonitoringConfiguration()
- Parameters:
monitoringConfiguration
- A configuration specification to be used when provisioning an application. A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file.- Returns:
this
-
name
Sets the value ofCfnApplicationProps.getName()
- Parameters:
name
- The name of the application.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnApplicationProps.Builder networkConfiguration(IResolvable networkConfiguration) Sets the value ofCfnApplicationProps.getNetworkConfiguration()
- Parameters:
networkConfiguration
- The network configuration for customer VPC connectivity for the application.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnApplicationProps.Builder networkConfiguration(CfnApplication.NetworkConfigurationProperty networkConfiguration) Sets the value ofCfnApplicationProps.getNetworkConfiguration()
- Parameters:
networkConfiguration
- The network configuration for customer VPC connectivity for the application.- Returns:
this
-
runtimeConfiguration
@Stability(Stable) public CfnApplicationProps.Builder runtimeConfiguration(IResolvable runtimeConfiguration) Sets the value ofCfnApplicationProps.getRuntimeConfiguration()
- Parameters:
runtimeConfiguration
- The Configuration specifications of an application. Each configuration consists of a classification and properties. You use this parameter when creating or updating an application. To see the runtimeConfiguration object of an application, run the GetApplication API operation.- Returns:
this
-
runtimeConfiguration
@Stability(Stable) public CfnApplicationProps.Builder runtimeConfiguration(List<? extends Object> runtimeConfiguration) Sets the value ofCfnApplicationProps.getRuntimeConfiguration()
- Parameters:
runtimeConfiguration
- The Configuration specifications of an application. Each configuration consists of a classification and properties. You use this parameter when creating or updating an application. To see the runtimeConfiguration object of an application, run the GetApplication API operation.- Returns:
this
-
schedulerConfiguration
@Stability(Stable) public CfnApplicationProps.Builder schedulerConfiguration(IResolvable schedulerConfiguration) Sets the value ofCfnApplicationProps.getSchedulerConfiguration()
- Parameters:
schedulerConfiguration
- The scheduler configuration for batch and streaming jobs running on this application. Supported with release labels emr-7.0.0 and above.- Returns:
this
-
schedulerConfiguration
@Stability(Stable) public CfnApplicationProps.Builder schedulerConfiguration(CfnApplication.SchedulerConfigurationProperty schedulerConfiguration) Sets the value ofCfnApplicationProps.getSchedulerConfiguration()
- Parameters:
schedulerConfiguration
- The scheduler configuration for batch and streaming jobs running on this application. Supported with release labels emr-7.0.0 and above.- Returns:
this
-
tags
Sets the value ofCfnApplicationProps.getTags()
- Parameters:
tags
- The tags assigned to the application.- Returns:
this
-
workerTypeSpecifications
@Stability(Stable) public CfnApplicationProps.Builder workerTypeSpecifications(IResolvable workerTypeSpecifications) Sets the value ofCfnApplicationProps.getWorkerTypeSpecifications()
- Parameters:
workerTypeSpecifications
- The specification applied to each worker type.- Returns:
this
-
workerTypeSpecifications
@Stability(Stable) public CfnApplicationProps.Builder workerTypeSpecifications(Map<String, ? extends Object> workerTypeSpecifications) Sets the value ofCfnApplicationProps.getWorkerTypeSpecifications()
- Parameters:
workerTypeSpecifications
- The specification applied to each worker type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplicationProps>
- Returns:
- a new instance of
CfnApplicationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-