AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListEnvironmentsRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/EnvironmentStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace DataZone
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DATAZONE_API ListEnvironmentsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListEnvironments"; }
36
37 AWS_DATAZONE_API Aws::String SerializePayload() const override;
38
39 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
47 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
48 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
49 template<typename AwsAccountIdT = Aws::String>
50 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
51 template<typename AwsAccountIdT = Aws::String>
52 ListEnvironmentsRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetAwsAccountRegion() const { return m_awsAccountRegion; }
60 inline bool AwsAccountRegionHasBeenSet() const { return m_awsAccountRegionHasBeenSet; }
61 template<typename AwsAccountRegionT = Aws::String>
62 void SetAwsAccountRegion(AwsAccountRegionT&& value) { m_awsAccountRegionHasBeenSet = true; m_awsAccountRegion = std::forward<AwsAccountRegionT>(value); }
63 template<typename AwsAccountRegionT = Aws::String>
64 ListEnvironmentsRequest& WithAwsAccountRegion(AwsAccountRegionT&& value) { SetAwsAccountRegion(std::forward<AwsAccountRegionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
72 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
73 template<typename DomainIdentifierT = Aws::String>
74 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
75 template<typename DomainIdentifierT = Aws::String>
76 ListEnvironmentsRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
78
80
83 inline const Aws::String& GetEnvironmentBlueprintIdentifier() const { return m_environmentBlueprintIdentifier; }
84 inline bool EnvironmentBlueprintIdentifierHasBeenSet() const { return m_environmentBlueprintIdentifierHasBeenSet; }
85 template<typename EnvironmentBlueprintIdentifierT = Aws::String>
86 void SetEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT&& value) { m_environmentBlueprintIdentifierHasBeenSet = true; m_environmentBlueprintIdentifier = std::forward<EnvironmentBlueprintIdentifierT>(value); }
87 template<typename EnvironmentBlueprintIdentifierT = Aws::String>
88 ListEnvironmentsRequest& WithEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT&& value) { SetEnvironmentBlueprintIdentifier(std::forward<EnvironmentBlueprintIdentifierT>(value)); return *this;}
90
92
95 inline const Aws::String& GetEnvironmentProfileIdentifier() const { return m_environmentProfileIdentifier; }
96 inline bool EnvironmentProfileIdentifierHasBeenSet() const { return m_environmentProfileIdentifierHasBeenSet; }
97 template<typename EnvironmentProfileIdentifierT = Aws::String>
98 void SetEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT&& value) { m_environmentProfileIdentifierHasBeenSet = true; m_environmentProfileIdentifier = std::forward<EnvironmentProfileIdentifierT>(value); }
99 template<typename EnvironmentProfileIdentifierT = Aws::String>
100 ListEnvironmentsRequest& WithEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT&& value) { SetEnvironmentProfileIdentifier(std::forward<EnvironmentProfileIdentifierT>(value)); return *this;}
102
104
111 inline int GetMaxResults() const { return m_maxResults; }
112 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
113 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
114 inline ListEnvironmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
116
118
121 inline const Aws::String& GetName() const { return m_name; }
122 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
123 template<typename NameT = Aws::String>
124 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
125 template<typename NameT = Aws::String>
126 ListEnvironmentsRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
128
130
138 inline const Aws::String& GetNextToken() const { return m_nextToken; }
139 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
140 template<typename NextTokenT = Aws::String>
141 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
142 template<typename NextTokenT = Aws::String>
143 ListEnvironmentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
145
147
150 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
151 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
152 template<typename ProjectIdentifierT = Aws::String>
153 void SetProjectIdentifier(ProjectIdentifierT&& value) { m_projectIdentifierHasBeenSet = true; m_projectIdentifier = std::forward<ProjectIdentifierT>(value); }
154 template<typename ProjectIdentifierT = Aws::String>
155 ListEnvironmentsRequest& WithProjectIdentifier(ProjectIdentifierT&& value) { SetProjectIdentifier(std::forward<ProjectIdentifierT>(value)); return *this;}
157
159
162 inline const Aws::String& GetProvider() const { return m_provider; }
163 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
164 template<typename ProviderT = Aws::String>
165 void SetProvider(ProviderT&& value) { m_providerHasBeenSet = true; m_provider = std::forward<ProviderT>(value); }
166 template<typename ProviderT = Aws::String>
167 ListEnvironmentsRequest& WithProvider(ProviderT&& value) { SetProvider(std::forward<ProviderT>(value)); return *this;}
169
171
174 inline EnvironmentStatus GetStatus() const { return m_status; }
175 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
176 inline void SetStatus(EnvironmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
177 inline ListEnvironmentsRequest& WithStatus(EnvironmentStatus value) { SetStatus(value); return *this;}
179 private:
180
181 Aws::String m_awsAccountId;
182 bool m_awsAccountIdHasBeenSet = false;
183
184 Aws::String m_awsAccountRegion;
185 bool m_awsAccountRegionHasBeenSet = false;
186
187 Aws::String m_domainIdentifier;
188 bool m_domainIdentifierHasBeenSet = false;
189
190 Aws::String m_environmentBlueprintIdentifier;
191 bool m_environmentBlueprintIdentifierHasBeenSet = false;
192
193 Aws::String m_environmentProfileIdentifier;
194 bool m_environmentProfileIdentifierHasBeenSet = false;
195
196 int m_maxResults{0};
197 bool m_maxResultsHasBeenSet = false;
198
199 Aws::String m_name;
200 bool m_nameHasBeenSet = false;
201
202 Aws::String m_nextToken;
203 bool m_nextTokenHasBeenSet = false;
204
205 Aws::String m_projectIdentifier;
206 bool m_projectIdentifierHasBeenSet = false;
207
208 Aws::String m_provider;
209 bool m_providerHasBeenSet = false;
210
212 bool m_statusHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace DataZone
217} // 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)
const Aws::String & GetEnvironmentBlueprintIdentifier() const
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