AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/AttachmentType.h>
10#include <aws/networkmanager/model/AttachmentState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/networkmanager/model/ProposedSegmentChange.h>
13#include <aws/networkmanager/model/ProposedNetworkFunctionGroupChange.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/networkmanager/model/Tag.h>
16#include <aws/networkmanager/model/AttachmentError.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace NetworkManager
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_NETWORKMANAGER_API Attachment() = default;
43 AWS_NETWORKMANAGER_API Attachment(Aws::Utils::Json::JsonView jsonValue);
44 AWS_NETWORKMANAGER_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetCoreNetworkId() const { return m_coreNetworkId; }
53 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
54 template<typename CoreNetworkIdT = Aws::String>
55 void SetCoreNetworkId(CoreNetworkIdT&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::forward<CoreNetworkIdT>(value); }
56 template<typename CoreNetworkIdT = Aws::String>
57 Attachment& WithCoreNetworkId(CoreNetworkIdT&& value) { SetCoreNetworkId(std::forward<CoreNetworkIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetCoreNetworkArn() const { return m_coreNetworkArn; }
65 inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; }
66 template<typename CoreNetworkArnT = Aws::String>
67 void SetCoreNetworkArn(CoreNetworkArnT&& value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = std::forward<CoreNetworkArnT>(value); }
68 template<typename CoreNetworkArnT = Aws::String>
69 Attachment& WithCoreNetworkArn(CoreNetworkArnT&& value) { SetCoreNetworkArn(std::forward<CoreNetworkArnT>(value)); return *this;}
71
73
76 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
77 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
78 template<typename AttachmentIdT = Aws::String>
79 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
80 template<typename AttachmentIdT = Aws::String>
81 Attachment& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
83
85
88 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
89 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
90 template<typename OwnerAccountIdT = Aws::String>
91 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
92 template<typename OwnerAccountIdT = Aws::String>
93 Attachment& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
95
97
100 inline AttachmentType GetAttachmentType() const { return m_attachmentType; }
101 inline bool AttachmentTypeHasBeenSet() const { return m_attachmentTypeHasBeenSet; }
102 inline void SetAttachmentType(AttachmentType value) { m_attachmentTypeHasBeenSet = true; m_attachmentType = value; }
103 inline Attachment& WithAttachmentType(AttachmentType value) { SetAttachmentType(value); return *this;}
105
107
110 inline AttachmentState GetState() const { return m_state; }
111 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
112 inline void SetState(AttachmentState value) { m_stateHasBeenSet = true; m_state = value; }
113 inline Attachment& WithState(AttachmentState value) { SetState(value); return *this;}
115
117
122 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
123 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
124 template<typename EdgeLocationT = Aws::String>
125 void SetEdgeLocation(EdgeLocationT&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::forward<EdgeLocationT>(value); }
126 template<typename EdgeLocationT = Aws::String>
127 Attachment& WithEdgeLocation(EdgeLocationT&& value) { SetEdgeLocation(std::forward<EdgeLocationT>(value)); return *this;}
129
131
136 inline const Aws::Vector<Aws::String>& GetEdgeLocations() const { return m_edgeLocations; }
137 inline bool EdgeLocationsHasBeenSet() const { return m_edgeLocationsHasBeenSet; }
138 template<typename EdgeLocationsT = Aws::Vector<Aws::String>>
139 void SetEdgeLocations(EdgeLocationsT&& value) { m_edgeLocationsHasBeenSet = true; m_edgeLocations = std::forward<EdgeLocationsT>(value); }
140 template<typename EdgeLocationsT = Aws::Vector<Aws::String>>
141 Attachment& WithEdgeLocations(EdgeLocationsT&& value) { SetEdgeLocations(std::forward<EdgeLocationsT>(value)); return *this;}
142 template<typename EdgeLocationsT = Aws::String>
143 Attachment& AddEdgeLocations(EdgeLocationsT&& value) { m_edgeLocationsHasBeenSet = true; m_edgeLocations.emplace_back(std::forward<EdgeLocationsT>(value)); return *this; }
145
147
150 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
151 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
152 template<typename ResourceArnT = Aws::String>
153 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
154 template<typename ResourceArnT = Aws::String>
155 Attachment& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
157
159
162 inline int GetAttachmentPolicyRuleNumber() const { return m_attachmentPolicyRuleNumber; }
163 inline bool AttachmentPolicyRuleNumberHasBeenSet() const { return m_attachmentPolicyRuleNumberHasBeenSet; }
164 inline void SetAttachmentPolicyRuleNumber(int value) { m_attachmentPolicyRuleNumberHasBeenSet = true; m_attachmentPolicyRuleNumber = value; }
167
169
172 inline const Aws::String& GetSegmentName() const { return m_segmentName; }
173 inline bool SegmentNameHasBeenSet() const { return m_segmentNameHasBeenSet; }
174 template<typename SegmentNameT = Aws::String>
175 void SetSegmentName(SegmentNameT&& value) { m_segmentNameHasBeenSet = true; m_segmentName = std::forward<SegmentNameT>(value); }
176 template<typename SegmentNameT = Aws::String>
177 Attachment& WithSegmentName(SegmentNameT&& value) { SetSegmentName(std::forward<SegmentNameT>(value)); return *this;}
179
181
184 inline const Aws::String& GetNetworkFunctionGroupName() const { return m_networkFunctionGroupName; }
185 inline bool NetworkFunctionGroupNameHasBeenSet() const { return m_networkFunctionGroupNameHasBeenSet; }
186 template<typename NetworkFunctionGroupNameT = Aws::String>
187 void SetNetworkFunctionGroupName(NetworkFunctionGroupNameT&& value) { m_networkFunctionGroupNameHasBeenSet = true; m_networkFunctionGroupName = std::forward<NetworkFunctionGroupNameT>(value); }
188 template<typename NetworkFunctionGroupNameT = Aws::String>
189 Attachment& WithNetworkFunctionGroupName(NetworkFunctionGroupNameT&& value) { SetNetworkFunctionGroupName(std::forward<NetworkFunctionGroupNameT>(value)); return *this;}
191
193
196 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 template<typename TagsT = Aws::Vector<Tag>>
199 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
200 template<typename TagsT = Aws::Vector<Tag>>
201 Attachment& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
202 template<typename TagsT = Tag>
203 Attachment& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
205
207
210 inline const ProposedSegmentChange& GetProposedSegmentChange() const { return m_proposedSegmentChange; }
211 inline bool ProposedSegmentChangeHasBeenSet() const { return m_proposedSegmentChangeHasBeenSet; }
212 template<typename ProposedSegmentChangeT = ProposedSegmentChange>
213 void SetProposedSegmentChange(ProposedSegmentChangeT&& value) { m_proposedSegmentChangeHasBeenSet = true; m_proposedSegmentChange = std::forward<ProposedSegmentChangeT>(value); }
214 template<typename ProposedSegmentChangeT = ProposedSegmentChange>
215 Attachment& WithProposedSegmentChange(ProposedSegmentChangeT&& value) { SetProposedSegmentChange(std::forward<ProposedSegmentChangeT>(value)); return *this;}
217
219
223 inline const ProposedNetworkFunctionGroupChange& GetProposedNetworkFunctionGroupChange() const { return m_proposedNetworkFunctionGroupChange; }
224 inline bool ProposedNetworkFunctionGroupChangeHasBeenSet() const { return m_proposedNetworkFunctionGroupChangeHasBeenSet; }
225 template<typename ProposedNetworkFunctionGroupChangeT = ProposedNetworkFunctionGroupChange>
226 void SetProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT&& value) { m_proposedNetworkFunctionGroupChangeHasBeenSet = true; m_proposedNetworkFunctionGroupChange = std::forward<ProposedNetworkFunctionGroupChangeT>(value); }
227 template<typename ProposedNetworkFunctionGroupChangeT = ProposedNetworkFunctionGroupChange>
228 Attachment& WithProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT&& value) { SetProposedNetworkFunctionGroupChange(std::forward<ProposedNetworkFunctionGroupChangeT>(value)); return *this;}
230
232
235 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
236 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
237 template<typename CreatedAtT = Aws::Utils::DateTime>
238 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
239 template<typename CreatedAtT = Aws::Utils::DateTime>
240 Attachment& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
242
244
247 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
248 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
249 template<typename UpdatedAtT = Aws::Utils::DateTime>
250 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
251 template<typename UpdatedAtT = Aws::Utils::DateTime>
252 Attachment& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
254
256
259 inline const Aws::Vector<AttachmentError>& GetLastModificationErrors() const { return m_lastModificationErrors; }
260 inline bool LastModificationErrorsHasBeenSet() const { return m_lastModificationErrorsHasBeenSet; }
261 template<typename LastModificationErrorsT = Aws::Vector<AttachmentError>>
262 void SetLastModificationErrors(LastModificationErrorsT&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors = std::forward<LastModificationErrorsT>(value); }
263 template<typename LastModificationErrorsT = Aws::Vector<AttachmentError>>
264 Attachment& WithLastModificationErrors(LastModificationErrorsT&& value) { SetLastModificationErrors(std::forward<LastModificationErrorsT>(value)); return *this;}
265 template<typename LastModificationErrorsT = AttachmentError>
266 Attachment& AddLastModificationErrors(LastModificationErrorsT&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors.emplace_back(std::forward<LastModificationErrorsT>(value)); return *this; }
268 private:
269
270 Aws::String m_coreNetworkId;
271 bool m_coreNetworkIdHasBeenSet = false;
272
273 Aws::String m_coreNetworkArn;
274 bool m_coreNetworkArnHasBeenSet = false;
275
276 Aws::String m_attachmentId;
277 bool m_attachmentIdHasBeenSet = false;
278
279 Aws::String m_ownerAccountId;
280 bool m_ownerAccountIdHasBeenSet = false;
281
282 AttachmentType m_attachmentType{AttachmentType::NOT_SET};
283 bool m_attachmentTypeHasBeenSet = false;
284
286 bool m_stateHasBeenSet = false;
287
288 Aws::String m_edgeLocation;
289 bool m_edgeLocationHasBeenSet = false;
290
291 Aws::Vector<Aws::String> m_edgeLocations;
292 bool m_edgeLocationsHasBeenSet = false;
293
294 Aws::String m_resourceArn;
295 bool m_resourceArnHasBeenSet = false;
296
297 int m_attachmentPolicyRuleNumber{0};
298 bool m_attachmentPolicyRuleNumberHasBeenSet = false;
299
300 Aws::String m_segmentName;
301 bool m_segmentNameHasBeenSet = false;
302
303 Aws::String m_networkFunctionGroupName;
304 bool m_networkFunctionGroupNameHasBeenSet = false;
305
306 Aws::Vector<Tag> m_tags;
307 bool m_tagsHasBeenSet = false;
308
309 ProposedSegmentChange m_proposedSegmentChange;
310 bool m_proposedSegmentChangeHasBeenSet = false;
311
312 ProposedNetworkFunctionGroupChange m_proposedNetworkFunctionGroupChange;
313 bool m_proposedNetworkFunctionGroupChangeHasBeenSet = false;
314
315 Aws::Utils::DateTime m_createdAt{};
316 bool m_createdAtHasBeenSet = false;
317
318 Aws::Utils::DateTime m_updatedAt{};
319 bool m_updatedAtHasBeenSet = false;
320
321 Aws::Vector<AttachmentError> m_lastModificationErrors;
322 bool m_lastModificationErrorsHasBeenSet = false;
323 };
324
325} // namespace Model
326} // namespace NetworkManager
327} // namespace Aws
Attachment & AddEdgeLocations(EdgeLocationsT &&value)
Definition Attachment.h:143
Attachment & WithResourceArn(ResourceArnT &&value)
Definition Attachment.h:155
Attachment & AddLastModificationErrors(LastModificationErrorsT &&value)
Definition Attachment.h:266
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithNetworkFunctionGroupName(NetworkFunctionGroupNameT &&value)
Definition Attachment.h:189
Attachment & WithLastModificationErrors(LastModificationErrorsT &&value)
Definition Attachment.h:264
Attachment & WithProposedSegmentChange(ProposedSegmentChangeT &&value)
Definition Attachment.h:215
void SetAttachmentId(AttachmentIdT &&value)
Definition Attachment.h:79
void SetAttachmentType(AttachmentType value)
Definition Attachment.h:102
void SetOwnerAccountId(OwnerAccountIdT &&value)
Definition Attachment.h:91
const Aws::String & GetAttachmentId() const
Definition Attachment.h:76
Attachment & WithTags(TagsT &&value)
Definition Attachment.h:201
const ProposedSegmentChange & GetProposedSegmentChange() const
Definition Attachment.h:210
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Attachment.h:247
Attachment & WithUpdatedAt(UpdatedAtT &&value)
Definition Attachment.h:252
Attachment & WithState(AttachmentState value)
Definition Attachment.h:113
void SetResourceArn(ResourceArnT &&value)
Definition Attachment.h:153
AttachmentState GetState() const
Definition Attachment.h:110
void SetCoreNetworkId(CoreNetworkIdT &&value)
Definition Attachment.h:55
Attachment & WithOwnerAccountId(OwnerAccountIdT &&value)
Definition Attachment.h:93
void SetNetworkFunctionGroupName(NetworkFunctionGroupNameT &&value)
Definition Attachment.h:187
Attachment & WithAttachmentId(AttachmentIdT &&value)
Definition Attachment.h:81
AWS_NETWORKMANAGER_API Attachment()=default
const Aws::Vector< Aws::String > & GetEdgeLocations() const
Definition Attachment.h:136
Attachment & AddTags(TagsT &&value)
Definition Attachment.h:203
const Aws::String & GetCoreNetworkId() const
Definition Attachment.h:52
Attachment & WithCoreNetworkArn(CoreNetworkArnT &&value)
Definition Attachment.h:69
const Aws::String & GetEdgeLocation() const
Definition Attachment.h:122
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Attachment.h:235
void SetCreatedAt(CreatedAtT &&value)
Definition Attachment.h:238
void SetUpdatedAt(UpdatedAtT &&value)
Definition Attachment.h:250
void SetSegmentName(SegmentNameT &&value)
Definition Attachment.h:175
void SetLastModificationErrors(LastModificationErrorsT &&value)
Definition Attachment.h:262
const ProposedNetworkFunctionGroupChange & GetProposedNetworkFunctionGroupChange() const
Definition Attachment.h:223
void SetEdgeLocations(EdgeLocationsT &&value)
Definition Attachment.h:139
const Aws::Vector< AttachmentError > & GetLastModificationErrors() const
Definition Attachment.h:259
void SetProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT &&value)
Definition Attachment.h:226
Attachment & WithSegmentName(SegmentNameT &&value)
Definition Attachment.h:177
AttachmentType GetAttachmentType() const
Definition Attachment.h:100
bool ProposedNetworkFunctionGroupChangeHasBeenSet() const
Definition Attachment.h:224
void SetEdgeLocation(EdgeLocationT &&value)
Definition Attachment.h:125
Attachment & WithEdgeLocations(EdgeLocationsT &&value)
Definition Attachment.h:141
void SetState(AttachmentState value)
Definition Attachment.h:112
const Aws::String & GetResourceArn() const
Definition Attachment.h:150
const Aws::String & GetOwnerAccountId() const
Definition Attachment.h:88
Attachment & WithProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT &&value)
Definition Attachment.h:228
const Aws::String & GetNetworkFunctionGroupName() const
Definition Attachment.h:184
void SetCoreNetworkArn(CoreNetworkArnT &&value)
Definition Attachment.h:67
void SetProposedSegmentChange(ProposedSegmentChangeT &&value)
Definition Attachment.h:213
Attachment & WithEdgeLocation(EdgeLocationT &&value)
Definition Attachment.h:127
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:196
const Aws::String & GetSegmentName() const
Definition Attachment.h:172
Attachment & WithCreatedAt(CreatedAtT &&value)
Definition Attachment.h:240
Attachment & WithAttachmentType(AttachmentType value)
Definition Attachment.h:103
Attachment & WithCoreNetworkId(CoreNetworkIdT &&value)
Definition Attachment.h:57
const Aws::String & GetCoreNetworkArn() const
Definition Attachment.h:64
Attachment & WithAttachmentPolicyRuleNumber(int value)
Definition Attachment.h:165
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue