AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateServiceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
12#include <aws/migration-hub-refactor-spaces/model/LambdaEndpointInput.h>
13#include <aws/migration-hub-refactor-spaces/model/ServiceEndpointType.h>
14#include <aws/migration-hub-refactor-spaces/model/ServiceState.h>
15#include <aws/migration-hub-refactor-spaces/model/UrlEndpointInput.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace MigrationHubRefactorSpaces {
29namespace Model {
31 public:
32 AWS_MIGRATIONHUBREFACTORSPACES_API CreateServiceResult() = default;
33 AWS_MIGRATIONHUBREFACTORSPACES_API CreateServiceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 template <typename ApplicationIdT = Aws::String>
42 void SetApplicationId(ApplicationIdT&& value) {
43 m_applicationIdHasBeenSet = true;
44 m_applicationId = std::forward<ApplicationIdT>(value);
45 }
46 template <typename ApplicationIdT = Aws::String>
47 CreateServiceResult& WithApplicationId(ApplicationIdT&& value) {
48 SetApplicationId(std::forward<ApplicationIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 template <typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) {
60 m_arnHasBeenSet = true;
61 m_arn = std::forward<ArnT>(value);
62 }
63 template <typename ArnT = Aws::String>
65 SetArn(std::forward<ArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetCreatedByAccountId() const { return m_createdByAccountId; }
75 template <typename CreatedByAccountIdT = Aws::String>
76 void SetCreatedByAccountId(CreatedByAccountIdT&& value) {
77 m_createdByAccountIdHasBeenSet = true;
78 m_createdByAccountId = std::forward<CreatedByAccountIdT>(value);
79 }
80 template <typename CreatedByAccountIdT = Aws::String>
81 CreateServiceResult& WithCreatedByAccountId(CreatedByAccountIdT&& value) {
82 SetCreatedByAccountId(std::forward<CreatedByAccountIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
92 template <typename CreatedTimeT = Aws::Utils::DateTime>
93 void SetCreatedTime(CreatedTimeT&& value) {
94 m_createdTimeHasBeenSet = true;
95 m_createdTime = std::forward<CreatedTimeT>(value);
96 }
97 template <typename CreatedTimeT = Aws::Utils::DateTime>
98 CreateServiceResult& WithCreatedTime(CreatedTimeT&& value) {
99 SetCreatedTime(std::forward<CreatedTimeT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDescription() const { return m_description; }
109 template <typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) {
111 m_descriptionHasBeenSet = true;
112 m_description = std::forward<DescriptionT>(value);
113 }
114 template <typename DescriptionT = Aws::String>
115 CreateServiceResult& WithDescription(DescriptionT&& value) {
116 SetDescription(std::forward<DescriptionT>(value));
117 return *this;
118 }
120
122
125 inline ServiceEndpointType GetEndpointType() const { return m_endpointType; }
127 m_endpointTypeHasBeenSet = true;
128 m_endpointType = value;
129 }
131 SetEndpointType(value);
132 return *this;
133 }
135
137
140 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
141 template <typename EnvironmentIdT = Aws::String>
142 void SetEnvironmentId(EnvironmentIdT&& value) {
143 m_environmentIdHasBeenSet = true;
144 m_environmentId = std::forward<EnvironmentIdT>(value);
145 }
146 template <typename EnvironmentIdT = Aws::String>
147 CreateServiceResult& WithEnvironmentId(EnvironmentIdT&& value) {
148 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
149 return *this;
150 }
152
154
157 inline const LambdaEndpointInput& GetLambdaEndpoint() const { return m_lambdaEndpoint; }
158 template <typename LambdaEndpointT = LambdaEndpointInput>
159 void SetLambdaEndpoint(LambdaEndpointT&& value) {
160 m_lambdaEndpointHasBeenSet = true;
161 m_lambdaEndpoint = std::forward<LambdaEndpointT>(value);
162 }
163 template <typename LambdaEndpointT = LambdaEndpointInput>
164 CreateServiceResult& WithLambdaEndpoint(LambdaEndpointT&& value) {
165 SetLambdaEndpoint(std::forward<LambdaEndpointT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
175 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
176 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
177 m_lastUpdatedTimeHasBeenSet = true;
178 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
179 }
180 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
181 CreateServiceResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
182 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetName() const { return m_name; }
192 template <typename NameT = Aws::String>
193 void SetName(NameT&& value) {
194 m_nameHasBeenSet = true;
195 m_name = std::forward<NameT>(value);
196 }
197 template <typename NameT = Aws::String>
199 SetName(std::forward<NameT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
209 template <typename OwnerAccountIdT = Aws::String>
210 void SetOwnerAccountId(OwnerAccountIdT&& value) {
211 m_ownerAccountIdHasBeenSet = true;
212 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
213 }
214 template <typename OwnerAccountIdT = Aws::String>
215 CreateServiceResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
216 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetServiceId() const { return m_serviceId; }
226 template <typename ServiceIdT = Aws::String>
227 void SetServiceId(ServiceIdT&& value) {
228 m_serviceIdHasBeenSet = true;
229 m_serviceId = std::forward<ServiceIdT>(value);
230 }
231 template <typename ServiceIdT = Aws::String>
232 CreateServiceResult& WithServiceId(ServiceIdT&& value) {
233 SetServiceId(std::forward<ServiceIdT>(value));
234 return *this;
235 }
237
239
242 inline ServiceState GetState() const { return m_state; }
243 inline void SetState(ServiceState value) {
244 m_stateHasBeenSet = true;
245 m_state = value;
246 }
248 SetState(value);
249 return *this;
250 }
252
254
258 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
259 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
260 void SetTags(TagsT&& value) {
261 m_tagsHasBeenSet = true;
262 m_tags = std::forward<TagsT>(value);
263 }
264 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
266 SetTags(std::forward<TagsT>(value));
267 return *this;
268 }
269 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
270 CreateServiceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
271 m_tagsHasBeenSet = true;
272 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
273 return *this;
274 }
276
278
281 inline const UrlEndpointInput& GetUrlEndpoint() const { return m_urlEndpoint; }
282 template <typename UrlEndpointT = UrlEndpointInput>
283 void SetUrlEndpoint(UrlEndpointT&& value) {
284 m_urlEndpointHasBeenSet = true;
285 m_urlEndpoint = std::forward<UrlEndpointT>(value);
286 }
287 template <typename UrlEndpointT = UrlEndpointInput>
288 CreateServiceResult& WithUrlEndpoint(UrlEndpointT&& value) {
289 SetUrlEndpoint(std::forward<UrlEndpointT>(value));
290 return *this;
291 }
293
295
298 inline const Aws::String& GetVpcId() const { return m_vpcId; }
299 template <typename VpcIdT = Aws::String>
300 void SetVpcId(VpcIdT&& value) {
301 m_vpcIdHasBeenSet = true;
302 m_vpcId = std::forward<VpcIdT>(value);
303 }
304 template <typename VpcIdT = Aws::String>
306 SetVpcId(std::forward<VpcIdT>(value));
307 return *this;
308 }
310
312
313 inline const Aws::String& GetRequestId() const { return m_requestId; }
314 template <typename RequestIdT = Aws::String>
315 void SetRequestId(RequestIdT&& value) {
316 m_requestIdHasBeenSet = true;
317 m_requestId = std::forward<RequestIdT>(value);
318 }
319 template <typename RequestIdT = Aws::String>
320 CreateServiceResult& WithRequestId(RequestIdT&& value) {
321 SetRequestId(std::forward<RequestIdT>(value));
322 return *this;
323 }
325 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
326
327 private:
328 Aws::String m_applicationId;
329
330 Aws::String m_arn;
331
332 Aws::String m_createdByAccountId;
333
334 Aws::Utils::DateTime m_createdTime{};
335
336 Aws::String m_description;
337
339
340 Aws::String m_environmentId;
341
342 LambdaEndpointInput m_lambdaEndpoint;
343
344 Aws::Utils::DateTime m_lastUpdatedTime{};
345
346 Aws::String m_name;
347
348 Aws::String m_ownerAccountId;
349
350 Aws::String m_serviceId;
351
353
355
356 UrlEndpointInput m_urlEndpoint;
357
358 Aws::String m_vpcId;
359
360 Aws::String m_requestId;
361 Aws::Http::HttpResponseCode m_HttpResponseCode;
362 bool m_applicationIdHasBeenSet = false;
363 bool m_arnHasBeenSet = false;
364 bool m_createdByAccountIdHasBeenSet = false;
365 bool m_createdTimeHasBeenSet = false;
366 bool m_descriptionHasBeenSet = false;
367 bool m_endpointTypeHasBeenSet = false;
368 bool m_environmentIdHasBeenSet = false;
369 bool m_lambdaEndpointHasBeenSet = false;
370 bool m_lastUpdatedTimeHasBeenSet = false;
371 bool m_nameHasBeenSet = false;
372 bool m_ownerAccountIdHasBeenSet = false;
373 bool m_serviceIdHasBeenSet = false;
374 bool m_stateHasBeenSet = false;
375 bool m_tagsHasBeenSet = false;
376 bool m_urlEndpointHasBeenSet = false;
377 bool m_vpcIdHasBeenSet = false;
378 bool m_requestIdHasBeenSet = false;
379};
380
381} // namespace Model
382} // namespace MigrationHubRefactorSpaces
383} // namespace Aws
CreateServiceResult & WithServiceId(ServiceIdT &&value)
CreateServiceResult & WithDescription(DescriptionT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateServiceResult()=default
CreateServiceResult & WithCreatedByAccountId(CreatedByAccountIdT &&value)
CreateServiceResult & WithApplicationId(ApplicationIdT &&value)
CreateServiceResult & WithUrlEndpoint(UrlEndpointT &&value)
CreateServiceResult & WithLambdaEndpoint(LambdaEndpointT &&value)
CreateServiceResult & WithOwnerAccountId(OwnerAccountIdT &&value)
CreateServiceResult & WithEnvironmentId(EnvironmentIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateServiceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateServiceResult & WithEndpointType(ServiceEndpointType value)
CreateServiceResult & WithCreatedTime(CreatedTimeT &&value)
CreateServiceResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
CreateServiceResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateServiceResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MIGRATIONHUBREFACTORSPACES_API CreateServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue