/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace AppConfig { namespace Model { /** */ class StartDeploymentRequest : public AppConfigRequest { public: AWS_APPCONFIG_API StartDeploymentRequest(); // 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 "StartDeployment"; } AWS_APPCONFIG_API Aws::String SerializePayload() const override; /** *

The application ID.

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

The application ID.

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

The application ID.

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

The application ID.

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

The application ID.

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

The application ID.

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

The application ID.

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

The application ID.

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

The environment ID.

*/ inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } /** *

The environment ID.

*/ inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } /** *

The environment ID.

*/ inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } /** *

The environment ID.

*/ inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } /** *

The environment ID.

*/ inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } /** *

The environment ID.

*/ inline StartDeploymentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

The environment ID.

*/ inline StartDeploymentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} /** *

The environment ID.

*/ inline StartDeploymentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} /** *

The deployment strategy ID.

*/ inline const Aws::String& GetDeploymentStrategyId() const{ return m_deploymentStrategyId; } /** *

The deployment strategy ID.

*/ inline bool DeploymentStrategyIdHasBeenSet() const { return m_deploymentStrategyIdHasBeenSet; } /** *

The deployment strategy ID.

*/ inline void SetDeploymentStrategyId(const Aws::String& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = value; } /** *

The deployment strategy ID.

*/ inline void SetDeploymentStrategyId(Aws::String&& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = std::move(value); } /** *

The deployment strategy ID.

*/ inline void SetDeploymentStrategyId(const char* value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId.assign(value); } /** *

The deployment strategy ID.

*/ inline StartDeploymentRequest& WithDeploymentStrategyId(const Aws::String& value) { SetDeploymentStrategyId(value); return *this;} /** *

The deployment strategy ID.

*/ inline StartDeploymentRequest& WithDeploymentStrategyId(Aws::String&& value) { SetDeploymentStrategyId(std::move(value)); return *this;} /** *

The deployment strategy ID.

*/ inline StartDeploymentRequest& WithDeploymentStrategyId(const char* value) { SetDeploymentStrategyId(value); return *this;} /** *

The configuration profile ID.

*/ inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; } /** *

The configuration profile ID.

*/ inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; } /** *

The configuration profile ID.

*/ inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; } /** *

The configuration profile ID.

*/ inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); } /** *

The configuration profile ID.

*/ inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); } /** *

The configuration profile ID.

*/ inline StartDeploymentRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;} /** *

The configuration profile ID.

*/ inline StartDeploymentRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;} /** *

The configuration profile ID.

*/ inline StartDeploymentRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;} /** *

The configuration version to deploy. If deploying an AppConfig hosted * configuration version, you can specify either the version number or version * label.

*/ inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; } /** *

The configuration version to deploy. If deploying an AppConfig hosted * configuration version, you can specify either the version number or version * label.

*/ inline bool ConfigurationVersionHasBeenSet() const { return m_configurationVersionHasBeenSet; } /** *

The configuration version to deploy. If deploying an AppConfig hosted * configuration version, you can specify either the version number or version * label.

*/ inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = value; } /** *

The configuration version to deploy. If deploying an AppConfig hosted * configuration version, you can specify either the version number or version * label.

*/ inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = std::move(value); } /** *

The configuration version to deploy. If deploying an AppConfig hosted * configuration version, you can specify either the version number or version * label.

*/ inline void SetConfigurationVersion(const char* value) { m_configurationVersionHasBeenSet = true; m_configurationVersion.assign(value); } /** *

The configuration version to deploy. If deploying an AppConfig hosted * configuration version, you can specify either the version number or version * label.

*/ inline StartDeploymentRequest& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;} /** *

The configuration version to deploy. If deploying an AppConfig hosted * configuration version, you can specify either the version number or version * label.

*/ inline StartDeploymentRequest& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;} /** *

The configuration version to deploy. If deploying an AppConfig hosted * configuration version, you can specify either the version number or version * label.

*/ inline StartDeploymentRequest& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;} /** *

A description of the deployment.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the deployment.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the deployment.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the deployment.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the deployment.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the deployment.

*/ inline StartDeploymentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the deployment.

*/ inline StartDeploymentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the deployment.

*/ inline StartDeploymentRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline StartDeploymentRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline StartDeploymentRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline StartDeploymentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline StartDeploymentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline StartDeploymentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline StartDeploymentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline StartDeploymentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline StartDeploymentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Metadata to assign to the deployment. Tags help organize and categorize your * AppConfig resources. Each tag consists of a key and an optional value, both of * which you define.

*/ inline StartDeploymentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this * ID to encrypt the configuration data using a customer managed key.

*/ inline const Aws::String& GetKmsKeyIdentifier() const{ return m_kmsKeyIdentifier; } /** *

The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this * ID to encrypt the configuration data using a customer managed key.

*/ inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; } /** *

The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this * ID to encrypt the configuration data using a customer managed key.

*/ inline void SetKmsKeyIdentifier(const Aws::String& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = value; } /** *

The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this * ID to encrypt the configuration data using a customer managed key.

*/ inline void SetKmsKeyIdentifier(Aws::String&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::move(value); } /** *

The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this * ID to encrypt the configuration data using a customer managed key.

*/ inline void SetKmsKeyIdentifier(const char* value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier.assign(value); } /** *

The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this * ID to encrypt the configuration data using a customer managed key.

*/ inline StartDeploymentRequest& WithKmsKeyIdentifier(const Aws::String& value) { SetKmsKeyIdentifier(value); return *this;} /** *

The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this * ID to encrypt the configuration data using a customer managed key.

*/ inline StartDeploymentRequest& WithKmsKeyIdentifier(Aws::String&& value) { SetKmsKeyIdentifier(std::move(value)); return *this;} /** *

The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this * ID to encrypt the configuration data using a customer managed key.

*/ inline StartDeploymentRequest& WithKmsKeyIdentifier(const char* value) { SetKmsKeyIdentifier(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; Aws::String m_deploymentStrategyId; bool m_deploymentStrategyIdHasBeenSet = false; Aws::String m_configurationProfileId; bool m_configurationProfileIdHasBeenSet = false; Aws::String m_configurationVersion; bool m_configurationVersionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_kmsKeyIdentifier; bool m_kmsKeyIdentifierHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws