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

Describes the association between a device and a link.

See * Also:

AWS * API Reference

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

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 LinkAssociation& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the global network.

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

The ID of the global network.

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

The device ID for the link association.

*/ inline const Aws::String& GetDeviceId() const{ return m_deviceId; } /** *

The device ID for the link association.

*/ inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; } /** *

The device ID for the link association.

*/ inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; } /** *

The device ID for the link association.

*/ inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); } /** *

The device ID for the link association.

*/ inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); } /** *

The device ID for the link association.

*/ inline LinkAssociation& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *

The device ID for the link association.

*/ inline LinkAssociation& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;} /** *

The device ID for the link association.

*/ inline LinkAssociation& WithDeviceId(const char* value) { SetDeviceId(value); return *this;} /** *

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 LinkAssociation& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;} /** *

The ID of the link.

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

The ID of the link.

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

The state of the association.

*/ inline const LinkAssociationState& GetLinkAssociationState() const{ return m_linkAssociationState; } /** *

The state of the association.

*/ inline bool LinkAssociationStateHasBeenSet() const { return m_linkAssociationStateHasBeenSet; } /** *

The state of the association.

*/ inline void SetLinkAssociationState(const LinkAssociationState& value) { m_linkAssociationStateHasBeenSet = true; m_linkAssociationState = value; } /** *

The state of the association.

*/ inline void SetLinkAssociationState(LinkAssociationState&& value) { m_linkAssociationStateHasBeenSet = true; m_linkAssociationState = std::move(value); } /** *

The state of the association.

*/ inline LinkAssociation& WithLinkAssociationState(const LinkAssociationState& value) { SetLinkAssociationState(value); return *this;} /** *

The state of the association.

*/ inline LinkAssociation& WithLinkAssociationState(LinkAssociationState&& value) { SetLinkAssociationState(std::move(value)); return *this;} private: Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; Aws::String m_linkId; bool m_linkIdHasBeenSet = false; LinkAssociationState m_linkAssociationState; bool m_linkAssociationStateHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws