/** * 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 namespace Aws { namespace ResilienceHub { namespace Model { /** */ class CreateRecommendationTemplateRequest : public ResilienceHubRequest { public: AWS_RESILIENCEHUB_API CreateRecommendationTemplateRequest(); // 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 "CreateRecommendationTemplate"; } AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: * arn:partition:resiliencehub:region:account:app-assessment/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline const Aws::String& GetAssessmentArn() const{ return m_assessmentArn; } /** *

The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: * arn:partition:resiliencehub:region:account:app-assessment/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline bool AssessmentArnHasBeenSet() const { return m_assessmentArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: * arn:partition:resiliencehub:region:account:app-assessment/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetAssessmentArn(const Aws::String& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = value; } /** *

The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: * arn:partition:resiliencehub:region:account:app-assessment/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetAssessmentArn(Aws::String&& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: * arn:partition:resiliencehub:region:account:app-assessment/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetAssessmentArn(const char* value) { m_assessmentArnHasBeenSet = true; m_assessmentArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: * arn:partition:resiliencehub:region:account:app-assessment/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline CreateRecommendationTemplateRequest& WithAssessmentArn(const Aws::String& value) { SetAssessmentArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: * arn:partition:resiliencehub:region:account:app-assessment/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline CreateRecommendationTemplateRequest& WithAssessmentArn(Aws::String&& value) { SetAssessmentArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: * arn:partition:resiliencehub:region:account:app-assessment/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline CreateRecommendationTemplateRequest& WithAssessmentArn(const char* value) { SetAssessmentArn(value); return *this;} /** *

The name of the Amazon S3 bucket that will contain the recommendation * template.

*/ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** *

The name of the Amazon S3 bucket that will contain the recommendation * template.

*/ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** *

The name of the Amazon S3 bucket that will contain the recommendation * template.

*/ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** *

The name of the Amazon S3 bucket that will contain the recommendation * template.

*/ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** *

The name of the Amazon S3 bucket that will contain the recommendation * template.

*/ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** *

The name of the Amazon S3 bucket that will contain the recommendation * template.

*/ inline CreateRecommendationTemplateRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *

The name of the Amazon S3 bucket that will contain the recommendation * template.

*/ inline CreateRecommendationTemplateRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** *

The name of the Amazon S3 bucket that will contain the recommendation * template.

*/ inline CreateRecommendationTemplateRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;} /** *

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

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

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

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

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

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

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

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

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

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

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

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

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

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

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

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

The format for the recommendation template.

CfnJson
*

The template is CloudFormation JSON.

CfnYaml

The * template is CloudFormation YAML.

*/ inline const TemplateFormat& GetFormat() const{ return m_format; } /** *

The format for the recommendation template.

CfnJson
*

The template is CloudFormation JSON.

CfnYaml

The * template is CloudFormation YAML.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

The format for the recommendation template.

CfnJson
*

The template is CloudFormation JSON.

CfnYaml

The * template is CloudFormation YAML.

*/ inline void SetFormat(const TemplateFormat& value) { m_formatHasBeenSet = true; m_format = value; } /** *

The format for the recommendation template.

CfnJson
*

The template is CloudFormation JSON.

CfnYaml

The * template is CloudFormation YAML.

*/ inline void SetFormat(TemplateFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

The format for the recommendation template.

CfnJson
*

The template is CloudFormation JSON.

CfnYaml

The * template is CloudFormation YAML.

*/ inline CreateRecommendationTemplateRequest& WithFormat(const TemplateFormat& value) { SetFormat(value); return *this;} /** *

The format for the recommendation template.

CfnJson
*

The template is CloudFormation JSON.

CfnYaml

The * template is CloudFormation YAML.

*/ inline CreateRecommendationTemplateRequest& WithFormat(TemplateFormat&& value) { SetFormat(std::move(value)); return *this;} /** *

The name for the recommendation template.

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

The name for the recommendation template.

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

The name for the recommendation template.

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

The name for the recommendation template.

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

The name for the recommendation template.

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

The name for the recommendation template.

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

The name for the recommendation template.

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

The name for the recommendation template.

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

Identifiers for the recommendations used to create a recommendation * template.

*/ inline const Aws::Vector& GetRecommendationIds() const{ return m_recommendationIds; } /** *

Identifiers for the recommendations used to create a recommendation * template.

*/ inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; } /** *

Identifiers for the recommendations used to create a recommendation * template.

*/ inline void SetRecommendationIds(const Aws::Vector& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = value; } /** *

Identifiers for the recommendations used to create a recommendation * template.

*/ inline void SetRecommendationIds(Aws::Vector&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = std::move(value); } /** *

Identifiers for the recommendations used to create a recommendation * template.

*/ inline CreateRecommendationTemplateRequest& WithRecommendationIds(const Aws::Vector& value) { SetRecommendationIds(value); return *this;} /** *

Identifiers for the recommendations used to create a recommendation * template.

*/ inline CreateRecommendationTemplateRequest& WithRecommendationIds(Aws::Vector&& value) { SetRecommendationIds(std::move(value)); return *this;} /** *

Identifiers for the recommendations used to create a recommendation * template.

*/ inline CreateRecommendationTemplateRequest& AddRecommendationIds(const Aws::String& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; } /** *

Identifiers for the recommendations used to create a recommendation * template.

*/ inline CreateRecommendationTemplateRequest& AddRecommendationIds(Aws::String&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(std::move(value)); return *this; } /** *

Identifiers for the recommendations used to create a recommendation * template.

*/ inline CreateRecommendationTemplateRequest& AddRecommendationIds(const char* value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; } /** *

An array of strings that specify the recommendation template type or * types.

Alarm

The template is an * AlarmRecommendation template.

Sop

The template * is a SopRecommendation template.

Test

The * template is a TestRecommendation template.

*/ inline const Aws::Vector& GetRecommendationTypes() const{ return m_recommendationTypes; } /** *

An array of strings that specify the recommendation template type or * types.

Alarm

The template is an * AlarmRecommendation template.

Sop

The template * is a SopRecommendation template.

Test

The * template is a TestRecommendation template.

*/ inline bool RecommendationTypesHasBeenSet() const { return m_recommendationTypesHasBeenSet; } /** *

An array of strings that specify the recommendation template type or * types.

Alarm

The template is an * AlarmRecommendation template.

Sop

The template * is a SopRecommendation template.

Test

The * template is a TestRecommendation template.

*/ inline void SetRecommendationTypes(const Aws::Vector& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes = value; } /** *

An array of strings that specify the recommendation template type or * types.

Alarm

The template is an * AlarmRecommendation template.

Sop

The template * is a SopRecommendation template.

Test

The * template is a TestRecommendation template.

*/ inline void SetRecommendationTypes(Aws::Vector&& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes = std::move(value); } /** *

An array of strings that specify the recommendation template type or * types.

Alarm

The template is an * AlarmRecommendation template.

Sop

The template * is a SopRecommendation template.

Test

The * template is a TestRecommendation template.

*/ inline CreateRecommendationTemplateRequest& WithRecommendationTypes(const Aws::Vector& value) { SetRecommendationTypes(value); return *this;} /** *

An array of strings that specify the recommendation template type or * types.

Alarm

The template is an * AlarmRecommendation template.

Sop

The template * is a SopRecommendation template.

Test

The * template is a TestRecommendation template.

*/ inline CreateRecommendationTemplateRequest& WithRecommendationTypes(Aws::Vector&& value) { SetRecommendationTypes(std::move(value)); return *this;} /** *

An array of strings that specify the recommendation template type or * types.

Alarm

The template is an * AlarmRecommendation template.

Sop

The template * is a SopRecommendation template.

Test

The * template is a TestRecommendation template.

*/ inline CreateRecommendationTemplateRequest& AddRecommendationTypes(const RenderRecommendationType& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes.push_back(value); return *this; } /** *

An array of strings that specify the recommendation template type or * types.

Alarm

The template is an * AlarmRecommendation template.

Sop

The template * is a SopRecommendation template.

Test

The * template is a TestRecommendation template.

*/ inline CreateRecommendationTemplateRequest& AddRecommendationTypes(RenderRecommendationType&& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes.push_back(std::move(value)); return *this; } /** *

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline CreateRecommendationTemplateRequest& 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 resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline CreateRecommendationTemplateRequest& 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 resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline CreateRecommendationTemplateRequest& 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 resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline CreateRecommendationTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_assessmentArn; bool m_assessmentArnHasBeenSet = false; Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; TemplateFormat m_format; bool m_formatHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_recommendationIds; bool m_recommendationIdsHasBeenSet = false; Aws::Vector m_recommendationTypes; bool m_recommendationTypesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws