/** * 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 link.

See Also:

AWS * API Reference

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

The ID of the link.

*/ inline const Aws::String& GetLinkId() const{ return m_linkId; } /** *

The ID of the link.

*/ inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; } /** *

The ID of the link.

*/ inline void SetLinkId(const Aws::String& value) { m_linkIdHasBeenSet = true; m_linkId = value; } /** *

The ID of the link.

*/ inline void SetLinkId(Aws::String&& value) { m_linkIdHasBeenSet = true; m_linkId = std::move(value); } /** *

The ID of the link.

*/ inline void SetLinkId(const char* value) { m_linkIdHasBeenSet = true; m_linkId.assign(value); } /** *

The ID of the link.

*/ inline Link& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;} /** *

The ID of the link.

*/ inline Link& WithLinkId(Aws::String&& value) { SetLinkId(std::move(value)); return *this;} /** *

The ID of the link.

*/ inline Link& WithLinkId(const char* value) { SetLinkId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the link.

*/ inline const Aws::String& GetLinkArn() const{ return m_linkArn; } /** *

The Amazon Resource Name (ARN) of the link.

*/ inline bool LinkArnHasBeenSet() const { return m_linkArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the link.

*/ inline void SetLinkArn(const Aws::String& value) { m_linkArnHasBeenSet = true; m_linkArn = value; } /** *

The Amazon Resource Name (ARN) of the link.

*/ inline void SetLinkArn(Aws::String&& value) { m_linkArnHasBeenSet = true; m_linkArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the link.

*/ inline void SetLinkArn(const char* value) { m_linkArnHasBeenSet = true; m_linkArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the link.

*/ inline Link& WithLinkArn(const Aws::String& value) { SetLinkArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the link.

*/ inline Link& WithLinkArn(Aws::String&& value) { SetLinkArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the link.

*/ inline Link& WithLinkArn(const char* value) { SetLinkArn(value); return *this;} /** *

The ID of the global network.

*/ inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; } /** *

The ID of the global network.

*/ inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); } /** *

The ID of the global network.

*/ inline Link& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the global network.

*/ inline Link& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;} /** *

The ID of the global network.

*/ inline Link& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the site.

*/ inline const Aws::String& GetSiteId() const{ return m_siteId; } /** *

The ID of the site.

*/ inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; } /** *

The ID of the site.

*/ inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; } /** *

The ID of the site.

*/ inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); } /** *

The ID of the site.

*/ inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); } /** *

The ID of the site.

*/ inline Link& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;} /** *

The ID of the site.

*/ inline Link& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;} /** *

The ID of the site.

*/ inline Link& WithSiteId(const char* value) { SetSiteId(value); return *this;} /** *

The description of the link.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the link.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the link.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the link.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the link.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the link.

*/ inline Link& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the link.

*/ inline Link& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the link.

*/ inline Link& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The type of the link.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of the link.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the link.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the link.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the link.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of the link.

*/ inline Link& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of the link.

*/ inline Link& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of the link.

*/ inline Link& WithType(const char* value) { SetType(value); return *this;} /** *

The bandwidth for the link.

*/ inline const Bandwidth& GetBandwidth() const{ return m_bandwidth; } /** *

The bandwidth for the link.

*/ inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; } /** *

The bandwidth for the link.

*/ inline void SetBandwidth(const Bandwidth& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; } /** *

The bandwidth for the link.

*/ inline void SetBandwidth(Bandwidth&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::move(value); } /** *

The bandwidth for the link.

*/ inline Link& WithBandwidth(const Bandwidth& value) { SetBandwidth(value); return *this;} /** *

The bandwidth for the link.

*/ inline Link& WithBandwidth(Bandwidth&& value) { SetBandwidth(std::move(value)); return *this;} /** *

The provider of the link.

*/ inline const Aws::String& GetProvider() const{ return m_provider; } /** *

The provider of the link.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

The provider of the link.

*/ inline void SetProvider(const Aws::String& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

The provider of the link.

*/ inline void SetProvider(Aws::String&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

The provider of the link.

*/ inline void SetProvider(const char* value) { m_providerHasBeenSet = true; m_provider.assign(value); } /** *

The provider of the link.

*/ inline Link& WithProvider(const Aws::String& value) { SetProvider(value); return *this;} /** *

The provider of the link.

*/ inline Link& WithProvider(Aws::String&& value) { SetProvider(std::move(value)); return *this;} /** *

The provider of the link.

*/ inline Link& WithProvider(const char* value) { SetProvider(value); return *this;} /** *

The date and time that the link was created.

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

The date and time that the link was created.

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

The date and time that the link was created.

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

The date and time that the link was created.

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

The date and time that the link was created.

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

The date and time that the link was created.

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

The state of the link.

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

The state of the link.

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

The state of the link.

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

The state of the link.

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

The state of the link.

*/ inline Link& WithState(const LinkState& value) { SetState(value); return *this;} /** *

The state of the link.

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

The tags for the link.

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

The tags for the link.

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

The tags for the link.

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

The tags for the link.

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

The tags for the link.

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

The tags for the link.

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

The tags for the link.

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

The tags for the link.

*/ inline Link& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_linkId; bool m_linkIdHasBeenSet = false; Aws::String m_linkArn; bool m_linkArnHasBeenSet = false; Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; Aws::String m_siteId; bool m_siteIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Bandwidth m_bandwidth; bool m_bandwidthHasBeenSet = false; Aws::String m_provider; bool m_providerHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; LinkState m_state; bool m_stateHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws