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>
29namespace NetworkManager
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>
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>
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>
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>
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>
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>>
142 template<
typename EdgeLocationsT = Aws::String>
143 Attachment&
AddEdgeLocations(EdgeLocationsT&& value) { m_edgeLocationsHasBeenSet =
true; m_edgeLocations.emplace_back(std::forward<EdgeLocationsT>(value));
return *
this; }
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>
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>
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>
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>>
202 template<
typename TagsT = Tag>
203 Attachment&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
212 template<
typename ProposedSegmentChangeT = ProposedSegmentChange>
213 void SetProposedSegmentChange(ProposedSegmentChangeT&& value) { m_proposedSegmentChangeHasBeenSet =
true; m_proposedSegmentChange = std::forward<ProposedSegmentChangeT>(value); }
214 template<
typename ProposedSegmentChangeT = ProposedSegmentChange>
225 template<
typename ProposedNetworkFunctionGroupChangeT = ProposedNetworkFunctionGroupChange>
226 void SetProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT&& value) { m_proposedNetworkFunctionGroupChangeHasBeenSet =
true; m_proposedNetworkFunctionGroupChange = std::forward<ProposedNetworkFunctionGroupChangeT>(value); }
227 template<
typename ProposedNetworkFunctionGroupChangeT = ProposedNetworkFunctionGroupChange>
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>
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>
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>>
265 template<
typename LastModificationErrorsT = AttachmentError>
266 Attachment&
AddLastModificationErrors(LastModificationErrorsT&& value) { m_lastModificationErrorsHasBeenSet =
true; m_lastModificationErrors.emplace_back(std::forward<LastModificationErrorsT>(value));
return *
this; }
271 bool m_coreNetworkIdHasBeenSet =
false;
274 bool m_coreNetworkArnHasBeenSet =
false;
277 bool m_attachmentIdHasBeenSet =
false;
280 bool m_ownerAccountIdHasBeenSet =
false;
283 bool m_attachmentTypeHasBeenSet =
false;
286 bool m_stateHasBeenSet =
false;
289 bool m_edgeLocationHasBeenSet =
false;
292 bool m_edgeLocationsHasBeenSet =
false;
295 bool m_resourceArnHasBeenSet =
false;
297 int m_attachmentPolicyRuleNumber{0};
298 bool m_attachmentPolicyRuleNumberHasBeenSet =
false;
301 bool m_segmentNameHasBeenSet =
false;
304 bool m_networkFunctionGroupNameHasBeenSet =
false;
307 bool m_tagsHasBeenSet =
false;
309 ProposedSegmentChange m_proposedSegmentChange;
310 bool m_proposedSegmentChangeHasBeenSet =
false;
312 ProposedNetworkFunctionGroupChange m_proposedNetworkFunctionGroupChange;
313 bool m_proposedNetworkFunctionGroupChangeHasBeenSet =
false;
316 bool m_createdAtHasBeenSet =
false;
319 bool m_updatedAtHasBeenSet =
false;
322 bool m_lastModificationErrorsHasBeenSet =
false;
Attachment & AddEdgeLocations(EdgeLocationsT &&value)
Attachment & WithResourceArn(ResourceArnT &&value)
Attachment & AddLastModificationErrors(LastModificationErrorsT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithNetworkFunctionGroupName(NetworkFunctionGroupNameT &&value)
bool NetworkFunctionGroupNameHasBeenSet() const
Attachment & WithLastModificationErrors(LastModificationErrorsT &&value)
Attachment & WithProposedSegmentChange(ProposedSegmentChangeT &&value)
void SetAttachmentId(AttachmentIdT &&value)
void SetAttachmentType(AttachmentType value)
void SetOwnerAccountId(OwnerAccountIdT &&value)
const Aws::String & GetAttachmentId() const
Attachment & WithTags(TagsT &&value)
bool CoreNetworkIdHasBeenSet() const
const ProposedSegmentChange & GetProposedSegmentChange() const
const Aws::Utils::DateTime & GetUpdatedAt() const
Attachment & WithUpdatedAt(UpdatedAtT &&value)
void SetAttachmentPolicyRuleNumber(int value)
Attachment & WithState(AttachmentState value)
void SetResourceArn(ResourceArnT &&value)
AttachmentState GetState() const
bool EdgeLocationHasBeenSet() const
void SetCoreNetworkId(CoreNetworkIdT &&value)
bool CoreNetworkArnHasBeenSet() const
Attachment & WithOwnerAccountId(OwnerAccountIdT &&value)
void SetNetworkFunctionGroupName(NetworkFunctionGroupNameT &&value)
Attachment & WithAttachmentId(AttachmentIdT &&value)
AWS_NETWORKMANAGER_API Attachment()=default
const Aws::Vector< Aws::String > & GetEdgeLocations() const
bool SegmentNameHasBeenSet() const
bool LastModificationErrorsHasBeenSet() const
Attachment & AddTags(TagsT &&value)
const Aws::String & GetCoreNetworkId() const
Attachment & WithCoreNetworkArn(CoreNetworkArnT &&value)
const Aws::String & GetEdgeLocation() const
bool StateHasBeenSet() const
bool AttachmentPolicyRuleNumberHasBeenSet() const
bool CreatedAtHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
bool UpdatedAtHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetSegmentName(SegmentNameT &&value)
void SetLastModificationErrors(LastModificationErrorsT &&value)
const ProposedNetworkFunctionGroupChange & GetProposedNetworkFunctionGroupChange() const
void SetEdgeLocations(EdgeLocationsT &&value)
const Aws::Vector< AttachmentError > & GetLastModificationErrors() const
void SetProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT &&value)
Attachment & WithSegmentName(SegmentNameT &&value)
AttachmentType GetAttachmentType() const
bool TagsHasBeenSet() const
bool ProposedNetworkFunctionGroupChangeHasBeenSet() const
void SetEdgeLocation(EdgeLocationT &&value)
Attachment & WithEdgeLocations(EdgeLocationsT &&value)
void SetState(AttachmentState value)
const Aws::String & GetResourceArn() const
const Aws::String & GetOwnerAccountId() const
Attachment & WithProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeT &&value)
const Aws::String & GetNetworkFunctionGroupName() const
void SetCoreNetworkArn(CoreNetworkArnT &&value)
void SetProposedSegmentChange(ProposedSegmentChangeT &&value)
Attachment & WithEdgeLocation(EdgeLocationT &&value)
bool AttachmentIdHasBeenSet() const
bool ProposedSegmentChangeHasBeenSet() const
AWS_NETWORKMANAGER_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AttachmentTypeHasBeenSet() const
AWS_NETWORKMANAGER_API Attachment(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Tag > & GetTags() const
int GetAttachmentPolicyRuleNumber() const
void SetTags(TagsT &&value)
bool EdgeLocationsHasBeenSet() const
const Aws::String & GetSegmentName() const
Attachment & WithCreatedAt(CreatedAtT &&value)
Attachment & WithAttachmentType(AttachmentType value)
Attachment & WithCoreNetworkId(CoreNetworkIdT &&value)
const Aws::String & GetCoreNetworkArn() const
Attachment & WithAttachmentPolicyRuleNumber(int value)
bool OwnerAccountIdHasBeenSet() const
bool ResourceArnHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue