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/PeeringError.h>
12#include <aws/networkmanager/model/PeeringState.h>
13#include <aws/networkmanager/model/PeeringType.h>
14#include <aws/networkmanager/model/Tag.h>
25namespace NetworkManager {
35 AWS_NETWORKMANAGER_API
Peering() =
default;
46 template <
typename CoreNetworkIdT = Aws::String>
48 m_coreNetworkIdHasBeenSet =
true;
49 m_coreNetworkId = std::forward<CoreNetworkIdT>(value);
51 template <
typename CoreNetworkIdT = Aws::String>
64 template <
typename CoreNetworkArnT = Aws::String>
66 m_coreNetworkArnHasBeenSet =
true;
67 m_coreNetworkArn = std::forward<CoreNetworkArnT>(value);
69 template <
typename CoreNetworkArnT = Aws::String>
82 template <
typename PeeringIdT = Aws::String>
84 m_peeringIdHasBeenSet =
true;
85 m_peeringId = std::forward<PeeringIdT>(value);
87 template <
typename PeeringIdT = Aws::String>
100 template <
typename OwnerAccountIdT = Aws::String>
102 m_ownerAccountIdHasBeenSet =
true;
103 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
105 template <
typename OwnerAccountIdT = Aws::String>
119 m_peeringTypeHasBeenSet =
true;
120 m_peeringType = value;
135 m_stateHasBeenSet =
true;
150 template <
typename EdgeLocationT = Aws::String>
152 m_edgeLocationHasBeenSet =
true;
153 m_edgeLocation = std::forward<EdgeLocationT>(value);
155 template <
typename EdgeLocationT = Aws::String>
168 template <
typename ResourceArnT = Aws::String>
170 m_resourceArnHasBeenSet =
true;
171 m_resourceArn = std::forward<ResourceArnT>(value);
173 template <
typename ResourceArnT = Aws::String>
186 template <
typename TagsT = Aws::Vector<Tag>>
188 m_tagsHasBeenSet =
true;
189 m_tags = std::forward<TagsT>(value);
191 template <
typename TagsT = Aws::Vector<Tag>>
193 SetTags(std::forward<TagsT>(value));
196 template <
typename TagsT = Tag>
198 m_tagsHasBeenSet =
true;
199 m_tags.emplace_back(std::forward<TagsT>(value));
210 template <
typename CreatedAtT = Aws::Utils::DateTime>
212 m_createdAtHasBeenSet =
true;
213 m_createdAt = std::forward<CreatedAtT>(value);
215 template <
typename CreatedAtT = Aws::Utils::DateTime>
228 template <
typename LastModificationErrorsT = Aws::Vector<PeeringError>>
230 m_lastModificationErrorsHasBeenSet =
true;
231 m_lastModificationErrors = std::forward<LastModificationErrorsT>(value);
233 template <
typename LastModificationErrorsT = Aws::Vector<PeeringError>>
238 template <
typename LastModificationErrorsT = PeeringError>
240 m_lastModificationErrorsHasBeenSet =
true;
241 m_lastModificationErrors.emplace_back(std::forward<LastModificationErrorsT>(value));
267 bool m_coreNetworkIdHasBeenSet =
false;
268 bool m_coreNetworkArnHasBeenSet =
false;
269 bool m_peeringIdHasBeenSet =
false;
270 bool m_ownerAccountIdHasBeenSet =
false;
271 bool m_peeringTypeHasBeenSet =
false;
272 bool m_stateHasBeenSet =
false;
273 bool m_edgeLocationHasBeenSet =
false;
274 bool m_resourceArnHasBeenSet =
false;
275 bool m_tagsHasBeenSet =
false;
276 bool m_createdAtHasBeenSet =
false;
277 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