/** * 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 namespace Aws { namespace AppConfig { namespace Model { /** */ class AWS_APPCONFIG_API CreateConfigurationProfileRequest : public AppConfigRequest { public: CreateConfigurationProfileRequest(); // 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 "CreateConfigurationProfile"; } 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 CreateConfigurationProfileRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The application ID.

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

The application ID.

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

A name for the configuration profile.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A name for the configuration profile.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A name for the configuration profile.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A name for the configuration profile.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A name for the configuration profile.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A name for the configuration profile.

*/ inline CreateConfigurationProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A name for the configuration profile.

*/ inline CreateConfigurationProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A name for the configuration profile.

*/ inline CreateConfigurationProfileRequest& WithName(const char* value) { SetName(value); return *this;} /** *

A description of the configuration profile.

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

A description of the configuration profile.

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

A description of the configuration profile.

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

A description of the configuration profile.

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

A description of the configuration profile.

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

A description of the configuration profile.

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

A description of the configuration profile.

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

A description of the configuration profile.

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

A URI to locate the configuration. You can specify a Systems Manager (SSM) * document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM * document, specify either the document name in the format * ssm-document://<Document_name> or the Amazon Resource Name * (ARN). For a parameter, specify either the parameter name in the format * ssm-parameter://<Parameter_name> or the ARN. For an Amazon S3 * object, specify the URI in the following format: * s3://<bucket>/<objectKey> . Here is an example: * s3://my-bucket/my-app/us-east-1/my-config.json

*/ inline const Aws::String& GetLocationUri() const{ return m_locationUri; } /** *

A URI to locate the configuration. You can specify a Systems Manager (SSM) * document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM * document, specify either the document name in the format * ssm-document://<Document_name> or the Amazon Resource Name * (ARN). For a parameter, specify either the parameter name in the format * ssm-parameter://<Parameter_name> or the ARN. For an Amazon S3 * object, specify the URI in the following format: * s3://<bucket>/<objectKey> . Here is an example: * s3://my-bucket/my-app/us-east-1/my-config.json

*/ inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; } /** *

A URI to locate the configuration. You can specify a Systems Manager (SSM) * document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM * document, specify either the document name in the format * ssm-document://<Document_name> or the Amazon Resource Name * (ARN). For a parameter, specify either the parameter name in the format * ssm-parameter://<Parameter_name> or the ARN. For an Amazon S3 * object, specify the URI in the following format: * s3://<bucket>/<objectKey> . Here is an example: * s3://my-bucket/my-app/us-east-1/my-config.json

*/ inline void SetLocationUri(const Aws::String& value) { m_locationUriHasBeenSet = true; m_locationUri = value; } /** *

A URI to locate the configuration. You can specify a Systems Manager (SSM) * document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM * document, specify either the document name in the format * ssm-document://<Document_name> or the Amazon Resource Name * (ARN). For a parameter, specify either the parameter name in the format * ssm-parameter://<Parameter_name> or the ARN. For an Amazon S3 * object, specify the URI in the following format: * s3://<bucket>/<objectKey> . Here is an example: * s3://my-bucket/my-app/us-east-1/my-config.json

*/ inline void SetLocationUri(Aws::String&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::move(value); } /** *

A URI to locate the configuration. You can specify a Systems Manager (SSM) * document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM * document, specify either the document name in the format * ssm-document://<Document_name> or the Amazon Resource Name * (ARN). For a parameter, specify either the parameter name in the format * ssm-parameter://<Parameter_name> or the ARN. For an Amazon S3 * object, specify the URI in the following format: * s3://<bucket>/<objectKey> . Here is an example: * s3://my-bucket/my-app/us-east-1/my-config.json

*/ inline void SetLocationUri(const char* value) { m_locationUriHasBeenSet = true; m_locationUri.assign(value); } /** *

A URI to locate the configuration. You can specify a Systems Manager (SSM) * document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM * document, specify either the document name in the format * ssm-document://<Document_name> or the Amazon Resource Name * (ARN). For a parameter, specify either the parameter name in the format * ssm-parameter://<Parameter_name> or the ARN. For an Amazon S3 * object, specify the URI in the following format: * s3://<bucket>/<objectKey> . Here is an example: * s3://my-bucket/my-app/us-east-1/my-config.json

*/ inline CreateConfigurationProfileRequest& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;} /** *

A URI to locate the configuration. You can specify a Systems Manager (SSM) * document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM * document, specify either the document name in the format * ssm-document://<Document_name> or the Amazon Resource Name * (ARN). For a parameter, specify either the parameter name in the format * ssm-parameter://<Parameter_name> or the ARN. For an Amazon S3 * object, specify the URI in the following format: * s3://<bucket>/<objectKey> . Here is an example: * s3://my-bucket/my-app/us-east-1/my-config.json

*/ inline CreateConfigurationProfileRequest& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;} /** *

A URI to locate the configuration. You can specify a Systems Manager (SSM) * document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM * document, specify either the document name in the format * ssm-document://<Document_name> or the Amazon Resource Name * (ARN). For a parameter, specify either the parameter name in the format * ssm-parameter://<Parameter_name> or the ARN. For an Amazon S3 * object, specify the URI in the following format: * s3://<bucket>/<objectKey> . Here is an example: * s3://my-bucket/my-app/us-east-1/my-config.json

*/ inline CreateConfigurationProfileRequest& WithLocationUri(const char* value) { SetLocationUri(value); return *this;} /** *

The ARN of an IAM role with permission to access the configuration at the * specified LocationUri.

*/ inline const Aws::String& GetRetrievalRoleArn() const{ return m_retrievalRoleArn; } /** *

The ARN of an IAM role with permission to access the configuration at the * specified LocationUri.

*/ inline bool RetrievalRoleArnHasBeenSet() const { return m_retrievalRoleArnHasBeenSet; } /** *

The ARN of an IAM role with permission to access the configuration at the * specified LocationUri.

*/ inline void SetRetrievalRoleArn(const Aws::String& value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn = value; } /** *

The ARN of an IAM role with permission to access the configuration at the * specified LocationUri.

*/ inline void SetRetrievalRoleArn(Aws::String&& value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn = std::move(value); } /** *

The ARN of an IAM role with permission to access the configuration at the * specified LocationUri.

*/ inline void SetRetrievalRoleArn(const char* value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn.assign(value); } /** *

The ARN of an IAM role with permission to access the configuration at the * specified LocationUri.

*/ inline CreateConfigurationProfileRequest& WithRetrievalRoleArn(const Aws::String& value) { SetRetrievalRoleArn(value); return *this;} /** *

The ARN of an IAM role with permission to access the configuration at the * specified LocationUri.

*/ inline CreateConfigurationProfileRequest& WithRetrievalRoleArn(Aws::String&& value) { SetRetrievalRoleArn(std::move(value)); return *this;} /** *

The ARN of an IAM role with permission to access the configuration at the * specified LocationUri.

*/ inline CreateConfigurationProfileRequest& WithRetrievalRoleArn(const char* value) { SetRetrievalRoleArn(value); return *this;} /** *

A list of methods for validating the configuration.

*/ inline const Aws::Vector& GetValidators() const{ return m_validators; } /** *

A list of methods for validating the configuration.

*/ inline bool ValidatorsHasBeenSet() const { return m_validatorsHasBeenSet; } /** *

A list of methods for validating the configuration.

*/ inline void SetValidators(const Aws::Vector& value) { m_validatorsHasBeenSet = true; m_validators = value; } /** *

A list of methods for validating the configuration.

*/ inline void SetValidators(Aws::Vector&& value) { m_validatorsHasBeenSet = true; m_validators = std::move(value); } /** *

A list of methods for validating the configuration.

*/ inline CreateConfigurationProfileRequest& WithValidators(const Aws::Vector& value) { SetValidators(value); return *this;} /** *

A list of methods for validating the configuration.

*/ inline CreateConfigurationProfileRequest& WithValidators(Aws::Vector&& value) { SetValidators(std::move(value)); return *this;} /** *

A list of methods for validating the configuration.

*/ inline CreateConfigurationProfileRequest& AddValidators(const Validator& value) { m_validatorsHasBeenSet = true; m_validators.push_back(value); return *this; } /** *

A list of methods for validating the configuration.

*/ inline CreateConfigurationProfileRequest& AddValidators(Validator&& value) { m_validatorsHasBeenSet = true; m_validators.push_back(std::move(value)); return *this; } /** *

Metadata to assign to the configuration profile. 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 configuration profile. 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 configuration profile. 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 configuration profile. 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 configuration profile. Tags help organize and * categorize your AppConfig resources. Each tag consists of a key and an optional * value, both of which you define.

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

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

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

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

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

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

*/ inline CreateConfigurationProfileRequest& 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 configuration profile. Tags help organize and * categorize your AppConfig resources. Each tag consists of a key and an optional * value, both of which you define.

*/ inline CreateConfigurationProfileRequest& 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 configuration profile. Tags help organize and * categorize your AppConfig resources. Each tag consists of a key and an optional * value, both of which you define.

*/ inline CreateConfigurationProfileRequest& 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 configuration profile. Tags help organize and * categorize your AppConfig resources. Each tag consists of a key and an optional * value, both of which you define.

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

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

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

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

*/ inline CreateConfigurationProfileRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::String m_locationUri; bool m_locationUriHasBeenSet; Aws::String m_retrievalRoleArn; bool m_retrievalRoleArnHasBeenSet; Aws::Vector m_validators; bool m_validatorsHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace AppConfig } // namespace Aws