/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace NetworkManager { namespace Model { /** *

Describes a peering connection.

See Also:

AWS * API Reference

*/ class Peering { public: AWS_NETWORKMANAGER_API Peering(); AWS_NETWORKMANAGER_API Peering(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKMANAGER_API Peering& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the core network for the peering request.

*/ inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; } /** *

The ID of the core network for the peering request.

*/ inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; } /** *

The ID of the core network for the peering request.

*/ inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; } /** *

The ID of the core network for the peering request.

*/ inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); } /** *

The ID of the core network for the peering request.

*/ inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); } /** *

The ID of the core network for the peering request.

*/ inline Peering& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;} /** *

The ID of the core network for the peering request.

*/ inline Peering& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;} /** *

The ID of the core network for the peering request.

*/ inline Peering& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;} /** *

The ARN of a core network.

*/ inline const Aws::String& GetCoreNetworkArn() const{ return m_coreNetworkArn; } /** *

The ARN of a core network.

*/ inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; } /** *

The ARN of a core network.

*/ inline void SetCoreNetworkArn(const Aws::String& value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = value; } /** *

The ARN of a core network.

*/ inline void SetCoreNetworkArn(Aws::String&& value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = std::move(value); } /** *

The ARN of a core network.

*/ inline void SetCoreNetworkArn(const char* value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn.assign(value); } /** *

The ARN of a core network.

*/ inline Peering& WithCoreNetworkArn(const Aws::String& value) { SetCoreNetworkArn(value); return *this;} /** *

The ARN of a core network.

*/ inline Peering& WithCoreNetworkArn(Aws::String&& value) { SetCoreNetworkArn(std::move(value)); return *this;} /** *

The ARN of a core network.

*/ inline Peering& WithCoreNetworkArn(const char* value) { SetCoreNetworkArn(value); return *this;} /** *

The ID of the peering attachment.

*/ inline const Aws::String& GetPeeringId() const{ return m_peeringId; } /** *

The ID of the peering attachment.

*/ inline bool PeeringIdHasBeenSet() const { return m_peeringIdHasBeenSet; } /** *

The ID of the peering attachment.

*/ inline void SetPeeringId(const Aws::String& value) { m_peeringIdHasBeenSet = true; m_peeringId = value; } /** *

The ID of the peering attachment.

*/ inline void SetPeeringId(Aws::String&& value) { m_peeringIdHasBeenSet = true; m_peeringId = std::move(value); } /** *

The ID of the peering attachment.

*/ inline void SetPeeringId(const char* value) { m_peeringIdHasBeenSet = true; m_peeringId.assign(value); } /** *

The ID of the peering attachment.

*/ inline Peering& WithPeeringId(const Aws::String& value) { SetPeeringId(value); return *this;} /** *

The ID of the peering attachment.

*/ inline Peering& WithPeeringId(Aws::String&& value) { SetPeeringId(std::move(value)); return *this;} /** *

The ID of the peering attachment.

*/ inline Peering& WithPeeringId(const char* value) { SetPeeringId(value); return *this;} /** *

The ID of the account owner.

*/ inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; } /** *

The ID of the account owner.

*/ inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; } /** *

The ID of the account owner.

*/ inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; } /** *

The ID of the account owner.

*/ inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); } /** *

The ID of the account owner.

*/ inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); } /** *

The ID of the account owner.

*/ inline Peering& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;} /** *

The ID of the account owner.

*/ inline Peering& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;} /** *

The ID of the account owner.

*/ inline Peering& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;} /** *

The type of peering. This will be TRANSIT_GATEWAY.

*/ inline const PeeringType& GetPeeringType() const{ return m_peeringType; } /** *

The type of peering. This will be TRANSIT_GATEWAY.

*/ inline bool PeeringTypeHasBeenSet() const { return m_peeringTypeHasBeenSet; } /** *

The type of peering. This will be TRANSIT_GATEWAY.

*/ inline void SetPeeringType(const PeeringType& value) { m_peeringTypeHasBeenSet = true; m_peeringType = value; } /** *

The type of peering. This will be TRANSIT_GATEWAY.

*/ inline void SetPeeringType(PeeringType&& value) { m_peeringTypeHasBeenSet = true; m_peeringType = std::move(value); } /** *

The type of peering. This will be TRANSIT_GATEWAY.

*/ inline Peering& WithPeeringType(const PeeringType& value) { SetPeeringType(value); return *this;} /** *

The type of peering. This will be TRANSIT_GATEWAY.

*/ inline Peering& WithPeeringType(PeeringType&& value) { SetPeeringType(std::move(value)); return *this;} /** *

The current state of the peering connection.

*/ inline const PeeringState& GetState() const{ return m_state; } /** *

The current state of the peering connection.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the peering connection.

*/ inline void SetState(const PeeringState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of the peering connection.

*/ inline void SetState(PeeringState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of the peering connection.

*/ inline Peering& WithState(const PeeringState& value) { SetState(value); return *this;} /** *

The current state of the peering connection.

*/ inline Peering& WithState(PeeringState&& value) { SetState(std::move(value)); return *this;} /** *

The edge location for the peer.

*/ inline const Aws::String& GetEdgeLocation() const{ return m_edgeLocation; } /** *

The edge location for the peer.

*/ inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; } /** *

The edge location for the peer.

*/ inline void SetEdgeLocation(const Aws::String& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = value; } /** *

The edge location for the peer.

*/ inline void SetEdgeLocation(Aws::String&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::move(value); } /** *

The edge location for the peer.

*/ inline void SetEdgeLocation(const char* value) { m_edgeLocationHasBeenSet = true; m_edgeLocation.assign(value); } /** *

The edge location for the peer.

*/ inline Peering& WithEdgeLocation(const Aws::String& value) { SetEdgeLocation(value); return *this;} /** *

The edge location for the peer.

*/ inline Peering& WithEdgeLocation(Aws::String&& value) { SetEdgeLocation(std::move(value)); return *this;} /** *

The edge location for the peer.

*/ inline Peering& WithEdgeLocation(const char* value) { SetEdgeLocation(value); return *this;} /** *

The resource ARN of the peer.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The resource ARN of the peer.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The resource ARN of the peer.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The resource ARN of the peer.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The resource ARN of the peer.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The resource ARN of the peer.

*/ inline Peering& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The resource ARN of the peer.

*/ inline Peering& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The resource ARN of the peer.

*/ inline Peering& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The list of key-value tags associated with the peering.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The list of key-value tags associated with the peering.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The list of key-value tags associated with the peering.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The list of key-value tags associated with the peering.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The list of key-value tags associated with the peering.

*/ inline Peering& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The list of key-value tags associated with the peering.

*/ inline Peering& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The list of key-value tags associated with the peering.

*/ inline Peering& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The list of key-value tags associated with the peering.

*/ inline Peering& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The timestamp when the attachment peer was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The timestamp when the attachment peer was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The timestamp when the attachment peer was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The timestamp when the attachment peer was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The timestamp when the attachment peer was created.

*/ inline Peering& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The timestamp when the attachment peer was created.

*/ inline Peering& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} private: Aws::String m_coreNetworkId; bool m_coreNetworkIdHasBeenSet = false; Aws::String m_coreNetworkArn; bool m_coreNetworkArnHasBeenSet = false; Aws::String m_peeringId; bool m_peeringIdHasBeenSet = false; Aws::String m_ownerAccountId; bool m_ownerAccountIdHasBeenSet = false; PeeringType m_peeringType; bool m_peeringTypeHasBeenSet = false; PeeringState m_state; bool m_stateHasBeenSet = false; Aws::String m_edgeLocation; bool m_edgeLocationHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws