/** * 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 CreateConfigurationProfileRequest : public AppConfigRequest { public: AWS_APPCONFIG_API 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_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 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 the following:

    *
  • For the AppConfig hosted configuration store and for feature flags, * specify hosted.

  • For an Amazon Web Services * Systems Manager Parameter Store parameter, specify either the parameter name in * the format ssm-parameter://<parameter name> or the ARN.

    *
  • For an Secrets Manager secret, specify the URI in the following * format: secrets-manager://<secret name>.

  • *

    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

  • *

    For an SSM document, specify either the document name in the format * ssm-document://<document name> or the Amazon Resource Name * (ARN).

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

A URI to locate the configuration. You can specify the following:

    *
  • For the AppConfig hosted configuration store and for feature flags, * specify hosted.

  • For an Amazon Web Services * Systems Manager Parameter Store parameter, specify either the parameter name in * the format ssm-parameter://<parameter name> or the ARN.

    *
  • For an Secrets Manager secret, specify the URI in the following * format: secrets-manager://<secret name>.

  • *

    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

  • *

    For an SSM document, specify either the document name in the format * ssm-document://<document name> or the Amazon Resource Name * (ARN).

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

A URI to locate the configuration. You can specify the following:

    *
  • For the AppConfig hosted configuration store and for feature flags, * specify hosted.

  • For an Amazon Web Services * Systems Manager Parameter Store parameter, specify either the parameter name in * the format ssm-parameter://<parameter name> or the ARN.

    *
  • For an Secrets Manager secret, specify the URI in the following * format: secrets-manager://<secret name>.

  • *

    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

  • *

    For an SSM document, specify either the document name in the format * ssm-document://<document name> or the Amazon Resource Name * (ARN).

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

A URI to locate the configuration. You can specify the following:

    *
  • For the AppConfig hosted configuration store and for feature flags, * specify hosted.

  • For an Amazon Web Services * Systems Manager Parameter Store parameter, specify either the parameter name in * the format ssm-parameter://<parameter name> or the ARN.

    *
  • For an Secrets Manager secret, specify the URI in the following * format: secrets-manager://<secret name>.

  • *

    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

  • *

    For an SSM document, specify either the document name in the format * ssm-document://<document name> or the Amazon Resource Name * (ARN).

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

A URI to locate the configuration. You can specify the following:

    *
  • For the AppConfig hosted configuration store and for feature flags, * specify hosted.

  • For an Amazon Web Services * Systems Manager Parameter Store parameter, specify either the parameter name in * the format ssm-parameter://<parameter name> or the ARN.

    *
  • For an Secrets Manager secret, specify the URI in the following * format: secrets-manager://<secret name>.

  • *

    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

  • *

    For an SSM document, specify either the document name in the format * ssm-document://<document name> or the Amazon Resource Name * (ARN).

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

A URI to locate the configuration. You can specify the following:

    *
  • For the AppConfig hosted configuration store and for feature flags, * specify hosted.

  • For an Amazon Web Services * Systems Manager Parameter Store parameter, specify either the parameter name in * the format ssm-parameter://<parameter name> or the ARN.

    *
  • For an Secrets Manager secret, specify the URI in the following * format: secrets-manager://<secret name>.

  • *

    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

  • *

    For an SSM document, specify either the document name in the format * ssm-document://<document name> or the Amazon Resource Name * (ARN).

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

A URI to locate the configuration. You can specify the following:

    *
  • For the AppConfig hosted configuration store and for feature flags, * specify hosted.

  • For an Amazon Web Services * Systems Manager Parameter Store parameter, specify either the parameter name in * the format ssm-parameter://<parameter name> or the ARN.

    *
  • For an Secrets Manager secret, specify the URI in the following * format: secrets-manager://<secret name>.

  • *

    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

  • *

    For an SSM document, specify either the document name in the format * ssm-document://<document name> or the Amazon Resource Name * (ARN).

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

A URI to locate the configuration. You can specify the following:

    *
  • For the AppConfig hosted configuration store and for feature flags, * specify hosted.

  • For an Amazon Web Services * Systems Manager Parameter Store parameter, specify either the parameter name in * the format ssm-parameter://<parameter name> or the ARN.

    *
  • For an Secrets Manager secret, specify the URI in the following * format: secrets-manager://<secret name>.

  • *

    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

  • *

    For an SSM document, specify either the document name in the format * ssm-document://<document name> or the Amazon Resource Name * (ARN).

*/ 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.

A retrieval role ARN is * not required for configurations stored in the AppConfig hosted configuration * store. It is required for all other sources that store your configuration.

* */ 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.

A retrieval role ARN is * not required for configurations stored in the AppConfig hosted configuration * store. It is required for all other sources that store your configuration.

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

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

A retrieval role ARN is * not required for configurations stored in the AppConfig hosted configuration * store. It is required for all other sources that store your configuration.

* */ 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.

A retrieval role ARN is * not required for configurations stored in the AppConfig hosted configuration * store. It is required for all other sources that store your configuration.

* */ 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.

A retrieval role ARN is * not required for configurations stored in the AppConfig hosted configuration * store. It is required for all other sources that store your configuration.

* */ 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.

A retrieval role ARN is * not required for configurations stored in the AppConfig hosted configuration * store. It is required for all other sources that store your configuration.

* */ 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.

A retrieval role ARN is * not required for configurations stored in the AppConfig hosted configuration * store. It is required for all other sources that store your configuration.

* */ 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.

A retrieval role ARN is * not required for configurations stored in the AppConfig hosted configuration * store. It is required for all other sources that store your configuration.

* */ 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; } /** *

The type of configurations contained in the profile. AppConfig supports * feature flags and freeform configurations. We * recommend you create feature flag configurations to enable or disable new * features and freeform configurations to distribute configurations to an * application. When calling this API, enter one of the following values for * Type:

AWS.AppConfig.FeatureFlags

* AWS.Freeform

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of configurations contained in the profile. AppConfig supports * feature flags and freeform configurations. We * recommend you create feature flag configurations to enable or disable new * features and freeform configurations to distribute configurations to an * application. When calling this API, enter one of the following values for * Type:

AWS.AppConfig.FeatureFlags

* AWS.Freeform

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of configurations contained in the profile. AppConfig supports * feature flags and freeform configurations. We * recommend you create feature flag configurations to enable or disable new * features and freeform configurations to distribute configurations to an * application. When calling this API, enter one of the following values for * Type:

AWS.AppConfig.FeatureFlags

* AWS.Freeform

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of configurations contained in the profile. AppConfig supports * feature flags and freeform configurations. We * recommend you create feature flag configurations to enable or disable new * features and freeform configurations to distribute configurations to an * application. When calling this API, enter one of the following values for * Type:

AWS.AppConfig.FeatureFlags

* AWS.Freeform

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of configurations contained in the profile. AppConfig supports * feature flags and freeform configurations. We * recommend you create feature flag configurations to enable or disable new * features and freeform configurations to distribute configurations to an * application. When calling this API, enter one of the following values for * Type:

AWS.AppConfig.FeatureFlags

* AWS.Freeform

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of configurations contained in the profile. AppConfig supports * feature flags and freeform configurations. We * recommend you create feature flag configurations to enable or disable new * features and freeform configurations to distribute configurations to an * application. When calling this API, enter one of the following values for * Type:

AWS.AppConfig.FeatureFlags

* AWS.Freeform

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

The type of configurations contained in the profile. AppConfig supports * feature flags and freeform configurations. We * recommend you create feature flag configurations to enable or disable new * features and freeform configurations to distribute configurations to an * application. When calling this API, enter one of the following values for * Type:

AWS.AppConfig.FeatureFlags

* AWS.Freeform

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

The type of configurations contained in the profile. AppConfig supports * feature flags and freeform configurations. We * recommend you create feature flag configurations to enable or disable new * features and freeform configurations to distribute configurations to an * application. When calling this API, enter one of the following values for * Type:

AWS.AppConfig.FeatureFlags

* AWS.Freeform

*/ inline CreateConfigurationProfileRequest& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_locationUri; bool m_locationUriHasBeenSet = false; Aws::String m_retrievalRoleArn; bool m_retrievalRoleArnHasBeenSet = false; Aws::Vector m_validators; bool m_validatorsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws