/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an application. Amazon EMR Serverless uses applications to
* run jobs.See Also:
AWS
* API Reference
The ID of the application.
*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *The ID of the application.
*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *The ID of the application.
*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *The ID of the application.
*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *The ID of the application.
*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *The ID of the application.
*/ inline Application& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *The ID of the application.
*/ inline Application& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *The ID of the application.
*/ inline Application& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *The name of the application.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the application.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the application.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the application.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the application.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the application.
*/ inline Application& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the application.
*/ inline Application& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the application.
*/ inline Application& WithName(const char* value) { SetName(value); return *this;} /** *The ARN of the application.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the application.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the application.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the application.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the application.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the application.
*/ inline Application& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the application.
*/ inline Application& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the application.
*/ inline Application& WithArn(const char* value) { SetArn(value); return *this;} /** *The Amazon EMR release associated with the application.
*/ inline const Aws::String& GetReleaseLabel() const{ return m_releaseLabel; } /** *The Amazon EMR release associated with the application.
*/ inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; } /** *The Amazon EMR release associated with the application.
*/ inline void SetReleaseLabel(const Aws::String& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = value; } /** *The Amazon EMR release associated with the application.
*/ inline void SetReleaseLabel(Aws::String&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::move(value); } /** *The Amazon EMR release associated with the application.
*/ inline void SetReleaseLabel(const char* value) { m_releaseLabelHasBeenSet = true; m_releaseLabel.assign(value); } /** *The Amazon EMR release associated with the application.
*/ inline Application& WithReleaseLabel(const Aws::String& value) { SetReleaseLabel(value); return *this;} /** *The Amazon EMR release associated with the application.
*/ inline Application& WithReleaseLabel(Aws::String&& value) { SetReleaseLabel(std::move(value)); return *this;} /** *The Amazon EMR release associated with the application.
*/ inline Application& WithReleaseLabel(const char* value) { SetReleaseLabel(value); return *this;} /** *The type of application, such as Spark or Hive.
*/ inline const Aws::String& GetType() const{ return m_type; } /** *The type of application, such as Spark or Hive.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of application, such as Spark or Hive.
*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of application, such as Spark or Hive.
*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of application, such as Spark or Hive.
*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *The type of application, such as Spark or Hive.
*/ inline Application& WithType(const Aws::String& value) { SetType(value); return *this;} /** *The type of application, such as Spark or Hive.
*/ inline Application& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *The type of application, such as Spark or Hive.
*/ inline Application& WithType(const char* value) { SetType(value); return *this;} /** *The state of the application.
*/ inline const ApplicationState& GetState() const{ return m_state; } /** *The state of the application.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the application.
*/ inline void SetState(const ApplicationState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the application.
*/ inline void SetState(ApplicationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the application.
*/ inline Application& WithState(const ApplicationState& value) { SetState(value); return *this;} /** *The state of the application.
*/ inline Application& WithState(ApplicationState&& value) { SetState(std::move(value)); return *this;} /** *The state details of the application.
*/ inline const Aws::String& GetStateDetails() const{ return m_stateDetails; } /** *The state details of the application.
*/ inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; } /** *The state details of the application.
*/ inline void SetStateDetails(const Aws::String& value) { m_stateDetailsHasBeenSet = true; m_stateDetails = value; } /** *The state details of the application.
*/ inline void SetStateDetails(Aws::String&& value) { m_stateDetailsHasBeenSet = true; m_stateDetails = std::move(value); } /** *The state details of the application.
*/ inline void SetStateDetails(const char* value) { m_stateDetailsHasBeenSet = true; m_stateDetails.assign(value); } /** *The state details of the application.
*/ inline Application& WithStateDetails(const Aws::String& value) { SetStateDetails(value); return *this;} /** *The state details of the application.
*/ inline Application& WithStateDetails(Aws::String&& value) { SetStateDetails(std::move(value)); return *this;} /** *The state details of the application.
*/ inline Application& WithStateDetails(const char* value) { SetStateDetails(value); return *this;} /** *The initial capacity of the application.
*/ inline const Aws::MapThe initial capacity of the application.
*/ inline bool InitialCapacityHasBeenSet() const { return m_initialCapacityHasBeenSet; } /** *The initial capacity of the application.
*/ inline void SetInitialCapacity(const Aws::MapThe initial capacity of the application.
*/ inline void SetInitialCapacity(Aws::MapThe initial capacity of the application.
*/ inline Application& WithInitialCapacity(const Aws::MapThe initial capacity of the application.
*/ inline Application& WithInitialCapacity(Aws::MapThe initial capacity of the application.
*/ inline Application& AddInitialCapacity(const Aws::String& key, const InitialCapacityConfig& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(key, value); return *this; } /** *The initial capacity of the application.
*/ inline Application& AddInitialCapacity(Aws::String&& key, const InitialCapacityConfig& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(std::move(key), value); return *this; } /** *The initial capacity of the application.
*/ inline Application& AddInitialCapacity(const Aws::String& key, InitialCapacityConfig&& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(key, std::move(value)); return *this; } /** *The initial capacity of the application.
*/ inline Application& AddInitialCapacity(Aws::String&& key, InitialCapacityConfig&& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(std::move(key), std::move(value)); return *this; } /** *The initial capacity of the application.
*/ inline Application& AddInitialCapacity(const char* key, InitialCapacityConfig&& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(key, std::move(value)); return *this; } /** *The initial capacity of the application.
*/ inline Application& AddInitialCapacity(const char* key, const InitialCapacityConfig& value) { m_initialCapacityHasBeenSet = true; m_initialCapacity.emplace(key, value); return *this; } /** *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.
*/ inline const MaximumAllowedResources& GetMaximumCapacity() const{ return m_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.
*/ inline bool MaximumCapacityHasBeenSet() const { return m_maximumCapacityHasBeenSet; } /** *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.
*/ inline void SetMaximumCapacity(const MaximumAllowedResources& value) { m_maximumCapacityHasBeenSet = true; m_maximumCapacity = value; } /** *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.
*/ inline void SetMaximumCapacity(MaximumAllowedResources&& value) { m_maximumCapacityHasBeenSet = true; m_maximumCapacity = std::move(value); } /** *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.
*/ inline Application& WithMaximumCapacity(const MaximumAllowedResources& value) { SetMaximumCapacity(value); return *this;} /** *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.
*/ inline Application& WithMaximumCapacity(MaximumAllowedResources&& value) { SetMaximumCapacity(std::move(value)); return *this;} /** *The date and time when the application run was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The date and time when the application run was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time when the application run was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The date and time when the application run was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time when the application run was created.
*/ inline Application& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time when the application run was created.
*/ inline Application& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The date and time when the application run was last updated.
*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *The date and time when the application run was last updated.
*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *The date and time when the application run was last updated.
*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *The date and time when the application run was last updated.
*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *The date and time when the application run was last updated.
*/ inline Application& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *The date and time when the application run was last updated.
*/ inline Application& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} /** *The tags assigned to the application.
*/ inline const Aws::MapThe tags assigned to the application.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags assigned to the application.
*/ inline void SetTags(const Aws::MapThe tags assigned to the application.
*/ inline void SetTags(Aws::MapThe tags assigned to the application.
*/ inline Application& WithTags(const Aws::MapThe tags assigned to the application.
*/ inline Application& WithTags(Aws::MapThe tags assigned to the application.
*/ inline Application& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The tags assigned to the application.
*/ inline Application& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags assigned to the application.
*/ inline Application& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags assigned to the application.
*/ inline Application& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The tags assigned to the application.
*/ inline Application& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags assigned to the application.
*/ inline Application& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags assigned to the application.
*/ inline Application& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, 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 Application& WithAutoStartConfiguration(const AutoStartConfig& value) { SetAutoStartConfiguration(value); return *this;} /** *The configuration for an application to automatically start on job * submission.
*/ inline Application& 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 Application& 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 Application& WithAutoStopConfiguration(AutoStopConfig&& value) { SetAutoStopConfiguration(std::move(value)); return *this;} /** *The network configuration for customer VPC connectivity for the * application.
*/ inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; } /** *The network configuration for customer VPC connectivity for the * application.
*/ inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; } /** *The network configuration for customer VPC connectivity for the * application.
*/ inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; } /** *The network configuration for customer VPC connectivity for the * application.
*/ inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); } /** *The network configuration for customer VPC connectivity for the * application.
*/ inline Application& WithNetworkConfiguration(const NetworkConfiguration& value) { SetNetworkConfiguration(value); return *this;} /** *The network configuration for customer VPC connectivity for the * application.
*/ inline Application& 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 Application& WithArchitecture(const Architecture& value) { SetArchitecture(value); return *this;} /** *The CPU architecture of an application.
*/ inline Application& WithArchitecture(Architecture&& value) { SetArchitecture(std::move(value)); return *this;} /** *The image configuration applied to all worker types.
*/ inline const ImageConfiguration& GetImageConfiguration() const{ return m_imageConfiguration; } /** *The image configuration applied to all worker types.
*/ inline bool ImageConfigurationHasBeenSet() const { return m_imageConfigurationHasBeenSet; } /** *The image configuration applied to all worker types.
*/ inline void SetImageConfiguration(const ImageConfiguration& value) { m_imageConfigurationHasBeenSet = true; m_imageConfiguration = value; } /** *The image configuration applied to all worker types.
*/ inline void SetImageConfiguration(ImageConfiguration&& value) { m_imageConfigurationHasBeenSet = true; m_imageConfiguration = std::move(value); } /** *The image configuration applied to all worker types.
*/ inline Application& WithImageConfiguration(const ImageConfiguration& value) { SetImageConfiguration(value); return *this;} /** *The image configuration applied to all worker types.
*/ inline Application& WithImageConfiguration(ImageConfiguration&& value) { SetImageConfiguration(std::move(value)); return *this;} /** *The specification applied to each worker type.
*/ inline const Aws::MapThe specification applied to each worker type.
*/ inline bool WorkerTypeSpecificationsHasBeenSet() const { return m_workerTypeSpecificationsHasBeenSet; } /** *The specification applied to each worker type.
*/ inline void SetWorkerTypeSpecifications(const Aws::MapThe specification applied to each worker type.
*/ inline void SetWorkerTypeSpecifications(Aws::MapThe specification applied to each worker type.
*/ inline Application& WithWorkerTypeSpecifications(const Aws::MapThe specification applied to each worker type.
*/ inline Application& WithWorkerTypeSpecifications(Aws::MapThe specification applied to each worker type.
*/ inline Application& AddWorkerTypeSpecifications(const Aws::String& key, const WorkerTypeSpecification& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(key, value); return *this; } /** *The specification applied to each worker type.
*/ inline Application& AddWorkerTypeSpecifications(Aws::String&& key, const WorkerTypeSpecification& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(std::move(key), value); return *this; } /** *The specification applied to each worker type.
*/ inline Application& AddWorkerTypeSpecifications(const Aws::String& key, WorkerTypeSpecification&& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(key, std::move(value)); return *this; } /** *The specification applied to each worker type.
*/ inline Application& AddWorkerTypeSpecifications(Aws::String&& key, WorkerTypeSpecification&& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(std::move(key), std::move(value)); return *this; } /** *The specification applied to each worker type.
*/ inline Application& AddWorkerTypeSpecifications(const char* key, WorkerTypeSpecification&& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(key, std::move(value)); return *this; } /** *The specification applied to each worker type.
*/ inline Application& AddWorkerTypeSpecifications(const char* key, const WorkerTypeSpecification& value) { m_workerTypeSpecificationsHasBeenSet = true; m_workerTypeSpecifications.emplace(key, value); return *this; } private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_releaseLabel; bool m_releaseLabelHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; ApplicationState m_state; bool m_stateHasBeenSet = false; Aws::String m_stateDetails; bool m_stateDetailsHasBeenSet = false; Aws::Map