AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
37 inline int GetDeploymentOrder() const { return m_deploymentOrder; }
38 inline bool DeploymentOrderHasBeenSet() const { return m_deploymentOrderHasBeenSet; }
39 inline void SetDeploymentOrder(int value) {
40 m_deploymentOrderHasBeenSet = true;
41 m_deploymentOrder = value;
42 }
44 SetDeploymentOrder(value);
45 return *this;
46 }
48
50
53 inline const Aws::String& GetDescription() const { return m_description; }
54 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
55 template <typename DescriptionT = Aws::String>
56 void SetDescription(DescriptionT&& value) {
57 m_descriptionHasBeenSet = true;
58 m_description = std::forward<DescriptionT>(value);
59 }
60 template <typename DescriptionT = Aws::String>
62 SetDescription(std::forward<DescriptionT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
73 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
74 template <typename DomainIdentifierT = Aws::String>
75 void SetDomainIdentifier(DomainIdentifierT&& value) {
76 m_domainIdentifierHasBeenSet = true;
77 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
78 }
79 template <typename DomainIdentifierT = Aws::String>
80 CreateEnvironmentRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
81 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetEnvironmentAccountIdentifier() const { return m_environmentAccountIdentifier; }
91 inline bool EnvironmentAccountIdentifierHasBeenSet() const { return m_environmentAccountIdentifierHasBeenSet; }
92 template <typename EnvironmentAccountIdentifierT = Aws::String>
93 void SetEnvironmentAccountIdentifier(EnvironmentAccountIdentifierT&& value) {
94 m_environmentAccountIdentifierHasBeenSet = true;
95 m_environmentAccountIdentifier = std::forward<EnvironmentAccountIdentifierT>(value);
96 }
97 template <typename EnvironmentAccountIdentifierT = Aws::String>
98 CreateEnvironmentRequest& WithEnvironmentAccountIdentifier(EnvironmentAccountIdentifierT&& value) {
99 SetEnvironmentAccountIdentifier(std::forward<EnvironmentAccountIdentifierT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetEnvironmentAccountRegion() const { return m_environmentAccountRegion; }
109 inline bool EnvironmentAccountRegionHasBeenSet() const { return m_environmentAccountRegionHasBeenSet; }
110 template <typename EnvironmentAccountRegionT = Aws::String>
111 void SetEnvironmentAccountRegion(EnvironmentAccountRegionT&& value) {
112 m_environmentAccountRegionHasBeenSet = true;
113 m_environmentAccountRegion = std::forward<EnvironmentAccountRegionT>(value);
114 }
115 template <typename EnvironmentAccountRegionT = Aws::String>
116 CreateEnvironmentRequest& WithEnvironmentAccountRegion(EnvironmentAccountRegionT&& value) {
117 SetEnvironmentAccountRegion(std::forward<EnvironmentAccountRegionT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetEnvironmentBlueprintIdentifier() const { return m_environmentBlueprintIdentifier; }
127 inline bool EnvironmentBlueprintIdentifierHasBeenSet() const { return m_environmentBlueprintIdentifierHasBeenSet; }
128 template <typename EnvironmentBlueprintIdentifierT = Aws::String>
129 void SetEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT&& value) {
130 m_environmentBlueprintIdentifierHasBeenSet = true;
131 m_environmentBlueprintIdentifier = std::forward<EnvironmentBlueprintIdentifierT>(value);
132 }
133 template <typename EnvironmentBlueprintIdentifierT = Aws::String>
134 CreateEnvironmentRequest& WithEnvironmentBlueprintIdentifier(EnvironmentBlueprintIdentifierT&& value) {
135 SetEnvironmentBlueprintIdentifier(std::forward<EnvironmentBlueprintIdentifierT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetEnvironmentConfigurationId() const { return m_environmentConfigurationId; }
145 inline bool EnvironmentConfigurationIdHasBeenSet() const { return m_environmentConfigurationIdHasBeenSet; }
146 template <typename EnvironmentConfigurationIdT = Aws::String>
147 void SetEnvironmentConfigurationId(EnvironmentConfigurationIdT&& value) {
148 m_environmentConfigurationIdHasBeenSet = true;
149 m_environmentConfigurationId = std::forward<EnvironmentConfigurationIdT>(value);
150 }
151 template <typename EnvironmentConfigurationIdT = Aws::String>
152 CreateEnvironmentRequest& WithEnvironmentConfigurationId(EnvironmentConfigurationIdT&& value) {
153 SetEnvironmentConfigurationId(std::forward<EnvironmentConfigurationIdT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::String& GetEnvironmentProfileIdentifier() const { return m_environmentProfileIdentifier; }
164 inline bool EnvironmentProfileIdentifierHasBeenSet() const { return m_environmentProfileIdentifierHasBeenSet; }
165 template <typename EnvironmentProfileIdentifierT = Aws::String>
166 void SetEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT&& value) {
167 m_environmentProfileIdentifierHasBeenSet = true;
168 m_environmentProfileIdentifier = std::forward<EnvironmentProfileIdentifierT>(value);
169 }
170 template <typename EnvironmentProfileIdentifierT = Aws::String>
171 CreateEnvironmentRequest& WithEnvironmentProfileIdentifier(EnvironmentProfileIdentifierT&& value) {
172 SetEnvironmentProfileIdentifier(std::forward<EnvironmentProfileIdentifierT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
182 inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; }
183 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
184 void SetGlossaryTerms(GlossaryTermsT&& value) {
185 m_glossaryTermsHasBeenSet = true;
186 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
187 }
188 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
190 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
191 return *this;
192 }
193 template <typename GlossaryTermsT = Aws::String>
195 m_glossaryTermsHasBeenSet = true;
196 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetName() const { return m_name; }
206 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
207 template <typename NameT = Aws::String>
208 void SetName(NameT&& value) {
209 m_nameHasBeenSet = true;
210 m_name = std::forward<NameT>(value);
211 }
212 template <typename NameT = Aws::String>
214 SetName(std::forward<NameT>(value));
215 return *this;
216 }
218
220
224 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
225 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
226 template <typename ProjectIdentifierT = Aws::String>
227 void SetProjectIdentifier(ProjectIdentifierT&& value) {
228 m_projectIdentifierHasBeenSet = true;
229 m_projectIdentifier = std::forward<ProjectIdentifierT>(value);
230 }
231 template <typename ProjectIdentifierT = Aws::String>
232 CreateEnvironmentRequest& WithProjectIdentifier(ProjectIdentifierT&& value) {
233 SetProjectIdentifier(std::forward<ProjectIdentifierT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::Vector<EnvironmentParameter>& GetUserParameters() const { return m_userParameters; }
243 inline bool UserParametersHasBeenSet() const { return m_userParametersHasBeenSet; }
244 template <typename UserParametersT = Aws::Vector<EnvironmentParameter>>
245 void SetUserParameters(UserParametersT&& value) {
246 m_userParametersHasBeenSet = true;
247 m_userParameters = std::forward<UserParametersT>(value);
248 }
249 template <typename UserParametersT = Aws::Vector<EnvironmentParameter>>
251 SetUserParameters(std::forward<UserParametersT>(value));
252 return *this;
253 }
254 template <typename UserParametersT = EnvironmentParameter>
255 CreateEnvironmentRequest& AddUserParameters(UserParametersT&& value) {
256 m_userParametersHasBeenSet = true;
257 m_userParameters.emplace_back(std::forward<UserParametersT>(value));
258 return *this;
259 }
261 private:
262 int m_deploymentOrder{0};
263 bool m_deploymentOrderHasBeenSet = false;
264
265 Aws::String m_description;
266 bool m_descriptionHasBeenSet = false;
267
268 Aws::String m_domainIdentifier;
269 bool m_domainIdentifierHasBeenSet = false;
270
271 Aws::String m_environmentAccountIdentifier;
272 bool m_environmentAccountIdentifierHasBeenSet = false;
273
274 Aws::String m_environmentAccountRegion;
275 bool m_environmentAccountRegionHasBeenSet = false;
276
277 Aws::String m_environmentBlueprintIdentifier;
278 bool m_environmentBlueprintIdentifierHasBeenSet = false;
279
280 Aws::String m_environmentConfigurationId;
281 bool m_environmentConfigurationIdHasBeenSet = false;
282
283 Aws::String m_environmentProfileIdentifier;
284 bool m_environmentProfileIdentifierHasBeenSet = false;
285
286 Aws::Vector<Aws::String> m_glossaryTerms;
287 bool m_glossaryTermsHasBeenSet = false;
288
289 Aws::String m_name;
290 bool m_nameHasBeenSet = false;
291
292 Aws::String m_projectIdentifier;
293 bool m_projectIdentifierHasBeenSet = false;
294
295 Aws::Vector<EnvironmentParameter> m_userParameters;
296 bool m_userParametersHasBeenSet = 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