Interface CreateApplicationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateApplicationRequest.Builder,CreateApplicationRequest>
,EmrServerlessRequest.Builder
,SdkBuilder<CreateApplicationRequest.Builder,CreateApplicationRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateApplicationRequest
public static interface CreateApplicationRequest.Builder extends EmrServerlessRequest.Builder, SdkPojo, CopyableBuilder<CreateApplicationRequest.Builder,CreateApplicationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateApplicationRequest.Builder
architecture(String architecture)
The CPU architecture of an application.CreateApplicationRequest.Builder
architecture(Architecture architecture)
The CPU architecture of an application.default CreateApplicationRequest.Builder
autoStartConfiguration(Consumer<AutoStartConfig.Builder> autoStartConfiguration)
The configuration for an application to automatically start on job submission.CreateApplicationRequest.Builder
autoStartConfiguration(AutoStartConfig autoStartConfiguration)
The configuration for an application to automatically start on job submission.default CreateApplicationRequest.Builder
autoStopConfiguration(Consumer<AutoStopConfig.Builder> autoStopConfiguration)
The configuration for an application to automatically stop after a certain amount of time being idle.CreateApplicationRequest.Builder
autoStopConfiguration(AutoStopConfig autoStopConfiguration)
The configuration for an application to automatically stop after a certain amount of time being idle.CreateApplicationRequest.Builder
clientToken(String clientToken)
The client idempotency token of the application to create.default CreateApplicationRequest.Builder
imageConfiguration(Consumer<ImageConfigurationInput.Builder> imageConfiguration)
The image configuration for all worker types.CreateApplicationRequest.Builder
imageConfiguration(ImageConfigurationInput imageConfiguration)
The image configuration for all worker types.CreateApplicationRequest.Builder
initialCapacity(Map<String,InitialCapacityConfig> initialCapacity)
The capacity to initialize when the application is created.default CreateApplicationRequest.Builder
maximumCapacity(Consumer<MaximumAllowedResources.Builder> maximumCapacity)
The maximum capacity to allocate when the application is created.CreateApplicationRequest.Builder
maximumCapacity(MaximumAllowedResources maximumCapacity)
The maximum capacity to allocate when the application is created.default CreateApplicationRequest.Builder
monitoringConfiguration(Consumer<MonitoringConfiguration.Builder> monitoringConfiguration)
The configuration setting for monitoring.CreateApplicationRequest.Builder
monitoringConfiguration(MonitoringConfiguration monitoringConfiguration)
The configuration setting for monitoring.CreateApplicationRequest.Builder
name(String name)
The name of the application.default CreateApplicationRequest.Builder
networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
The network configuration for customer VPC connectivity.CreateApplicationRequest.Builder
networkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for customer VPC connectivity.CreateApplicationRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateApplicationRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateApplicationRequest.Builder
releaseLabel(String releaseLabel)
The Amazon EMR release associated with the application.CreateApplicationRequest.Builder
runtimeConfiguration(Collection<Configuration> runtimeConfiguration)
The Configuration specifications to use when creating an application.CreateApplicationRequest.Builder
runtimeConfiguration(Consumer<Configuration.Builder>... runtimeConfiguration)
The Configuration specifications to use when creating an application.CreateApplicationRequest.Builder
runtimeConfiguration(Configuration... runtimeConfiguration)
The Configuration specifications to use when creating an application.CreateApplicationRequest.Builder
tags(Map<String,String> tags)
The tags assigned to the application.CreateApplicationRequest.Builder
type(String type)
The type of application you want to start, such as Spark or Hive.CreateApplicationRequest.Builder
workerTypeSpecifications(Map<String,WorkerTypeSpecificationInput> workerTypeSpecifications)
The key-value pairs that specify worker type toWorkerTypeSpecificationInput
.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.emrserverless.model.EmrServerlessRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
CreateApplicationRequest.Builder name(String name)
The name of the application.
- Parameters:
name
- The name of the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
releaseLabel
CreateApplicationRequest.Builder releaseLabel(String releaseLabel)
The Amazon EMR release associated with the application.
- Parameters:
releaseLabel
- The Amazon EMR release associated with the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
CreateApplicationRequest.Builder type(String type)
The type of application you want to start, such as Spark or Hive.
- Parameters:
type
- The type of application you want to start, such as Spark or Hive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
CreateApplicationRequest.Builder clientToken(String clientToken)
The client idempotency token of the application to create. Its value must be unique for each request.
- Parameters:
clientToken
- The client idempotency token of the application to create. Its value must be unique for each request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initialCapacity
CreateApplicationRequest.Builder initialCapacity(Map<String,InitialCapacityConfig> initialCapacity)
The capacity to initialize when the application is created.
- Parameters:
initialCapacity
- The capacity to initialize when the application is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximumCapacity
CreateApplicationRequest.Builder maximumCapacity(MaximumAllowedResources maximumCapacity)
The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit.
- Parameters:
maximumCapacity
- The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximumCapacity
default CreateApplicationRequest.Builder maximumCapacity(Consumer<MaximumAllowedResources.Builder> maximumCapacity)
The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit.
This is a convenience method that creates an instance of theMaximumAllowedResources.Builder
avoiding the need to create one manually viaMaximumAllowedResources.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomaximumCapacity(MaximumAllowedResources)
.- Parameters:
maximumCapacity
- a consumer that will call methods onMaximumAllowedResources.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
maximumCapacity(MaximumAllowedResources)
-
tags
CreateApplicationRequest.Builder tags(Map<String,String> tags)
The tags assigned to the application.
- Parameters:
tags
- The tags assigned to the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoStartConfiguration
CreateApplicationRequest.Builder autoStartConfiguration(AutoStartConfig autoStartConfiguration)
The configuration for an application to automatically start on job submission.
- Parameters:
autoStartConfiguration
- The configuration for an application to automatically start on job submission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoStartConfiguration
default CreateApplicationRequest.Builder autoStartConfiguration(Consumer<AutoStartConfig.Builder> autoStartConfiguration)
The configuration for an application to automatically start on job submission.
This is a convenience method that creates an instance of theAutoStartConfig.Builder
avoiding the need to create one manually viaAutoStartConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoStartConfiguration(AutoStartConfig)
.- Parameters:
autoStartConfiguration
- a consumer that will call methods onAutoStartConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
autoStartConfiguration(AutoStartConfig)
-
autoStopConfiguration
CreateApplicationRequest.Builder autoStopConfiguration(AutoStopConfig autoStopConfiguration)
The configuration for an application to automatically stop after a certain amount of time being idle.
- Parameters:
autoStopConfiguration
- The configuration for an application to automatically stop after a certain amount of time being idle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoStopConfiguration
default CreateApplicationRequest.Builder autoStopConfiguration(Consumer<AutoStopConfig.Builder> autoStopConfiguration)
The configuration for an application to automatically stop after a certain amount of time being idle.
This is a convenience method that creates an instance of theAutoStopConfig.Builder
avoiding the need to create one manually viaAutoStopConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoStopConfiguration(AutoStopConfig)
.- Parameters:
autoStopConfiguration
- a consumer that will call methods onAutoStopConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
autoStopConfiguration(AutoStopConfig)
-
networkConfiguration
CreateApplicationRequest.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for customer VPC connectivity.
- Parameters:
networkConfiguration
- The network configuration for customer VPC connectivity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
default CreateApplicationRequest.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
The network configuration for customer VPC connectivity.
This is a convenience method that creates an instance of theNetworkConfiguration.Builder
avoiding the need to create one manually viaNetworkConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkConfiguration(NetworkConfiguration)
.- Parameters:
networkConfiguration
- a consumer that will call methods onNetworkConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
networkConfiguration(NetworkConfiguration)
-
architecture
CreateApplicationRequest.Builder architecture(String architecture)
The CPU architecture of an application.
- Parameters:
architecture
- The CPU architecture of an application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Architecture
,Architecture
-
architecture
CreateApplicationRequest.Builder architecture(Architecture architecture)
The CPU architecture of an application.
- Parameters:
architecture
- The CPU architecture of an application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Architecture
,Architecture
-
imageConfiguration
CreateApplicationRequest.Builder imageConfiguration(ImageConfigurationInput imageConfiguration)
The image configuration for all worker types. You can either set this parameter or
imageConfiguration
for each worker type inworkerTypeSpecifications
.- Parameters:
imageConfiguration
- The image configuration for all worker types. You can either set this parameter orimageConfiguration
for each worker type inworkerTypeSpecifications
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageConfiguration
default CreateApplicationRequest.Builder imageConfiguration(Consumer<ImageConfigurationInput.Builder> imageConfiguration)
The image configuration for all worker types. You can either set this parameter or
This is a convenience method that creates an instance of theimageConfiguration
for each worker type inworkerTypeSpecifications
.ImageConfigurationInput.Builder
avoiding the need to create one manually viaImageConfigurationInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageConfiguration(ImageConfigurationInput)
.- Parameters:
imageConfiguration
- a consumer that will call methods onImageConfigurationInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
imageConfiguration(ImageConfigurationInput)
-
workerTypeSpecifications
CreateApplicationRequest.Builder workerTypeSpecifications(Map<String,WorkerTypeSpecificationInput> workerTypeSpecifications)
The key-value pairs that specify worker type to
WorkerTypeSpecificationInput
. This parameter must contain all valid worker types for a Spark or Hive application. Valid worker types includeDriver
andExecutor
for Spark applications andHiveDriver
andTezTask
for Hive applications. You can either set image details in this parameter for each worker type, or inimageConfiguration
for all worker types.- Parameters:
workerTypeSpecifications
- The key-value pairs that specify worker type toWorkerTypeSpecificationInput
. This parameter must contain all valid worker types for a Spark or Hive application. Valid worker types includeDriver
andExecutor
for Spark applications andHiveDriver
andTezTask
for Hive applications. You can either set image details in this parameter for each worker type, or inimageConfiguration
for all worker types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeConfiguration
CreateApplicationRequest.Builder runtimeConfiguration(Collection<Configuration> runtimeConfiguration)
The Configuration specifications to use when creating an application. Each configuration consists of a classification and properties. This configuration is applied to all the job runs submitted under the application.
- Parameters:
runtimeConfiguration
- The Configuration specifications to use when creating an application. Each configuration consists of a classification and properties. This configuration is applied to all the job runs submitted under the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeConfiguration
CreateApplicationRequest.Builder runtimeConfiguration(Configuration... runtimeConfiguration)
The Configuration specifications to use when creating an application. Each configuration consists of a classification and properties. This configuration is applied to all the job runs submitted under the application.
- Parameters:
runtimeConfiguration
- The Configuration specifications to use when creating an application. Each configuration consists of a classification and properties. This configuration is applied to all the job runs submitted under the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeConfiguration
CreateApplicationRequest.Builder runtimeConfiguration(Consumer<Configuration.Builder>... runtimeConfiguration)
The Configuration specifications to use when creating an application. Each configuration consists of a classification and properties. This configuration is applied to all the job runs submitted under the application.
This is a convenience method that creates an instance of theConfiguration.Builder
avoiding the need to create one manually viaConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#runtimeConfiguration(List
.) - Parameters:
runtimeConfiguration
- a consumer that will call methods onConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#runtimeConfiguration(java.util.Collection
)
-
monitoringConfiguration
CreateApplicationRequest.Builder monitoringConfiguration(MonitoringConfiguration monitoringConfiguration)
The configuration setting for monitoring.
- Parameters:
monitoringConfiguration
- The configuration setting for monitoring.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoringConfiguration
default CreateApplicationRequest.Builder monitoringConfiguration(Consumer<MonitoringConfiguration.Builder> monitoringConfiguration)
The configuration setting for monitoring.
This is a convenience method that creates an instance of theMonitoringConfiguration.Builder
avoiding the need to create one manually viaMonitoringConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitoringConfiguration(MonitoringConfiguration)
.- Parameters:
monitoringConfiguration
- a consumer that will call methods onMonitoringConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
monitoringConfiguration(MonitoringConfiguration)
-
overrideConfiguration
CreateApplicationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateApplicationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-