AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
GetEnvironmentResult.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/EnvironmentState.h>
13#include <aws/migration-hub-refactor-spaces/model/ErrorResponse.h>
14#include <aws/migration-hub-refactor-spaces/model/NetworkFabricType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace MigrationHubRefactorSpaces {
28namespace Model {
30 public:
31 AWS_MIGRATIONHUBREFACTORSPACES_API GetEnvironmentResult() = default;
32 AWS_MIGRATIONHUBREFACTORSPACES_API GetEnvironmentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33 AWS_MIGRATIONHUBREFACTORSPACES_API GetEnvironmentResult& operator=(
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
58 template <typename CreatedTimeT = Aws::Utils::DateTime>
59 void SetCreatedTime(CreatedTimeT&& value) {
60 m_createdTimeHasBeenSet = true;
61 m_createdTime = std::forward<CreatedTimeT>(value);
62 }
63 template <typename CreatedTimeT = Aws::Utils::DateTime>
64 GetEnvironmentResult& WithCreatedTime(CreatedTimeT&& value) {
65 SetCreatedTime(std::forward<CreatedTimeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 GetEnvironmentResult& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
92 template <typename EnvironmentIdT = Aws::String>
93 void SetEnvironmentId(EnvironmentIdT&& value) {
94 m_environmentIdHasBeenSet = true;
95 m_environmentId = std::forward<EnvironmentIdT>(value);
96 }
97 template <typename EnvironmentIdT = Aws::String>
98 GetEnvironmentResult& WithEnvironmentId(EnvironmentIdT&& value) {
99 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
100 return *this;
101 }
103
105
108 inline const ErrorResponse& GetError() const { return m_error; }
109 template <typename ErrorT = ErrorResponse>
110 void SetError(ErrorT&& value) {
111 m_errorHasBeenSet = true;
112 m_error = std::forward<ErrorT>(value);
113 }
114 template <typename ErrorT = ErrorResponse>
116 SetError(std::forward<ErrorT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
126 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
127 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
128 m_lastUpdatedTimeHasBeenSet = true;
129 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
130 }
131 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
132 GetEnvironmentResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
133 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetName() const { return m_name; }
143 template <typename NameT = Aws::String>
144 void SetName(NameT&& value) {
145 m_nameHasBeenSet = true;
146 m_name = std::forward<NameT>(value);
147 }
148 template <typename NameT = Aws::String>
150 SetName(std::forward<NameT>(value));
151 return *this;
152 }
154
156
159 inline NetworkFabricType GetNetworkFabricType() const { return m_networkFabricType; }
161 m_networkFabricTypeHasBeenSet = true;
162 m_networkFabricType = value;
163 }
166 return *this;
167 }
169
171
174 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
175 template <typename OwnerAccountIdT = Aws::String>
176 void SetOwnerAccountId(OwnerAccountIdT&& value) {
177 m_ownerAccountIdHasBeenSet = true;
178 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
179 }
180 template <typename OwnerAccountIdT = Aws::String>
181 GetEnvironmentResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
182 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
183 return *this;
184 }
186
188
191 inline EnvironmentState GetState() const { return m_state; }
192 inline void SetState(EnvironmentState value) {
193 m_stateHasBeenSet = true;
194 m_state = value;
195 }
197 SetState(value);
198 return *this;
199 }
201
203
207 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
208 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
209 void SetTags(TagsT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags = std::forward<TagsT>(value);
212 }
213 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
215 SetTags(std::forward<TagsT>(value));
216 return *this;
217 }
218 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
219 GetEnvironmentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
220 m_tagsHasBeenSet = true;
221 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
231 template <typename TransitGatewayIdT = Aws::String>
232 void SetTransitGatewayId(TransitGatewayIdT&& value) {
233 m_transitGatewayIdHasBeenSet = true;
234 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
235 }
236 template <typename TransitGatewayIdT = Aws::String>
237 GetEnvironmentResult& WithTransitGatewayId(TransitGatewayIdT&& value) {
238 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
239 return *this;
240 }
242
244
245 inline const Aws::String& GetRequestId() const { return m_requestId; }
246 template <typename RequestIdT = Aws::String>
247 void SetRequestId(RequestIdT&& value) {
248 m_requestIdHasBeenSet = true;
249 m_requestId = std::forward<RequestIdT>(value);
250 }
251 template <typename RequestIdT = Aws::String>
252 GetEnvironmentResult& WithRequestId(RequestIdT&& value) {
253 SetRequestId(std::forward<RequestIdT>(value));
254 return *this;
255 }
257 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
258
259 private:
260 Aws::String m_arn;
261
262 Aws::Utils::DateTime m_createdTime{};
263
264 Aws::String m_description;
265
266 Aws::String m_environmentId;
267
268 ErrorResponse m_error;
269
270 Aws::Utils::DateTime m_lastUpdatedTime{};
271
272 Aws::String m_name;
273
275
276 Aws::String m_ownerAccountId;
277
279
281
282 Aws::String m_transitGatewayId;
283
284 Aws::String m_requestId;
285 Aws::Http::HttpResponseCode m_HttpResponseCode;
286 bool m_arnHasBeenSet = false;
287 bool m_createdTimeHasBeenSet = false;
288 bool m_descriptionHasBeenSet = false;
289 bool m_environmentIdHasBeenSet = false;
290 bool m_errorHasBeenSet = false;
291 bool m_lastUpdatedTimeHasBeenSet = false;
292 bool m_nameHasBeenSet = false;
293 bool m_networkFabricTypeHasBeenSet = false;
294 bool m_ownerAccountIdHasBeenSet = false;
295 bool m_stateHasBeenSet = false;
296 bool m_tagsHasBeenSet = false;
297 bool m_transitGatewayIdHasBeenSet = false;
298 bool m_requestIdHasBeenSet = false;
299};
300
301} // namespace Model
302} // namespace MigrationHubRefactorSpaces
303} // namespace Aws
AWS_MIGRATIONHUBREFACTORSPACES_API GetEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEnvironmentResult & WithState(EnvironmentState value)
AWS_MIGRATIONHUBREFACTORSPACES_API GetEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEnvironmentResult & WithEnvironmentId(EnvironmentIdT &&value)
GetEnvironmentResult & WithCreatedTime(CreatedTimeT &&value)
GetEnvironmentResult & WithNetworkFabricType(NetworkFabricType value)
GetEnvironmentResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
GetEnvironmentResult & WithDescription(DescriptionT &&value)
GetEnvironmentResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetEnvironmentResult & WithOwnerAccountId(OwnerAccountIdT &&value)
GetEnvironmentResult & WithTransitGatewayId(TransitGatewayIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API GetEnvironmentResult()=default
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