AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/AttachmentError.h>
12#include <aws/networkmanager/model/AttachmentState.h>
13#include <aws/networkmanager/model/AttachmentType.h>
14#include <aws/networkmanager/model/NatGatewaySupportState.h>
15#include <aws/networkmanager/model/ProposedNetworkFunctionGroupChange.h>
16#include <aws/networkmanager/model/ProposedSegmentChange.h>
17#include <aws/networkmanager/model/Tag.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace NetworkManager {
29namespace Model {
30
37 public:
38 AWS_NETWORKMANAGER_API Attachment() = default;
39 AWS_NETWORKMANAGER_API Attachment(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKMANAGER_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetCoreNetworkId() const { return m_coreNetworkId; }
48 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
49 template <typename CoreNetworkIdT = Aws::String>
50 void SetCoreNetworkId(CoreNetworkIdT&& value) {
51 m_coreNetworkIdHasBeenSet = true;
52 m_coreNetworkId = std::forward<CoreNetworkIdT>(value);
53 }
54 template <typename CoreNetworkIdT = Aws::String>
55 Attachment& WithCoreNetworkId(CoreNetworkIdT&& value) {
56 SetCoreNetworkId(std::forward<CoreNetworkIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetCoreNetworkArn() const { return m_coreNetworkArn; }
66 inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; }
67 template <typename CoreNetworkArnT = Aws::String>
68 void SetCoreNetworkArn(CoreNetworkArnT&& value) {
69 m_coreNetworkArnHasBeenSet = true;
70 m_coreNetworkArn = std::forward<CoreNetworkArnT>(value);
71 }
72 template <typename CoreNetworkArnT = Aws::String>
73 Attachment& WithCoreNetworkArn(CoreNetworkArnT&& value) {
74 SetCoreNetworkArn(std::forward<CoreNetworkArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
84 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
85 template <typename AttachmentIdT = Aws::String>
86 void SetAttachmentId(AttachmentIdT&& value) {
87 m_attachmentIdHasBeenSet = true;
88 m_attachmentId = std::forward<AttachmentIdT>(value);
89 }
90 template <typename AttachmentIdT = Aws::String>
91 Attachment& WithAttachmentId(AttachmentIdT&& value) {
92 SetAttachmentId(std::forward<AttachmentIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
102 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
103 template <typename OwnerAccountIdT = Aws::String>
104 void SetOwnerAccountId(OwnerAccountIdT&& value) {
105 m_ownerAccountIdHasBeenSet = true;
106 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
107 }
108 template <typename OwnerAccountIdT = Aws::String>
109 Attachment& WithOwnerAccountId(OwnerAccountIdT&& value) {
110 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
111 return *this;
112 }
114
116
119 inline AttachmentType GetAttachmentType() const { return m_attachmentType; }
120 inline bool AttachmentTypeHasBeenSet() const { return m_attachmentTypeHasBeenSet; }
122 m_attachmentTypeHasBeenSet = true;
123 m_attachmentType = value;
124 }
126 SetAttachmentType(value);
127 return *this;
128 }
130
132
135 inline AttachmentState GetState() const { return m_state; }
136 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
137 inline void SetState(AttachmentState value) {
138 m_stateHasBeenSet = true;
139 m_state = value;
140 }
142 SetState(value);
143 return *this;
144 }
146
148
153 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
154 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
155 template <typename EdgeLocationT = Aws::String>
156 void SetEdgeLocation(EdgeLocationT&& value) {
157 m_edgeLocationHasBeenSet = true;
158 m_edgeLocation = std::forward<EdgeLocationT>(value);
159 }
160 template <typename EdgeLocationT = Aws::String>
161 Attachment& WithEdgeLocation(EdgeLocationT&& value) {
162 SetEdgeLocation(std::forward<EdgeLocationT>(value));
163 return *this;
164 }
166
168
173 inline const Aws::Vector<Aws::String>& GetEdgeLocations() const { return m_edgeLocations; }
174 inline bool EdgeLocationsHasBeenSet() const { return m_edgeLocationsHasBeenSet; }
175 template <typename EdgeLocationsT = Aws::Vector<Aws::String>>
176 void SetEdgeLocations(EdgeLocationsT&& value) {
177 m_edgeLocationsHasBeenSet = true;
178 m_edgeLocations = std::forward<EdgeLocationsT>(value);
179 }
180 template <typename EdgeLocationsT = Aws::Vector<Aws::String>>
181 Attachment& WithEdgeLocations(EdgeLocationsT&& value) {
182 SetEdgeLocations(std::forward<EdgeLocationsT>(value));
183 return *this;
184 }
185 template <typename EdgeLocationsT = Aws::String>
186 Attachment& AddEdgeLocations(EdgeLocationsT&& value) {
187 m_edgeLocationsHasBeenSet = true;
188 m_edgeLocations.emplace_back(std::forward<EdgeLocationsT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
198 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
199 template <typename ResourceArnT = Aws::String>
200 void SetResourceArn(ResourceArnT&& value) {
201 m_resourceArnHasBeenSet = true;
202 m_resourceArn = std::forward<ResourceArnT>(value);
203 }
204 template <typename ResourceArnT = Aws::String>
205 Attachment& WithResourceArn(ResourceArnT&& value) {
206 SetResourceArn(std::forward<ResourceArnT>(value));
207 return *this;
208 }
210
212
215 inline int GetAttachmentPolicyRuleNumber() const { return m_attachmentPolicyRuleNumber; }
216 inline bool AttachmentPolicyRuleNumberHasBeenSet() const { return m_attachmentPolicyRuleNumberHasBeenSet; }
217 inline void SetAttachmentPolicyRuleNumber(int value) {
218 m_attachmentPolicyRuleNumberHasBeenSet = true;
219 m_attachmentPolicyRuleNumber = value;
220 }
223 return *this;
224 }
226
228
231 inline const Aws::String& GetSegmentName() const { return m_segmentName; }
232 inline bool SegmentNameHasBeenSet() const { return m_segmentNameHasBeenSet; }
233 template <typename SegmentNameT = Aws::String>
234 void SetSegmentName(SegmentNameT&& value) {
235 m_segmentNameHasBeenSet = true;
236 m_segmentName = std::forward<SegmentNameT>(value);
237 }
238 template <typename SegmentNameT = Aws::String>
239 Attachment& WithSegmentName(SegmentNameT&& value) {
240 SetSegmentName(std::forward<SegmentNameT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetNetworkFunctionGroupName() const { return m_networkFunctionGroupName; }
250 inline bool NetworkFunctionGroupNameHasBeenSet() const { return m_networkFunctionGroupNameHasBeenSet; }
251 template <typename NetworkFunctionGroupNameT = Aws::String>
252 void SetNetworkFunctionGroupName(NetworkFunctionGroupNameT&& value) {
253 m_networkFunctionGroupNameHasBeenSet = true;
254 m_networkFunctionGroupName = std::forward<NetworkFunctionGroupNameT>(value);
255 }
256 template <typename NetworkFunctionGroupNameT = Aws::String>
257 Attachment& WithNetworkFunctionGroupName(NetworkFunctionGroupNameT&& value) {
258 SetNetworkFunctionGroupName(std::forward<NetworkFunctionGroupNameT>(value));
259 return *this;
260 }
262
264
268 inline NatGatewaySupportState GetNatGatewaySupport() const { return m_natGatewaySupport; }
269 inline bool NatGatewaySupportHasBeenSet() const { return m_natGatewaySupportHasBeenSet; }
271 m_natGatewaySupportHasBeenSet = true;
272 m_natGatewaySupport = value;
273 }
276 return *this;
277 }
279
281
286 inline bool GetNatSystemRouteSupport() const { return m_natSystemRouteSupport; }
287 inline bool NatSystemRouteSupportHasBeenSet() const { return m_natSystemRouteSupportHasBeenSet; }
288 inline void SetNatSystemRouteSupport(bool value) {
289 m_natSystemRouteSupportHasBeenSet = true;
290 m_natSystemRouteSupport = value;
291 }
294 return *this;
295 }
297
299
302 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
303 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
304 template <typename TagsT = Aws::Vector<Tag>>
305 void SetTags(TagsT&& value) {
306 m_tagsHasBeenSet = true;
307 m_tags = std::forward<TagsT>(value);
308 }
309 template <typename TagsT = Aws::Vector<Tag>>
310 Attachment& WithTags(TagsT&& value) {
311 SetTags(std::forward<TagsT>(value));
312 return *this;
313 }
314 template <typename TagsT = Tag>
315 Attachment& AddTags(TagsT&& value) {
316 m_tagsHasBeenSet = true;
317 m_tags.emplace_back(std::forward<TagsT>(value));
318 return *this;
319 }
321
323
326 inline const ProposedSegmentChange& GetProposedSegmentChange() const { return m_proposedSegmentChange; }
327 inline bool ProposedSegmentChangeHasBeenSet() const { return m_proposedSegmentChangeHasBeenSet; }
328 template <typename ProposedSegmentChangeT = ProposedSegmentChange>
329 void SetProposedSegmentChange(ProposedSegmentChangeT&& value) {
330 m_proposedSegmentChangeHasBeenSet = true;
331 m_proposedSegmentChange = std::forward<ProposedSegmentChangeT>(value);
332 }
333 template <typename ProposedSegmentChangeT = ProposedSegmentChange>
334 Attachment& WithProposedSegmentChange(ProposedSegmentChangeT&& value) {
335 SetProposedSegmentChange(std::forward<ProposedSegmentChangeT>(value));
336 return *this;
337 }
339
341
346 return m_proposedNetworkFunctionGroupChange;
347 }
348 inline bool ProposedNetworkFunctionGroupChangeHasBeenSet() const { return m_proposedNetworkFunctionGroupChangeHasBeenSet; }
349 template <typename ProposedNetworkFunctionGroupChangeT = ProposedNetworkFunctionGroupChange>
350 void SetProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT&& value) {
351 m_proposedNetworkFunctionGroupChangeHasBeenSet = true;
352 m_proposedNetworkFunctionGroupChange = std::forward<ProposedNetworkFunctionGroupChangeT>(value);
353 }
354 template <typename ProposedNetworkFunctionGroupChangeT = ProposedNetworkFunctionGroupChange>
355 Attachment& WithProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT&& value) {
356 SetProposedNetworkFunctionGroupChange(std::forward<ProposedNetworkFunctionGroupChangeT>(value));
357 return *this;
358 }
360
362
365 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
366 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
367 template <typename CreatedAtT = Aws::Utils::DateTime>
368 void SetCreatedAt(CreatedAtT&& value) {
369 m_createdAtHasBeenSet = true;
370 m_createdAt = std::forward<CreatedAtT>(value);
371 }
372 template <typename CreatedAtT = Aws::Utils::DateTime>
373 Attachment& WithCreatedAt(CreatedAtT&& value) {
374 SetCreatedAt(std::forward<CreatedAtT>(value));
375 return *this;
376 }
378
380
383 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
384 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
385 template <typename UpdatedAtT = Aws::Utils::DateTime>
386 void SetUpdatedAt(UpdatedAtT&& value) {
387 m_updatedAtHasBeenSet = true;
388 m_updatedAt = std::forward<UpdatedAtT>(value);
389 }
390 template <typename UpdatedAtT = Aws::Utils::DateTime>
391 Attachment& WithUpdatedAt(UpdatedAtT&& value) {
392 SetUpdatedAt(std::forward<UpdatedAtT>(value));
393 return *this;
394 }
396
398
401 inline const Aws::Vector<AttachmentError>& GetLastModificationErrors() const { return m_lastModificationErrors; }
402 inline bool LastModificationErrorsHasBeenSet() const { return m_lastModificationErrorsHasBeenSet; }
403 template <typename LastModificationErrorsT = Aws::Vector<AttachmentError>>
404 void SetLastModificationErrors(LastModificationErrorsT&& value) {
405 m_lastModificationErrorsHasBeenSet = true;
406 m_lastModificationErrors = std::forward<LastModificationErrorsT>(value);
407 }
408 template <typename LastModificationErrorsT = Aws::Vector<AttachmentError>>
409 Attachment& WithLastModificationErrors(LastModificationErrorsT&& value) {
410 SetLastModificationErrors(std::forward<LastModificationErrorsT>(value));
411 return *this;
412 }
413 template <typename LastModificationErrorsT = AttachmentError>
414 Attachment& AddLastModificationErrors(LastModificationErrorsT&& value) {
415 m_lastModificationErrorsHasBeenSet = true;
416 m_lastModificationErrors.emplace_back(std::forward<LastModificationErrorsT>(value));
417 return *this;
418 }
420 private:
421 Aws::String m_coreNetworkId;
422
423 Aws::String m_coreNetworkArn;
424
425 Aws::String m_attachmentId;
426
427 Aws::String m_ownerAccountId;
428
429 AttachmentType m_attachmentType{AttachmentType::NOT_SET};
430
432
433 Aws::String m_edgeLocation;
434
435 Aws::Vector<Aws::String> m_edgeLocations;
436
437 Aws::String m_resourceArn;
438
439 int m_attachmentPolicyRuleNumber{0};
440
441 Aws::String m_segmentName;
442
443 Aws::String m_networkFunctionGroupName;
444
446
447 bool m_natSystemRouteSupport{false};
448
449 Aws::Vector<Tag> m_tags;
450
451 ProposedSegmentChange m_proposedSegmentChange;
452
453 ProposedNetworkFunctionGroupChange m_proposedNetworkFunctionGroupChange;
454
455 Aws::Utils::DateTime m_createdAt{};
456
457 Aws::Utils::DateTime m_updatedAt{};
458
459 Aws::Vector<AttachmentError> m_lastModificationErrors;
460 bool m_coreNetworkIdHasBeenSet = false;
461 bool m_coreNetworkArnHasBeenSet = false;
462 bool m_attachmentIdHasBeenSet = false;
463 bool m_ownerAccountIdHasBeenSet = false;
464 bool m_attachmentTypeHasBeenSet = false;
465 bool m_stateHasBeenSet = false;
466 bool m_edgeLocationHasBeenSet = false;
467 bool m_edgeLocationsHasBeenSet = false;
468 bool m_resourceArnHasBeenSet = false;
469 bool m_attachmentPolicyRuleNumberHasBeenSet = false;
470 bool m_segmentNameHasBeenSet = false;
471 bool m_networkFunctionGroupNameHasBeenSet = false;
472 bool m_natGatewaySupportHasBeenSet = false;
473 bool m_natSystemRouteSupportHasBeenSet = false;
474 bool m_tagsHasBeenSet = false;
475 bool m_proposedSegmentChangeHasBeenSet = false;
476 bool m_proposedNetworkFunctionGroupChangeHasBeenSet = false;
477 bool m_createdAtHasBeenSet = false;
478 bool m_updatedAtHasBeenSet = false;
479 bool m_lastModificationErrorsHasBeenSet = false;
480};
481
482} // namespace Model
483} // namespace NetworkManager
484} // namespace Aws
Attachment & AddEdgeLocations(EdgeLocationsT &&value)
Definition Attachment.h:186
Attachment & WithNatGatewaySupport(NatGatewaySupportState value)
Definition Attachment.h:274
void SetNatGatewaySupport(NatGatewaySupportState value)
Definition Attachment.h:270
NatGatewaySupportState GetNatGatewaySupport() const
Definition Attachment.h:268
Attachment & WithResourceArn(ResourceArnT &&value)
Definition Attachment.h:205
Attachment & AddLastModificationErrors(LastModificationErrorsT &&value)
Definition Attachment.h:414
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithNetworkFunctionGroupName(NetworkFunctionGroupNameT &&value)
Definition Attachment.h:257
Attachment & WithLastModificationErrors(LastModificationErrorsT &&value)
Definition Attachment.h:409
Attachment & WithProposedSegmentChange(ProposedSegmentChangeT &&value)
Definition Attachment.h:334
void SetAttachmentId(AttachmentIdT &&value)
Definition Attachment.h:86
void SetAttachmentType(AttachmentType value)
Definition Attachment.h:121
void SetOwnerAccountId(OwnerAccountIdT &&value)
Definition Attachment.h:104
const Aws::String & GetAttachmentId() const
Definition Attachment.h:83
Attachment & WithTags(TagsT &&value)
Definition Attachment.h:310
const ProposedSegmentChange & GetProposedSegmentChange() const
Definition Attachment.h:326
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Attachment.h:383
Attachment & WithUpdatedAt(UpdatedAtT &&value)
Definition Attachment.h:391
Attachment & WithState(AttachmentState value)
Definition Attachment.h:141
void SetResourceArn(ResourceArnT &&value)
Definition Attachment.h:200
AttachmentState GetState() const
Definition Attachment.h:135
void SetCoreNetworkId(CoreNetworkIdT &&value)
Definition Attachment.h:50
Attachment & WithOwnerAccountId(OwnerAccountIdT &&value)
Definition Attachment.h:109
void SetNetworkFunctionGroupName(NetworkFunctionGroupNameT &&value)
Definition Attachment.h:252
Attachment & WithAttachmentId(AttachmentIdT &&value)
Definition Attachment.h:91
AWS_NETWORKMANAGER_API Attachment()=default
const Aws::Vector< Aws::String > & GetEdgeLocations() const
Definition Attachment.h:173
Attachment & AddTags(TagsT &&value)
Definition Attachment.h:315
const Aws::String & GetCoreNetworkId() const
Definition Attachment.h:47
Attachment & WithCoreNetworkArn(CoreNetworkArnT &&value)
Definition Attachment.h:73
const Aws::String & GetEdgeLocation() const
Definition Attachment.h:153
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Attachment.h:365
void SetCreatedAt(CreatedAtT &&value)
Definition Attachment.h:368
void SetUpdatedAt(UpdatedAtT &&value)
Definition Attachment.h:386
void SetSegmentName(SegmentNameT &&value)
Definition Attachment.h:234
void SetLastModificationErrors(LastModificationErrorsT &&value)
Definition Attachment.h:404
const ProposedNetworkFunctionGroupChange & GetProposedNetworkFunctionGroupChange() const
Definition Attachment.h:345
void SetEdgeLocations(EdgeLocationsT &&value)
Definition Attachment.h:176
const Aws::Vector< AttachmentError > & GetLastModificationErrors() const
Definition Attachment.h:401
void SetProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT &&value)
Definition Attachment.h:350
Attachment & WithSegmentName(SegmentNameT &&value)
Definition Attachment.h:239
AttachmentType GetAttachmentType() const
Definition Attachment.h:119
bool ProposedNetworkFunctionGroupChangeHasBeenSet() const
Definition Attachment.h:348
void SetEdgeLocation(EdgeLocationT &&value)
Definition Attachment.h:156
Attachment & WithEdgeLocations(EdgeLocationsT &&value)
Definition Attachment.h:181
void SetState(AttachmentState value)
Definition Attachment.h:137
const Aws::String & GetResourceArn() const
Definition Attachment.h:197
const Aws::String & GetOwnerAccountId() const
Definition Attachment.h:101
Attachment & WithProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT &&value)
Definition Attachment.h:355
const Aws::String & GetNetworkFunctionGroupName() const
Definition Attachment.h:249
void SetCoreNetworkArn(CoreNetworkArnT &&value)
Definition Attachment.h:68
void SetProposedSegmentChange(ProposedSegmentChangeT &&value)
Definition Attachment.h:329
Attachment & WithEdgeLocation(EdgeLocationT &&value)
Definition Attachment.h:161
Attachment & WithNatSystemRouteSupport(bool value)
Definition Attachment.h:292
AWS_NETWORKMANAGER_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Attachment(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Tag > & GetTags() const
Definition Attachment.h:302
const Aws::String & GetSegmentName() const
Definition Attachment.h:231
Attachment & WithCreatedAt(CreatedAtT &&value)
Definition Attachment.h:373
Attachment & WithAttachmentType(AttachmentType value)
Definition Attachment.h:125
Attachment & WithCoreNetworkId(CoreNetworkIdT &&value)
Definition Attachment.h:55
const Aws::String & GetCoreNetworkArn() const
Definition Attachment.h:65
Attachment & WithAttachmentPolicyRuleNumber(int value)
Definition Attachment.h:221
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue