/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace EMRServerless { namespace Model { /** */ class UpdateApplicationRequest : public EMRServerlessRequest { public: AWS_EMRSERVERLESS_API UpdateApplicationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateApplication"; } AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override; /** *

The ID of the application to update.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The ID of the application to update.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The ID of the application to update.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The ID of the application to update.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The ID of the application to update.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The ID of the application to update.

*/ inline UpdateApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The ID of the application to update.

*/ inline UpdateApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The ID of the application to update.

*/ inline UpdateApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The client idempotency token of the application to update. Its value must be * unique for each request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client idempotency token of the application to update. Its value must be * unique for each request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client idempotency token of the application to update. Its value must be * unique for each request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client idempotency token of the application to update. Its value must be * unique for each request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client idempotency token of the application to update. Its value must be * unique for each request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client idempotency token of the application to update. Its value must be * unique for each request.

*/ inline UpdateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client idempotency token of the application to update. Its value must be * unique for each request.

*/ inline UpdateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client idempotency token of the application to update. Its value must be * unique for each request.

*/ inline UpdateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The capacity to initialize when the application is updated.

*/ inline const Aws::Map& GetInitialCapacity() const{ return m_initialCapacity; } /** *

The capacity to initialize when the application is updated.

*/ inline bool InitialCapacityHasBeenSet() const { return m_initialCapacityHasBeenSet; } /** *

The capacity to initialize when the application is updated.

*/ inline void SetInitialCapacity(const Aws::Map& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity = value; } /** *

The capacity to initialize when the application is updated.

*/ inline void SetInitialCapacity(Aws::Map&& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity = std::move(value); } /** *

The capacity to initialize when the application is updated.

*/ inline UpdateApplicationRequest& WithInitialCapacity(const Aws::Map& value) { SetInitialCapacity(value); return *this;} /** *

The capacity to initialize when the application is updated.

*/ inline UpdateApplicationRequest& WithInitialCapacity(Aws::Map&& value) { SetInitialCapacity(std::move(value)); return *this;} /** *

The capacity to initialize when the application is updated.

*/ inline UpdateApplicationRequest& AddInitialCapacity(const Aws::String& key, const InitialCapacityConfig& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(key, value); return *this; } /** *

The capacity to initialize when the application is updated.

*/ inline UpdateApplicationRequest& AddInitialCapacity(Aws::String&& key, const InitialCapacityConfig& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(std::move(key), value); return *this; } /** *

The capacity to initialize when the application is updated.

*/ inline UpdateApplicationRequest& AddInitialCapacity(const Aws::String& key, InitialCapacityConfig&& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(key, std::move(value)); return *this; } /** *

The capacity to initialize when the application is updated.

*/ inline UpdateApplicationRequest& AddInitialCapacity(Aws::String&& key, InitialCapacityConfig&& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(std::move(key), std::move(value)); return *this; } /** *

The capacity to initialize when the application is updated.

*/ inline UpdateApplicationRequest& AddInitialCapacity(const char* key, InitialCapacityConfig&& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(key, std::move(value)); return *this; } /** *

The capacity to initialize when the application is updated.

*/ inline UpdateApplicationRequest& AddInitialCapacity(const char* key, const InitialCapacityConfig& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(key, value); return *this; } /** *

The maximum capacity to allocate when the application is updated. This is * cumulative across all workers at any given point in time during the lifespan of * the application. No new resources will be created once any one of the defined * limits is hit.

*/ inline const MaximumAllowedResources& GetMaximumCapacity() const{ return m_maximumCapacity; } /** *

The maximum capacity to allocate when the application is updated. This is * cumulative across all workers at any given point in time during the lifespan of * the application. No new resources will be created once any one of the defined * limits is hit.

*/ inline bool MaximumCapacityHasBeenSet() const { return m_maximumCapacityHasBeenSet; } /** *

The maximum capacity to allocate when the application is updated. This is * cumulative across all workers at any given point in time during the lifespan of * the application. No new resources will be created once any one of the defined * limits is hit.

*/ inline void SetMaximumCapacity(const MaximumAllowedResources& value) { m_maximumCapacityHasBeenSet = true; m_maximumCapacity = value; } /** *

The maximum capacity to allocate when the application is updated. This is * cumulative across all workers at any given point in time during the lifespan of * the application. No new resources will be created once any one of the defined * limits is hit.

*/ inline void SetMaximumCapacity(MaximumAllowedResources&& value) { m_maximumCapacityHasBeenSet = true; m_maximumCapacity = std::move(value); } /** *

The maximum capacity to allocate when the application is updated. This is * cumulative across all workers at any given point in time during the lifespan of * the application. No new resources will be created once any one of the defined * limits is hit.

*/ inline UpdateApplicationRequest& WithMaximumCapacity(const MaximumAllowedResources& value) { SetMaximumCapacity(value); return *this;} /** *

The maximum capacity to allocate when the application is updated. This is * cumulative across all workers at any given point in time during the lifespan of * the application. No new resources will be created once any one of the defined * limits is hit.

*/ inline UpdateApplicationRequest& WithMaximumCapacity(MaximumAllowedResources&& value) { SetMaximumCapacity(std::move(value)); return *this;} /** *

The configuration for an application to automatically start on job * submission.

*/ inline const AutoStartConfig& GetAutoStartConfiguration() const{ return m_autoStartConfiguration; } /** *

The configuration for an application to automatically start on job * submission.

*/ inline bool AutoStartConfigurationHasBeenSet() const { return m_autoStartConfigurationHasBeenSet; } /** *

The configuration for an application to automatically start on job * submission.

*/ inline void SetAutoStartConfiguration(const AutoStartConfig& value) { m_autoStartConfigurationHasBeenSet = true; m_autoStartConfiguration = value; } /** *

The configuration for an application to automatically start on job * submission.

*/ inline void SetAutoStartConfiguration(AutoStartConfig&& value) { m_autoStartConfigurationHasBeenSet = true; m_autoStartConfiguration = std::move(value); } /** *

The configuration for an application to automatically start on job * submission.

*/ inline UpdateApplicationRequest& WithAutoStartConfiguration(const AutoStartConfig& value) { SetAutoStartConfiguration(value); return *this;} /** *

The configuration for an application to automatically start on job * submission.

*/ inline UpdateApplicationRequest& WithAutoStartConfiguration(AutoStartConfig&& value) { SetAutoStartConfiguration(std::move(value)); return *this;} /** *

The configuration for an application to automatically stop after a certain * amount of time being idle.

*/ inline const AutoStopConfig& GetAutoStopConfiguration() const{ return m_autoStopConfiguration; } /** *

The configuration for an application to automatically stop after a certain * amount of time being idle.

*/ inline bool AutoStopConfigurationHasBeenSet() const { return m_autoStopConfigurationHasBeenSet; } /** *

The configuration for an application to automatically stop after a certain * amount of time being idle.

*/ inline void SetAutoStopConfiguration(const AutoStopConfig& value) { m_autoStopConfigurationHasBeenSet = true; m_autoStopConfiguration = value; } /** *

The configuration for an application to automatically stop after a certain * amount of time being idle.

*/ inline void SetAutoStopConfiguration(AutoStopConfig&& value) { m_autoStopConfigurationHasBeenSet = true; m_autoStopConfiguration = std::move(value); } /** *

The configuration for an application to automatically stop after a certain * amount of time being idle.

*/ inline UpdateApplicationRequest& WithAutoStopConfiguration(const AutoStopConfig& value) { SetAutoStopConfiguration(value); return *this;} /** *

The configuration for an application to automatically stop after a certain * amount of time being idle.

*/ inline UpdateApplicationRequest& WithAutoStopConfiguration(AutoStopConfig&& value) { SetAutoStopConfiguration(std::move(value)); return *this;} inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; } inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; } inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; } inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); } inline UpdateApplicationRequest& WithNetworkConfiguration(const NetworkConfiguration& value) { SetNetworkConfiguration(value); return *this;} inline UpdateApplicationRequest& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;} /** *

The CPU architecture of an application.

*/ inline const Architecture& GetArchitecture() const{ return m_architecture; } /** *

The CPU architecture of an application.

*/ inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; } /** *

The CPU architecture of an application.

*/ inline void SetArchitecture(const Architecture& value) { m_architectureHasBeenSet = true; m_architecture = value; } /** *

The CPU architecture of an application.

*/ inline void SetArchitecture(Architecture&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); } /** *

The CPU architecture of an application.

*/ inline UpdateApplicationRequest& WithArchitecture(const Architecture& value) { SetArchitecture(value); return *this;} /** *

The CPU architecture of an application.

*/ inline UpdateApplicationRequest& WithArchitecture(Architecture&& value) { SetArchitecture(std::move(value)); return *this;} /** *

The image configuration to be used for all worker types. You can either set * this parameter or imageConfiguration for each worker type in * WorkerTypeSpecificationInput.

*/ inline const ImageConfigurationInput& GetImageConfiguration() const{ return m_imageConfiguration; } /** *

The image configuration to be used for all worker types. You can either set * this parameter or imageConfiguration for each worker type in * WorkerTypeSpecificationInput.

*/ inline bool ImageConfigurationHasBeenSet() const { return m_imageConfigurationHasBeenSet; } /** *

The image configuration to be used for all worker types. You can either set * this parameter or imageConfiguration for each worker type in * WorkerTypeSpecificationInput.

*/ inline void SetImageConfiguration(const ImageConfigurationInput& value) { m_imageConfigurationHasBeenSet = true; m_imageConfiguration = value; } /** *

The image configuration to be used for all worker types. You can either set * this parameter or imageConfiguration for each worker type in * WorkerTypeSpecificationInput.

*/ inline void SetImageConfiguration(ImageConfigurationInput&& value) { m_imageConfigurationHasBeenSet = true; m_imageConfiguration = std::move(value); } /** *

The image configuration to be used for all worker types. You can either set * this parameter or imageConfiguration for each worker type in * WorkerTypeSpecificationInput.

*/ inline UpdateApplicationRequest& WithImageConfiguration(const ImageConfigurationInput& value) { SetImageConfiguration(value); return *this;} /** *

The image configuration to be used for all worker types. You can either set * this parameter or imageConfiguration for each worker type in * WorkerTypeSpecificationInput.

*/ inline UpdateApplicationRequest& WithImageConfiguration(ImageConfigurationInput&& value) { SetImageConfiguration(std::move(value)); return *this;} /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline const Aws::Map& GetWorkerTypeSpecifications() const{ return m_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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline bool WorkerTypeSpecificationsHasBeenSet() const { return m_workerTypeSpecificationsHasBeenSet; } /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline void SetWorkerTypeSpecifications(const Aws::Map& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications = value; } /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline void SetWorkerTypeSpecifications(Aws::Map&& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications = std::move(value); } /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline UpdateApplicationRequest& WithWorkerTypeSpecifications(const Aws::Map& value) { SetWorkerTypeSpecifications(value); return *this;} /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline UpdateApplicationRequest& WithWorkerTypeSpecifications(Aws::Map&& value) { SetWorkerTypeSpecifications(std::move(value)); return *this;} /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline UpdateApplicationRequest& AddWorkerTypeSpecifications(const Aws::String& key, const WorkerTypeSpecificationInput& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(key, value); return *this; } /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline UpdateApplicationRequest& AddWorkerTypeSpecifications(Aws::String&& key, const WorkerTypeSpecificationInput& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(std::move(key), value); return *this; } /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline UpdateApplicationRequest& AddWorkerTypeSpecifications(const Aws::String& key, WorkerTypeSpecificationInput&& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(key, std::move(value)); return *this; } /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline UpdateApplicationRequest& AddWorkerTypeSpecifications(Aws::String&& key, WorkerTypeSpecificationInput&& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(std::move(key), std::move(value)); return *this; } /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline UpdateApplicationRequest& AddWorkerTypeSpecifications(const char* key, WorkerTypeSpecificationInput&& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(key, std::move(value)); return *this; } /** *

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 include * Driver and Executor for Spark applications and * HiveDriver and TezTask for Hive applications. You can * either set image details in this parameter for each worker type, or in * imageConfiguration for all worker types.

*/ inline UpdateApplicationRequest& AddWorkerTypeSpecifications(const char* key, const WorkerTypeSpecificationInput& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(key, value); return *this; } /** *

The Amazon EMR release label for the application. You can change the release * label to use a different release of Amazon EMR.

*/ inline const Aws::String& GetReleaseLabel() const{ return m_releaseLabel; } /** *

The Amazon EMR release label for the application. You can change the release * label to use a different release of Amazon EMR.

*/ inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; } /** *

The Amazon EMR release label for the application. You can change the release * label to use a different release of Amazon EMR.

*/ inline void SetReleaseLabel(const Aws::String& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = value; } /** *

The Amazon EMR release label for the application. You can change the release * label to use a different release of Amazon EMR.

*/ inline void SetReleaseLabel(Aws::String&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::move(value); } /** *

The Amazon EMR release label for the application. You can change the release * label to use a different release of Amazon EMR.

*/ inline void SetReleaseLabel(const char* value) { m_releaseLabelHasBeenSet = true; m_releaseLabel.assign(value); } /** *

The Amazon EMR release label for the application. You can change the release * label to use a different release of Amazon EMR.

*/ inline UpdateApplicationRequest& WithReleaseLabel(const Aws::String& value) { SetReleaseLabel(value); return *this;} /** *

The Amazon EMR release label for the application. You can change the release * label to use a different release of Amazon EMR.

*/ inline UpdateApplicationRequest& WithReleaseLabel(Aws::String&& value) { SetReleaseLabel(std::move(value)); return *this;} /** *

The Amazon EMR release label for the application. You can change the release * label to use a different release of Amazon EMR.

*/ inline UpdateApplicationRequest& WithReleaseLabel(const char* value) { SetReleaseLabel(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_initialCapacity; bool m_initialCapacityHasBeenSet = false; MaximumAllowedResources m_maximumCapacity; bool m_maximumCapacityHasBeenSet = false; AutoStartConfig m_autoStartConfiguration; bool m_autoStartConfigurationHasBeenSet = false; AutoStopConfig m_autoStopConfiguration; bool m_autoStopConfigurationHasBeenSet = false; NetworkConfiguration m_networkConfiguration; bool m_networkConfigurationHasBeenSet = false; Architecture m_architecture; bool m_architectureHasBeenSet = false; ImageConfigurationInput m_imageConfiguration; bool m_imageConfigurationHasBeenSet = false; Aws::Map m_workerTypeSpecifications; bool m_workerTypeSpecificationsHasBeenSet = false; Aws::String m_releaseLabel; bool m_releaseLabelHasBeenSet = false; }; } // namespace Model } // namespace EMRServerless } // namespace Aws