AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ListServicesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/AssessmentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace resiliencehubv2 {
19namespace Model {
20
24 public:
25 AWS_RESILIENCEHUBV2_API ListServicesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListServices"; }
32
33 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
34
35 AWS_RESILIENCEHUBV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
39 inline const Aws::String& GetSystemArn() const { return m_systemArn; }
40 inline bool SystemArnHasBeenSet() const { return m_systemArnHasBeenSet; }
41 template <typename SystemArnT = Aws::String>
42 void SetSystemArn(SystemArnT&& value) {
43 m_systemArnHasBeenSet = true;
44 m_systemArn = std::forward<SystemArnT>(value);
45 }
46 template <typename SystemArnT = Aws::String>
47 ListServicesRequest& WithSystemArn(SystemArnT&& value) {
48 SetSystemArn(std::forward<SystemArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetUserJourneyId() const { return m_userJourneyId; }
58 inline bool UserJourneyIdHasBeenSet() const { return m_userJourneyIdHasBeenSet; }
59 template <typename UserJourneyIdT = Aws::String>
60 void SetUserJourneyId(UserJourneyIdT&& value) {
61 m_userJourneyIdHasBeenSet = true;
62 m_userJourneyId = std::forward<UserJourneyIdT>(value);
63 }
64 template <typename UserJourneyIdT = Aws::String>
65 ListServicesRequest& WithUserJourneyId(UserJourneyIdT&& value) {
66 SetUserJourneyId(std::forward<UserJourneyIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetOuId() const { return m_ouId; }
76 inline bool OuIdHasBeenSet() const { return m_ouIdHasBeenSet; }
77 template <typename OuIdT = Aws::String>
78 void SetOuId(OuIdT&& value) {
79 m_ouIdHasBeenSet = true;
80 m_ouId = std::forward<OuIdT>(value);
81 }
82 template <typename OuIdT = Aws::String>
83 ListServicesRequest& WithOuId(OuIdT&& value) {
84 SetOuId(std::forward<OuIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAccountId() const { return m_accountId; }
94 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
95 template <typename AccountIdT = Aws::String>
96 void SetAccountId(AccountIdT&& value) {
97 m_accountIdHasBeenSet = true;
98 m_accountId = std::forward<AccountIdT>(value);
99 }
100 template <typename AccountIdT = Aws::String>
101 ListServicesRequest& WithAccountId(AccountIdT&& value) {
102 SetAccountId(std::forward<AccountIdT>(value));
103 return *this;
104 }
106
108
111 inline AssessmentStatus GetAssessmentStatus() const { return m_assessmentStatus; }
112 inline bool AssessmentStatusHasBeenSet() const { return m_assessmentStatusHasBeenSet; }
114 m_assessmentStatusHasBeenSet = true;
115 m_assessmentStatus = value;
116 }
118 SetAssessmentStatus(value);
119 return *this;
120 }
122
124
125 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
126 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
127 template <typename PolicyArnT = Aws::String>
128 void SetPolicyArn(PolicyArnT&& value) {
129 m_policyArnHasBeenSet = true;
130 m_policyArn = std::forward<PolicyArnT>(value);
131 }
132 template <typename PolicyArnT = Aws::String>
133 ListServicesRequest& WithPolicyArn(PolicyArnT&& value) {
134 SetPolicyArn(std::forward<PolicyArnT>(value));
135 return *this;
136 }
138
140
141 inline int GetMaxResults() const { return m_maxResults; }
142 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
143 inline void SetMaxResults(int value) {
144 m_maxResultsHasBeenSet = true;
145 m_maxResults = value;
146 }
148 SetMaxResults(value);
149 return *this;
150 }
152
154
155 inline const Aws::String& GetNextToken() const { return m_nextToken; }
156 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
157 template <typename NextTokenT = Aws::String>
158 void SetNextToken(NextTokenT&& value) {
159 m_nextTokenHasBeenSet = true;
160 m_nextToken = std::forward<NextTokenT>(value);
161 }
162 template <typename NextTokenT = Aws::String>
163 ListServicesRequest& WithNextToken(NextTokenT&& value) {
164 SetNextToken(std::forward<NextTokenT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_systemArn;
170
171 Aws::String m_userJourneyId;
172
173 Aws::String m_ouId;
174
175 Aws::String m_accountId;
176
178
179 Aws::String m_policyArn;
180
181 int m_maxResults{0};
182
183 Aws::String m_nextToken;
184 bool m_systemArnHasBeenSet = false;
185 bool m_userJourneyIdHasBeenSet = false;
186 bool m_ouIdHasBeenSet = false;
187 bool m_accountIdHasBeenSet = false;
188 bool m_assessmentStatusHasBeenSet = false;
189 bool m_policyArnHasBeenSet = false;
190 bool m_maxResultsHasBeenSet = false;
191 bool m_nextTokenHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace resiliencehubv2
196} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListServicesRequest & WithPolicyArn(PolicyArnT &&value)
ListServicesRequest & WithOuId(OuIdT &&value)
ListServicesRequest & WithNextToken(NextTokenT &&value)
AWS_RESILIENCEHUBV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListServicesRequest & WithUserJourneyId(UserJourneyIdT &&value)
ListServicesRequest & WithSystemArn(SystemArnT &&value)
AWS_RESILIENCEHUBV2_API ListServicesRequest()=default
ListServicesRequest & WithAccountId(AccountIdT &&value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
ListServicesRequest & WithAssessmentStatus(AssessmentStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String