7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/PeeringType.h>
10#include <aws/networkmanager/model/PeeringState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/networkmanager/model/Tag.h>
14#include <aws/networkmanager/model/PeeringError.h>
27namespace NetworkManager
40 AWS_NETWORKMANAGER_API
Peering() =
default;
52 template<
typename CoreNetworkIdT = Aws::String>
53 void SetCoreNetworkId(CoreNetworkIdT&& value) { m_coreNetworkIdHasBeenSet =
true; m_coreNetworkId = std::forward<CoreNetworkIdT>(value); }
54 template<
typename CoreNetworkIdT = Aws::String>
64 template<
typename CoreNetworkArnT = Aws::String>
65 void SetCoreNetworkArn(CoreNetworkArnT&& value) { m_coreNetworkArnHasBeenSet =
true; m_coreNetworkArn = std::forward<CoreNetworkArnT>(value); }
66 template<
typename CoreNetworkArnT = Aws::String>
76 template<
typename PeeringIdT = Aws::String>
77 void SetPeeringId(PeeringIdT&& value) { m_peeringIdHasBeenSet =
true; m_peeringId = std::forward<PeeringIdT>(value); }
78 template<
typename PeeringIdT = Aws::String>
88 template<
typename OwnerAccountIdT = Aws::String>
89 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet =
true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
90 template<
typename OwnerAccountIdT = Aws::String>
120 template<
typename EdgeLocationT = Aws::String>
121 void SetEdgeLocation(EdgeLocationT&& value) { m_edgeLocationHasBeenSet =
true; m_edgeLocation = std::forward<EdgeLocationT>(value); }
122 template<
typename EdgeLocationT = Aws::String>
132 template<
typename ResourceArnT = Aws::String>
133 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet =
true; m_resourceArn = std::forward<ResourceArnT>(value); }
134 template<
typename ResourceArnT = Aws::String>
144 template<
typename TagsT = Aws::Vector<Tag>>
145 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
146 template<
typename TagsT = Aws::Vector<Tag>>
148 template<
typename TagsT = Tag>
149 Peering&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
158 template<
typename CreatedAtT = Aws::Utils::DateTime>
159 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
160 template<
typename CreatedAtT = Aws::Utils::DateTime>
170 template<
typename LastModificationErrorsT = Aws::Vector<PeeringError>>
171 void SetLastModificationErrors(LastModificationErrorsT&& value) { m_lastModificationErrorsHasBeenSet =
true; m_lastModificationErrors = std::forward<LastModificationErrorsT>(value); }
172 template<
typename LastModificationErrorsT = Aws::Vector<PeeringError>>
174 template<
typename LastModificationErrorsT = PeeringError>
175 Peering&
AddLastModificationErrors(LastModificationErrorsT&& value) { m_lastModificationErrorsHasBeenSet =
true; m_lastModificationErrors.emplace_back(std::forward<LastModificationErrorsT>(value));
return *
this; }
180 bool m_coreNetworkIdHasBeenSet =
false;
183 bool m_coreNetworkArnHasBeenSet =
false;
186 bool m_peeringIdHasBeenSet =
false;
189 bool m_ownerAccountIdHasBeenSet =
false;
192 bool m_peeringTypeHasBeenSet =
false;
195 bool m_stateHasBeenSet =
false;
198 bool m_edgeLocationHasBeenSet =
false;
201 bool m_resourceArnHasBeenSet =
false;
204 bool m_tagsHasBeenSet =
false;
207 bool m_createdAtHasBeenSet =
false;
210 bool m_lastModificationErrorsHasBeenSet =
false;
Peering & AddLastModificationErrors(LastModificationErrorsT &&value)
Peering & WithResourceArn(ResourceArnT &&value)
bool CoreNetworkArnHasBeenSet() const
void SetCoreNetworkArn(CoreNetworkArnT &&value)
void SetPeeringType(PeeringType value)
Peering & WithState(PeeringState value)
Peering & WithPeeringId(PeeringIdT &&value)
void SetResourceArn(ResourceArnT &&value)
void SetPeeringId(PeeringIdT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(PeeringState value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetCoreNetworkArn() const
const Aws::Vector< PeeringError > & GetLastModificationErrors() const
bool LastModificationErrorsHasBeenSet() const
PeeringType GetPeeringType() const
bool CoreNetworkIdHasBeenSet() const
const Aws::String & GetResourceArn() const
bool PeeringIdHasBeenSet() const
void SetOwnerAccountId(OwnerAccountIdT &&value)
const Aws::String & GetEdgeLocation() const
const Aws::Vector< Tag > & GetTags() const
bool StateHasBeenSet() const
bool EdgeLocationHasBeenSet() const
Peering & WithEdgeLocation(EdgeLocationT &&value)
Peering & WithLastModificationErrors(LastModificationErrorsT &&value)
Peering & AddTags(TagsT &&value)
Peering & WithOwnerAccountId(OwnerAccountIdT &&value)
Peering & WithCoreNetworkArn(CoreNetworkArnT &&value)
AWS_NETWORKMANAGER_API Peering()=default
PeeringState GetState() const
Peering & WithPeeringType(PeeringType value)
Peering & WithTags(TagsT &&value)
Peering & WithCoreNetworkId(CoreNetworkIdT &&value)
const Aws::String & GetPeeringId() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTags(TagsT &&value)
bool ResourceArnHasBeenSet() const
void SetLastModificationErrors(LastModificationErrorsT &&value)
void SetCoreNetworkId(CoreNetworkIdT &&value)
AWS_NETWORKMANAGER_API Peering(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOwnerAccountId() const
void SetEdgeLocation(EdgeLocationT &&value)
bool CreatedAtHasBeenSet() const
Peering & WithCreatedAt(CreatedAtT &&value)
bool OwnerAccountIdHasBeenSet() const
AWS_NETWORKMANAGER_API Peering & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PeeringTypeHasBeenSet() const
bool TagsHasBeenSet() const
const Aws::String & GetCoreNetworkId() 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