AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateEnvironmentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/EnvironmentParameter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataZone {
17namespace Model {
18
22 public:
23 AWS_DATAZONE_API CreateEnvironmentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; }
30
31 AWS_DATAZONE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
39 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
40 template <typename ProjectIdentifierT = Aws::String>
41 void SetProjectIdentifier(ProjectIdentifierT&& value) {
42 m_projectIdentifierHasBeenSet = true;
43 m_projectIdentifier = std::forward<ProjectIdentifierT>(value);
44 }
45 template <typename ProjectIdentifierT = Aws::String>
46 CreateEnvironmentRequest& WithProjectIdentifier(ProjectIdentifierT&& value) {
47 SetProjectIdentifier(std::forward<ProjectIdentifierT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
58 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
59 template <typename DomainIdentifierT = Aws::String>
60 void SetDomainIdentifier(DomainIdentifierT&& value) {
61 m_domainIdentifierHasBeenSet = true;
62 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
63 }
64 template <typename DomainIdentifierT = Aws::String>
65 CreateEnvironmentRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
66 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 template <typename NameT = Aws::String>
96 void SetName(NameT&& value) {
97 m_nameHasBeenSet = true;
98 m_name = std::forward<NameT>(value);
99 }
100 template <typename NameT = Aws::String>
102 SetName(std::forward<NameT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetEnvironmentProfileIdentifier() const { return m_environmentProfileIdentifier; }
113 inline bool EnvironmentProfileIdentifierHasBeenSet() const { return m_environmentProfileIdentifierHasBeenSet; }
114 template <typename EnvironmentProfileIdentifierT = Aws::String>
115 void SetEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT&& value) {
116 m_environmentProfileIdentifierHasBeenSet = true;
117 m_environmentProfileIdentifier = std::forward<EnvironmentProfileIdentifierT>(value);
118 }
119 template <typename EnvironmentProfileIdentifierT = Aws::String>
120 CreateEnvironmentRequest& WithEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT&& value) {
121 SetEnvironmentProfileIdentifier(std::forward<EnvironmentProfileIdentifierT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Vector<EnvironmentParameter>& GetUserParameters() const { return m_userParameters; }
131 inline bool UserParametersHasBeenSet() const { return m_userParametersHasBeenSet; }
132 template <typename UserParametersT = Aws::Vector<EnvironmentParameter>>
133 void SetUserParameters(UserParametersT&& value) {
134 m_userParametersHasBeenSet = true;
135 m_userParameters = std::forward<UserParametersT>(value);
136 }
137 template <typename UserParametersT = Aws::Vector<EnvironmentParameter>>
139 SetUserParameters(std::forward<UserParametersT>(value));
140 return *this;
141 }
142 template <typename UserParametersT = EnvironmentParameter>
143 CreateEnvironmentRequest& AddUserParameters(UserParametersT&& value) {
144 m_userParametersHasBeenSet = true;
145 m_userParameters.emplace_back(std::forward<UserParametersT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
155 inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; }
156 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
157 void SetGlossaryTerms(GlossaryTermsT&& value) {
158 m_glossaryTermsHasBeenSet = true;
159 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
160 }
161 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
163 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
164 return *this;
165 }
166 template <typename GlossaryTermsT = Aws::String>
168 m_glossaryTermsHasBeenSet = true;
169 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetEnvironmentAccountIdentifier() const { return m_environmentAccountIdentifier; }
179 inline bool EnvironmentAccountIdentifierHasBeenSet() const { return m_environmentAccountIdentifierHasBeenSet; }
180 template <typename EnvironmentAccountIdentifierT = Aws::String>
181 void SetEnvironmentAccountIdentifier(EnvironmentAccountIdentifierT&& value) {
182 m_environmentAccountIdentifierHasBeenSet = true;
183 m_environmentAccountIdentifier = std::forward<EnvironmentAccountIdentifierT>(value);
184 }
185 template <typename EnvironmentAccountIdentifierT = Aws::String>
186 CreateEnvironmentRequest& WithEnvironmentAccountIdentifier(EnvironmentAccountIdentifierT&& value) {
187 SetEnvironmentAccountIdentifier(std::forward<EnvironmentAccountIdentifierT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetEnvironmentAccountRegion() const { return m_environmentAccountRegion; }
197 inline bool EnvironmentAccountRegionHasBeenSet() const { return m_environmentAccountRegionHasBeenSet; }
198 template <typename EnvironmentAccountRegionT = Aws::String>
199 void SetEnvironmentAccountRegion(EnvironmentAccountRegionT&& value) {
200 m_environmentAccountRegionHasBeenSet = true;
201 m_environmentAccountRegion = std::forward<EnvironmentAccountRegionT>(value);
202 }
203 template <typename EnvironmentAccountRegionT = Aws::String>
204 CreateEnvironmentRequest& WithEnvironmentAccountRegion(EnvironmentAccountRegionT&& value) {
205 SetEnvironmentAccountRegion(std::forward<EnvironmentAccountRegionT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetEnvironmentBlueprintIdentifier() const { return m_environmentBlueprintIdentifier; }
215 inline bool EnvironmentBlueprintIdentifierHasBeenSet() const { return m_environmentBlueprintIdentifierHasBeenSet; }
216 template <typename EnvironmentBlueprintIdentifierT = Aws::String>
217 void SetEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT&& value) {
218 m_environmentBlueprintIdentifierHasBeenSet = true;
219 m_environmentBlueprintIdentifier = std::forward<EnvironmentBlueprintIdentifierT>(value);
220 }
221 template <typename EnvironmentBlueprintIdentifierT = Aws::String>
222 CreateEnvironmentRequest& WithEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT&& value) {
223 SetEnvironmentBlueprintIdentifier(std::forward<EnvironmentBlueprintIdentifierT>(value));
224 return *this;
225 }
227
229
232 inline int GetDeploymentOrder() const { return m_deploymentOrder; }
233 inline bool DeploymentOrderHasBeenSet() const { return m_deploymentOrderHasBeenSet; }
234 inline void SetDeploymentOrder(int value) {
235 m_deploymentOrderHasBeenSet = true;
236 m_deploymentOrder = value;
237 }
239 SetDeploymentOrder(value);
240 return *this;
241 }
243
245
248 inline const Aws::String& GetEnvironmentConfigurationId() const { return m_environmentConfigurationId; }
249 inline bool EnvironmentConfigurationIdHasBeenSet() const { return m_environmentConfigurationIdHasBeenSet; }
250 template <typename EnvironmentConfigurationIdT = Aws::String>
251 void SetEnvironmentConfigurationId(EnvironmentConfigurationIdT&& value) {
252 m_environmentConfigurationIdHasBeenSet = true;
253 m_environmentConfigurationId = std::forward<EnvironmentConfigurationIdT>(value);
254 }
255 template <typename EnvironmentConfigurationIdT = Aws::String>
256 CreateEnvironmentRequest& WithEnvironmentConfigurationId(EnvironmentConfigurationIdT&& value) {
257 SetEnvironmentConfigurationId(std::forward<EnvironmentConfigurationIdT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_projectIdentifier;
263
264 Aws::String m_domainIdentifier;
265
266 Aws::String m_description;
267
268 Aws::String m_name;
269
270 Aws::String m_environmentProfileIdentifier;
271
272 Aws::Vector<EnvironmentParameter> m_userParameters;
273
274 Aws::Vector<Aws::String> m_glossaryTerms;
275
276 Aws::String m_environmentAccountIdentifier;
277
278 Aws::String m_environmentAccountRegion;
279
280 Aws::String m_environmentBlueprintIdentifier;
281
282 int m_deploymentOrder{0};
283
284 Aws::String m_environmentConfigurationId;
285 bool m_projectIdentifierHasBeenSet = false;
286 bool m_domainIdentifierHasBeenSet = false;
287 bool m_descriptionHasBeenSet = false;
288 bool m_nameHasBeenSet = false;
289 bool m_environmentProfileIdentifierHasBeenSet = false;
290 bool m_userParametersHasBeenSet = false;
291 bool m_glossaryTermsHasBeenSet = false;
292 bool m_environmentAccountIdentifierHasBeenSet = false;
293 bool m_environmentAccountRegionHasBeenSet = false;
294 bool m_environmentBlueprintIdentifierHasBeenSet = false;
295 bool m_deploymentOrderHasBeenSet = false;
296 bool m_environmentConfigurationIdHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace DataZone
301} // namespace Aws
AWS_DATAZONE_API CreateEnvironmentRequest()=default
CreateEnvironmentRequest & WithEnvironmentAccountIdentifier(EnvironmentAccountIdentifierT &&value)
CreateEnvironmentRequest & AddUserParameters(UserParametersT &&value)
const Aws::Vector< EnvironmentParameter > & GetUserParameters() const
CreateEnvironmentRequest & WithEnvironmentConfigurationId(EnvironmentConfigurationIdT &&value)
CreateEnvironmentRequest & WithDescription(DescriptionT &&value)
CreateEnvironmentRequest & WithUserParameters(UserParametersT &&value)
void SetEnvironmentConfigurationId(EnvironmentConfigurationIdT &&value)
void SetEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT &&value)
CreateEnvironmentRequest & WithDeploymentOrder(int value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & WithName(NameT &&value)
CreateEnvironmentRequest & WithProjectIdentifier(ProjectIdentifierT &&value)
CreateEnvironmentRequest & WithEnvironmentAccountRegion(EnvironmentAccountRegionT &&value)
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
CreateEnvironmentRequest & WithEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT &&value)
CreateEnvironmentRequest & WithGlossaryTerms(GlossaryTermsT &&value)
CreateEnvironmentRequest & WithEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT &&value)
void SetEnvironmentAccountRegion(EnvironmentAccountRegionT &&value)
void SetEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
CreateEnvironmentRequest & AddGlossaryTerms(GlossaryTermsT &&value)
void SetEnvironmentAccountIdentifier(EnvironmentAccountIdentifierT &&value)
CreateEnvironmentRequest & WithDomainIdentifier(DomainIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector