/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace NetworkManager { namespace Model { /** *

Summary description of a Connect peer.

See Also:

AWS * API Reference

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

The ID of a core network.

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

The ID of a core network.

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

The ID of a core network.

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

The ID of a core network.

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

The ID of a core network.

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

The ID of a core network.

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

The ID of a core network.

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

The ID of a core network.

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

The ID of a Connect peer attachment.

*/ inline const Aws::String& GetConnectAttachmentId() const{ return m_connectAttachmentId; } /** *

The ID of a Connect peer attachment.

*/ inline bool ConnectAttachmentIdHasBeenSet() const { return m_connectAttachmentIdHasBeenSet; } /** *

The ID of a Connect peer attachment.

*/ inline void SetConnectAttachmentId(const Aws::String& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = value; } /** *

The ID of a Connect peer attachment.

*/ inline void SetConnectAttachmentId(Aws::String&& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = std::move(value); } /** *

The ID of a Connect peer attachment.

*/ inline void SetConnectAttachmentId(const char* value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId.assign(value); } /** *

The ID of a Connect peer attachment.

*/ inline ConnectPeerSummary& WithConnectAttachmentId(const Aws::String& value) { SetConnectAttachmentId(value); return *this;} /** *

The ID of a Connect peer attachment.

*/ inline ConnectPeerSummary& WithConnectAttachmentId(Aws::String&& value) { SetConnectAttachmentId(std::move(value)); return *this;} /** *

The ID of a Connect peer attachment.

*/ inline ConnectPeerSummary& WithConnectAttachmentId(const char* value) { SetConnectAttachmentId(value); return *this;} /** *

The ID of a Connect peer.

*/ inline const Aws::String& GetConnectPeerId() const{ return m_connectPeerId; } /** *

The ID of a Connect peer.

*/ inline bool ConnectPeerIdHasBeenSet() const { return m_connectPeerIdHasBeenSet; } /** *

The ID of a Connect peer.

*/ inline void SetConnectPeerId(const Aws::String& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = value; } /** *

The ID of a Connect peer.

*/ inline void SetConnectPeerId(Aws::String&& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = std::move(value); } /** *

The ID of a Connect peer.

*/ inline void SetConnectPeerId(const char* value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId.assign(value); } /** *

The ID of a Connect peer.

*/ inline ConnectPeerSummary& WithConnectPeerId(const Aws::String& value) { SetConnectPeerId(value); return *this;} /** *

The ID of a Connect peer.

*/ inline ConnectPeerSummary& WithConnectPeerId(Aws::String&& value) { SetConnectPeerId(std::move(value)); return *this;} /** *

The ID of a Connect peer.

*/ inline ConnectPeerSummary& WithConnectPeerId(const char* value) { SetConnectPeerId(value); return *this;} /** *

The Region where the edge is located.

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

The Region where the edge is located.

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

The Region where the edge is located.

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

The Region where the edge is located.

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

The Region where the edge is located.

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

The Region where the edge is located.

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

The Region where the edge is located.

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

The Region where the edge is located.

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

The state of a Connect peer.

*/ inline const ConnectPeerState& GetConnectPeerState() const{ return m_connectPeerState; } /** *

The state of a Connect peer.

*/ inline bool ConnectPeerStateHasBeenSet() const { return m_connectPeerStateHasBeenSet; } /** *

The state of a Connect peer.

*/ inline void SetConnectPeerState(const ConnectPeerState& value) { m_connectPeerStateHasBeenSet = true; m_connectPeerState = value; } /** *

The state of a Connect peer.

*/ inline void SetConnectPeerState(ConnectPeerState&& value) { m_connectPeerStateHasBeenSet = true; m_connectPeerState = std::move(value); } /** *

The state of a Connect peer.

*/ inline ConnectPeerSummary& WithConnectPeerState(const ConnectPeerState& value) { SetConnectPeerState(value); return *this;} /** *

The state of a Connect peer.

*/ inline ConnectPeerSummary& WithConnectPeerState(ConnectPeerState&& value) { SetConnectPeerState(std::move(value)); return *this;} /** *

The timestamp when a Connect peer was created.

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

The timestamp when a Connect peer was created.

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

The timestamp when a Connect peer was created.

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

The timestamp when a Connect peer was created.

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

The timestamp when a Connect peer was created.

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

The timestamp when a Connect peer was created.

*/ inline ConnectPeerSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The list of key-value tags associated with the Connect peer summary.

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

The list of key-value tags associated with the Connect peer summary.

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

The list of key-value tags associated with the Connect peer summary.

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

The list of key-value tags associated with the Connect peer summary.

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

The list of key-value tags associated with the Connect peer summary.

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

The list of key-value tags associated with the Connect peer summary.

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

The list of key-value tags associated with the Connect peer summary.

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

The list of key-value tags associated with the Connect peer summary.

*/ inline ConnectPeerSummary& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_coreNetworkId; bool m_coreNetworkIdHasBeenSet = false; Aws::String m_connectAttachmentId; bool m_connectAttachmentIdHasBeenSet = false; Aws::String m_connectPeerId; bool m_connectPeerIdHasBeenSet = false; Aws::String m_edgeLocation; bool m_edgeLocationHasBeenSet = false; ConnectPeerState m_connectPeerState; bool m_connectPeerStateHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws