/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace ResilienceHub { namespace Model { /** */ class ListRecommendationTemplatesRequest : public ResilienceHubRequest { public: AWS_RESILIENCEHUB_API ListRecommendationTemplatesRequest(); // 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 "ListRecommendationTemplates"; } AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override; AWS_RESILIENCEHUB_API void AddQueryStringParameters(Aws::Http::URI& uri) 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 ListRecommendationTemplatesRequest& 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 ListRecommendationTemplatesRequest& 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 ListRecommendationTemplatesRequest& WithAssessmentArn(const char* value) { SetAssessmentArn(value); return *this;} /** *

The maximum number of results to include in the response. If more results * exist than the specified MaxResults value, a token is included in * the response so that the remaining results can be retrieved.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to include in the response. If more results * exist than the specified MaxResults value, a token is included in * the response so that the remaining results can be retrieved.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to include in the response. If more results * exist than the specified MaxResults value, a token is included in * the response so that the remaining results can be retrieved.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to include in the response. If more results * exist than the specified MaxResults value, a token is included in * the response so that the remaining results can be retrieved.

*/ inline ListRecommendationTemplatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The name for one of the listed recommendation templates.

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

The name for one of the listed recommendation templates.

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

The name for one of the listed recommendation templates.

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

The name for one of the listed recommendation templates.

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

The name for one of the listed recommendation templates.

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

The name for one of the listed recommendation templates.

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

The name for one of the listed recommendation templates.

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

The name for one of the listed recommendation templates.

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

Null, or the token from a previous call to get the next set of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Null, or the token from a previous call to get the next set of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

Null, or the token from a previous call to get the next set of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

Null, or the token from a previous call to get the next set of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

Null, or the token from a previous call to get the next set of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

Null, or the token from a previous call to get the next set of results.

*/ inline ListRecommendationTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Null, or the token from a previous call to get the next set of results.

*/ inline ListRecommendationTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Null, or the token from a previous call to get the next set of results.

*/ inline ListRecommendationTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The Amazon Resource Name (ARN) for a recommendation template.

*/ inline const Aws::String& GetRecommendationTemplateArn() const{ return m_recommendationTemplateArn; } /** *

The Amazon Resource Name (ARN) for a recommendation template.

*/ inline bool RecommendationTemplateArnHasBeenSet() const { return m_recommendationTemplateArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for a recommendation template.

*/ inline void SetRecommendationTemplateArn(const Aws::String& value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn = value; } /** *

The Amazon Resource Name (ARN) for a recommendation template.

*/ inline void SetRecommendationTemplateArn(Aws::String&& value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for a recommendation template.

*/ inline void SetRecommendationTemplateArn(const char* value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn.assign(value); } /** *

The Amazon Resource Name (ARN) for a recommendation template.

*/ inline ListRecommendationTemplatesRequest& WithRecommendationTemplateArn(const Aws::String& value) { SetRecommendationTemplateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for a recommendation template.

*/ inline ListRecommendationTemplatesRequest& WithRecommendationTemplateArn(Aws::String&& value) { SetRecommendationTemplateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for a recommendation template.

*/ inline ListRecommendationTemplatesRequest& WithRecommendationTemplateArn(const char* value) { SetRecommendationTemplateArn(value); return *this;} /** *

The default is to sort by ascending startTime. To sort by descending * startTime, set reverseOrder to true.

*/ inline bool GetReverseOrder() const{ return m_reverseOrder; } /** *

The default is to sort by ascending startTime. To sort by descending * startTime, set reverseOrder to true.

*/ inline bool ReverseOrderHasBeenSet() const { return m_reverseOrderHasBeenSet; } /** *

The default is to sort by ascending startTime. To sort by descending * startTime, set reverseOrder to true.

*/ inline void SetReverseOrder(bool value) { m_reverseOrderHasBeenSet = true; m_reverseOrder = value; } /** *

The default is to sort by ascending startTime. To sort by descending * startTime, set reverseOrder to true.

*/ inline ListRecommendationTemplatesRequest& WithReverseOrder(bool value) { SetReverseOrder(value); return *this;} /** *

The status of the action.

*/ inline const Aws::Vector& GetStatus() const{ return m_status; } /** *

The status of the action.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the action.

*/ inline void SetStatus(const Aws::Vector& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the action.

*/ inline void SetStatus(Aws::Vector&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the action.

*/ inline ListRecommendationTemplatesRequest& WithStatus(const Aws::Vector& value) { SetStatus(value); return *this;} /** *

The status of the action.

*/ inline ListRecommendationTemplatesRequest& WithStatus(Aws::Vector&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the action.

*/ inline ListRecommendationTemplatesRequest& AddStatus(const RecommendationTemplateStatus& value) { m_statusHasBeenSet = true; m_status.push_back(value); return *this; } /** *

The status of the action.

*/ inline ListRecommendationTemplatesRequest& AddStatus(RecommendationTemplateStatus&& value) { m_statusHasBeenSet = true; m_status.push_back(std::move(value)); return *this; } private: Aws::String m_assessmentArn; bool m_assessmentArnHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_recommendationTemplateArn; bool m_recommendationTemplateArnHasBeenSet = false; bool m_reverseOrder; bool m_reverseOrderHasBeenSet = false; Aws::Vector m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws