AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListEnvironmentsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/EnvironmentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_API ListEnvironmentsRequest() = 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 "ListEnvironments"; }
32
33 AWS_DATAZONE_API Aws::String SerializePayload() const override;
34
35 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
42 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
43 template <typename DomainIdentifierT = Aws::String>
44 void SetDomainIdentifier(DomainIdentifierT&& value) {
45 m_domainIdentifierHasBeenSet = true;
46 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
47 }
48 template <typename DomainIdentifierT = Aws::String>
49 ListEnvironmentsRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
50 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
61 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
62 template <typename AwsAccountIdT = Aws::String>
63 void SetAwsAccountId(AwsAccountIdT&& value) {
64 m_awsAccountIdHasBeenSet = true;
65 m_awsAccountId = std::forward<AwsAccountIdT>(value);
66 }
67 template <typename AwsAccountIdT = Aws::String>
68 ListEnvironmentsRequest& WithAwsAccountId(AwsAccountIdT&& value) {
69 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
70 return *this;
71 }
73
75
78 inline EnvironmentStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(EnvironmentStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetAwsAccountRegion() const { return m_awsAccountRegion; }
95 inline bool AwsAccountRegionHasBeenSet() const { return m_awsAccountRegionHasBeenSet; }
96 template <typename AwsAccountRegionT = Aws::String>
97 void SetAwsAccountRegion(AwsAccountRegionT&& value) {
98 m_awsAccountRegionHasBeenSet = true;
99 m_awsAccountRegion = std::forward<AwsAccountRegionT>(value);
100 }
101 template <typename AwsAccountRegionT = Aws::String>
102 ListEnvironmentsRequest& WithAwsAccountRegion(AwsAccountRegionT&& value) {
103 SetAwsAccountRegion(std::forward<AwsAccountRegionT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
113 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
114 template <typename ProjectIdentifierT = Aws::String>
115 void SetProjectIdentifier(ProjectIdentifierT&& value) {
116 m_projectIdentifierHasBeenSet = true;
117 m_projectIdentifier = std::forward<ProjectIdentifierT>(value);
118 }
119 template <typename ProjectIdentifierT = Aws::String>
120 ListEnvironmentsRequest& WithProjectIdentifier(ProjectIdentifierT&& value) {
121 SetProjectIdentifier(std::forward<ProjectIdentifierT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetEnvironmentProfileIdentifier() const { return m_environmentProfileIdentifier; }
131 inline bool EnvironmentProfileIdentifierHasBeenSet() const { return m_environmentProfileIdentifierHasBeenSet; }
132 template <typename EnvironmentProfileIdentifierT = Aws::String>
133 void SetEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT&& value) {
134 m_environmentProfileIdentifierHasBeenSet = true;
135 m_environmentProfileIdentifier = std::forward<EnvironmentProfileIdentifierT>(value);
136 }
137 template <typename EnvironmentProfileIdentifierT = Aws::String>
138 ListEnvironmentsRequest& WithEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT&& value) {
139 SetEnvironmentProfileIdentifier(std::forward<EnvironmentProfileIdentifierT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetEnvironmentBlueprintIdentifier() const { return m_environmentBlueprintIdentifier; }
149 inline bool EnvironmentBlueprintIdentifierHasBeenSet() const { return m_environmentBlueprintIdentifierHasBeenSet; }
150 template <typename EnvironmentBlueprintIdentifierT = Aws::String>
151 void SetEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT&& value) {
152 m_environmentBlueprintIdentifierHasBeenSet = true;
153 m_environmentBlueprintIdentifier = std::forward<EnvironmentBlueprintIdentifierT>(value);
154 }
155 template <typename EnvironmentBlueprintIdentifierT = Aws::String>
156 ListEnvironmentsRequest& WithEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT&& value) {
157 SetEnvironmentBlueprintIdentifier(std::forward<EnvironmentBlueprintIdentifierT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetProvider() const { return m_provider; }
167 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
168 template <typename ProviderT = Aws::String>
169 void SetProvider(ProviderT&& value) {
170 m_providerHasBeenSet = true;
171 m_provider = std::forward<ProviderT>(value);
172 }
173 template <typename ProviderT = Aws::String>
175 SetProvider(std::forward<ProviderT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetName() const { return m_name; }
185 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
186 template <typename NameT = Aws::String>
187 void SetName(NameT&& value) {
188 m_nameHasBeenSet = true;
189 m_name = std::forward<NameT>(value);
190 }
191 template <typename NameT = Aws::String>
193 SetName(std::forward<NameT>(value));
194 return *this;
195 }
197
199
206 inline int GetMaxResults() const { return m_maxResults; }
207 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
208 inline void SetMaxResults(int value) {
209 m_maxResultsHasBeenSet = true;
210 m_maxResults = value;
211 }
213 SetMaxResults(value);
214 return *this;
215 }
217
219
227 inline const Aws::String& GetNextToken() const { return m_nextToken; }
228 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
229 template <typename NextTokenT = Aws::String>
230 void SetNextToken(NextTokenT&& value) {
231 m_nextTokenHasBeenSet = true;
232 m_nextToken = std::forward<NextTokenT>(value);
233 }
234 template <typename NextTokenT = Aws::String>
236 SetNextToken(std::forward<NextTokenT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_domainIdentifier;
242
243 Aws::String m_awsAccountId;
244
246
247 Aws::String m_awsAccountRegion;
248
249 Aws::String m_projectIdentifier;
250
251 Aws::String m_environmentProfileIdentifier;
252
253 Aws::String m_environmentBlueprintIdentifier;
254
255 Aws::String m_provider;
256
257 Aws::String m_name;
258
259 int m_maxResults{0};
260
261 Aws::String m_nextToken;
262 bool m_domainIdentifierHasBeenSet = false;
263 bool m_awsAccountIdHasBeenSet = false;
264 bool m_statusHasBeenSet = false;
265 bool m_awsAccountRegionHasBeenSet = false;
266 bool m_projectIdentifierHasBeenSet = false;
267 bool m_environmentProfileIdentifierHasBeenSet = false;
268 bool m_environmentBlueprintIdentifierHasBeenSet = false;
269 bool m_providerHasBeenSet = false;
270 bool m_nameHasBeenSet = false;
271 bool m_maxResultsHasBeenSet = false;
272 bool m_nextTokenHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace DataZone
277} // namespace Aws
ListEnvironmentsRequest & WithMaxResults(int value)
ListEnvironmentsRequest & WithProjectIdentifier(ProjectIdentifierT &&value)
void SetProjectIdentifier(ProjectIdentifierT &&value)
ListEnvironmentsRequest & WithAwsAccountId(AwsAccountIdT &&value)
AWS_DATAZONE_API ListEnvironmentsRequest()=default
ListEnvironmentsRequest & WithNextToken(NextTokenT &&value)
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListEnvironmentsRequest & WithAwsAccountRegion(AwsAccountRegionT &&value)
ListEnvironmentsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
ListEnvironmentsRequest & WithStatus(EnvironmentStatus value)
ListEnvironmentsRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
ListEnvironmentsRequest & WithEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT &&value)
ListEnvironmentsRequest & WithEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT &&value)
ListEnvironmentsRequest & WithProvider(ProviderT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
void SetEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT &&value)
void SetEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String