AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListRecommendationTemplatesRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resiliencehub/model/RecommendationTemplateStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace ResilienceHub
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_RESILIENCEHUB_API ListRecommendationTemplatesRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListRecommendationTemplates"; }
37
38 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
39
40 AWS_RESILIENCEHUB_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
52 inline const Aws::String& GetAssessmentArn() const{ return m_assessmentArn; }
53 inline bool AssessmentArnHasBeenSet() const { return m_assessmentArnHasBeenSet; }
54 inline void SetAssessmentArn(const Aws::String& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = value; }
55 inline void SetAssessmentArn(Aws::String&& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = std::move(value); }
56 inline void SetAssessmentArn(const char* value) { m_assessmentArnHasBeenSet = true; m_assessmentArn.assign(value); }
58 inline ListRecommendationTemplatesRequest& WithAssessmentArn(Aws::String&& value) { SetAssessmentArn(std::move(value)); return *this;}
59 inline ListRecommendationTemplatesRequest& WithAssessmentArn(const char* value) { SetAssessmentArn(value); return *this;}
61
63
68 inline int GetMaxResults() const{ return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
71 inline ListRecommendationTemplatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
73
75
78 inline const Aws::String& GetName() const{ return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
81 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
82 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 inline ListRecommendationTemplatesRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline ListRecommendationTemplatesRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline ListRecommendationTemplatesRequest& WithName(const char* value) { SetName(value); return *this;}
87
89
92 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
96 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
97 inline ListRecommendationTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 inline ListRecommendationTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 inline ListRecommendationTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
101
103
106 inline const Aws::String& GetRecommendationTemplateArn() const{ return m_recommendationTemplateArn; }
107 inline bool RecommendationTemplateArnHasBeenSet() const { return m_recommendationTemplateArnHasBeenSet; }
108 inline void SetRecommendationTemplateArn(const Aws::String& value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn = value; }
109 inline void SetRecommendationTemplateArn(Aws::String&& value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn = std::move(value); }
110 inline void SetRecommendationTemplateArn(const char* value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn.assign(value); }
115
117
121 inline bool GetReverseOrder() const{ return m_reverseOrder; }
122 inline bool ReverseOrderHasBeenSet() const { return m_reverseOrderHasBeenSet; }
123 inline void SetReverseOrder(bool value) { m_reverseOrderHasBeenSet = true; m_reverseOrder = value; }
124 inline ListRecommendationTemplatesRequest& WithReverseOrder(bool value) { SetReverseOrder(value); return *this;}
126
128
131 inline const Aws::Vector<RecommendationTemplateStatus>& GetStatus() const{ return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(const Aws::Vector<RecommendationTemplateStatus>& value) { m_statusHasBeenSet = true; m_status = value; }
134 inline void SetStatus(Aws::Vector<RecommendationTemplateStatus>&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
137 inline ListRecommendationTemplatesRequest& AddStatus(const RecommendationTemplateStatus& value) { m_statusHasBeenSet = true; m_status.push_back(value); return *this; }
138 inline ListRecommendationTemplatesRequest& AddStatus(RecommendationTemplateStatus&& value) { m_statusHasBeenSet = true; m_status.push_back(std::move(value)); return *this; }
140 private:
141
142 Aws::String m_assessmentArn;
143 bool m_assessmentArnHasBeenSet = false;
144
145 int m_maxResults;
146 bool m_maxResultsHasBeenSet = false;
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 Aws::String m_nextToken;
152 bool m_nextTokenHasBeenSet = false;
153
154 Aws::String m_recommendationTemplateArn;
155 bool m_recommendationTemplateArnHasBeenSet = false;
156
157 bool m_reverseOrder;
158 bool m_reverseOrderHasBeenSet = false;
159
161 bool m_statusHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ResilienceHub
166} // namespace Aws
ListRecommendationTemplatesRequest & AddStatus(RecommendationTemplateStatus &&value)
ListRecommendationTemplatesRequest & WithRecommendationTemplateArn(const char *value)
ListRecommendationTemplatesRequest & WithName(const char *value)
ListRecommendationTemplatesRequest & WithName(Aws::String &&value)
ListRecommendationTemplatesRequest & WithNextToken(const char *value)
const Aws::Vector< RecommendationTemplateStatus > & GetStatus() const
ListRecommendationTemplatesRequest & WithRecommendationTemplateArn(Aws::String &&value)
ListRecommendationTemplatesRequest & WithAssessmentArn(const char *value)
void SetStatus(Aws::Vector< RecommendationTemplateStatus > &&value)
ListRecommendationTemplatesRequest & WithName(const Aws::String &value)
ListRecommendationTemplatesRequest & WithStatus(const Aws::Vector< RecommendationTemplateStatus > &value)
AWS_RESILIENCEHUB_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
ListRecommendationTemplatesRequest & WithAssessmentArn(Aws::String &&value)
ListRecommendationTemplatesRequest & AddStatus(const RecommendationTemplateStatus &value)
ListRecommendationTemplatesRequest & WithRecommendationTemplateArn(const Aws::String &value)
ListRecommendationTemplatesRequest & WithNextToken(Aws::String &&value)
ListRecommendationTemplatesRequest & WithNextToken(const Aws::String &value)
void SetStatus(const Aws::Vector< RecommendationTemplateStatus > &value)
ListRecommendationTemplatesRequest & WithAssessmentArn(const Aws::String &value)
ListRecommendationTemplatesRequest & WithStatus(Aws::Vector< RecommendationTemplateStatus > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector