AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
EnvironmentSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
11#include <aws/migration-hub-refactor-spaces/model/EnvironmentState.h>
12#include <aws/migration-hub-refactor-spaces/model/ErrorResponse.h>
13#include <aws/migration-hub-refactor-spaces/model/NetworkFabricType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MigrationHubRefactorSpaces {
25namespace Model {
26
34 public:
35 AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentSummary() = default;
36 AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 EnvironmentSummary& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
63 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
64 template <typename CreatedTimeT = Aws::Utils::DateTime>
65 void SetCreatedTime(CreatedTimeT&& value) {
66 m_createdTimeHasBeenSet = true;
67 m_createdTime = std::forward<CreatedTimeT>(value);
68 }
69 template <typename CreatedTimeT = Aws::Utils::DateTime>
70 EnvironmentSummary& WithCreatedTime(CreatedTimeT&& value) {
71 SetCreatedTime(std::forward<CreatedTimeT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 EnvironmentSummary& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
99 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
100 template <typename EnvironmentIdT = Aws::String>
101 void SetEnvironmentId(EnvironmentIdT&& value) {
102 m_environmentIdHasBeenSet = true;
103 m_environmentId = std::forward<EnvironmentIdT>(value);
104 }
105 template <typename EnvironmentIdT = Aws::String>
106 EnvironmentSummary& WithEnvironmentId(EnvironmentIdT&& value) {
107 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
108 return *this;
109 }
111
113
116 inline const ErrorResponse& GetError() const { return m_error; }
117 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
118 template <typename ErrorT = ErrorResponse>
119 void SetError(ErrorT&& value) {
120 m_errorHasBeenSet = true;
121 m_error = std::forward<ErrorT>(value);
122 }
123 template <typename ErrorT = ErrorResponse>
124 EnvironmentSummary& WithError(ErrorT&& value) {
125 SetError(std::forward<ErrorT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
135 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
136 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
137 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
138 m_lastUpdatedTimeHasBeenSet = true;
139 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
140 }
141 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
142 EnvironmentSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
143 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetName() const { return m_name; }
153 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
154 template <typename NameT = Aws::String>
155 void SetName(NameT&& value) {
156 m_nameHasBeenSet = true;
157 m_name = std::forward<NameT>(value);
158 }
159 template <typename NameT = Aws::String>
160 EnvironmentSummary& WithName(NameT&& value) {
161 SetName(std::forward<NameT>(value));
162 return *this;
163 }
165
167
170 inline NetworkFabricType GetNetworkFabricType() const { return m_networkFabricType; }
171 inline bool NetworkFabricTypeHasBeenSet() const { return m_networkFabricTypeHasBeenSet; }
173 m_networkFabricTypeHasBeenSet = true;
174 m_networkFabricType = value;
175 }
178 return *this;
179 }
181
183
186 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
187 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
188 template <typename OwnerAccountIdT = Aws::String>
189 void SetOwnerAccountId(OwnerAccountIdT&& value) {
190 m_ownerAccountIdHasBeenSet = true;
191 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
192 }
193 template <typename OwnerAccountIdT = Aws::String>
194 EnvironmentSummary& WithOwnerAccountId(OwnerAccountIdT&& value) {
195 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
196 return *this;
197 }
199
201
204 inline EnvironmentState GetState() const { return m_state; }
205 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
206 inline void SetState(EnvironmentState value) {
207 m_stateHasBeenSet = true;
208 m_state = value;
209 }
211 SetState(value);
212 return *this;
213 }
215
217
220 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
221 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
222 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 void SetTags(TagsT&& value) {
224 m_tagsHasBeenSet = true;
225 m_tags = std::forward<TagsT>(value);
226 }
227 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
228 EnvironmentSummary& WithTags(TagsT&& value) {
229 SetTags(std::forward<TagsT>(value));
230 return *this;
231 }
232 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
233 EnvironmentSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
234 m_tagsHasBeenSet = true;
235 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
245 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
246 template <typename TransitGatewayIdT = Aws::String>
247 void SetTransitGatewayId(TransitGatewayIdT&& value) {
248 m_transitGatewayIdHasBeenSet = true;
249 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
250 }
251 template <typename TransitGatewayIdT = Aws::String>
252 EnvironmentSummary& WithTransitGatewayId(TransitGatewayIdT&& value) {
253 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
254 return *this;
255 }
257 private:
258 Aws::String m_arn;
259
260 Aws::Utils::DateTime m_createdTime{};
261
262 Aws::String m_description;
263
264 Aws::String m_environmentId;
265
266 ErrorResponse m_error;
267
268 Aws::Utils::DateTime m_lastUpdatedTime{};
269
270 Aws::String m_name;
271
273
274 Aws::String m_ownerAccountId;
275
277
279
280 Aws::String m_transitGatewayId;
281 bool m_arnHasBeenSet = false;
282 bool m_createdTimeHasBeenSet = false;
283 bool m_descriptionHasBeenSet = false;
284 bool m_environmentIdHasBeenSet = false;
285 bool m_errorHasBeenSet = false;
286 bool m_lastUpdatedTimeHasBeenSet = false;
287 bool m_nameHasBeenSet = false;
288 bool m_networkFabricTypeHasBeenSet = false;
289 bool m_ownerAccountIdHasBeenSet = false;
290 bool m_stateHasBeenSet = false;
291 bool m_tagsHasBeenSet = false;
292 bool m_transitGatewayIdHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace MigrationHubRefactorSpaces
297} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EnvironmentSummary & WithDescription(DescriptionT &&value)
EnvironmentSummary & WithState(EnvironmentState value)
EnvironmentSummary & WithOwnerAccountId(OwnerAccountIdT &&value)
EnvironmentSummary & WithEnvironmentId(EnvironmentIdT &&value)
EnvironmentSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentSummary()=default
EnvironmentSummary & WithTransitGatewayId(TransitGatewayIdT &&value)
EnvironmentSummary & WithNetworkFabricType(NetworkFabricType value)
AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue)
EnvironmentSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentSummary & WithCreatedTime(CreatedTimeT &&value)
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