/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a connection.See Also:
AWS
* API Reference
The ID of the connection.
*/ inline const Aws::String& GetConnectionId() const{ return m_connectionId; } /** *The ID of the connection.
*/ inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; } /** *The ID of the connection.
*/ inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; } /** *The ID of the connection.
*/ inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); } /** *The ID of the connection.
*/ inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); } /** *The ID of the connection.
*/ inline Connection& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;} /** *The ID of the connection.
*/ inline Connection& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;} /** *The ID of the connection.
*/ inline Connection& WithConnectionId(const char* value) { SetConnectionId(value); return *this;} /** *The Amazon Resource Name (ARN) of the connection.
*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *The Amazon Resource Name (ARN) of the connection.
*/ inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the connection.
*/ inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } /** *The Amazon Resource Name (ARN) of the connection.
*/ inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the connection.
*/ inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } /** *The Amazon Resource Name (ARN) of the connection.
*/ inline Connection& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the connection.
*/ inline Connection& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the connection.
*/ inline Connection& WithConnectionArn(const char* value) { SetConnectionArn(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 Connection& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *The ID of the global network.
*/ inline Connection& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;} /** *The ID of the global network.
*/ inline Connection& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;} /** *The ID of the first device in the connection.
*/ inline const Aws::String& GetDeviceId() const{ return m_deviceId; } /** *The ID of the first device in the connection.
*/ inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; } /** *The ID of the first device in the connection.
*/ inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; } /** *The ID of the first device in the connection.
*/ inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); } /** *The ID of the first device in the connection.
*/ inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); } /** *The ID of the first device in the connection.
*/ inline Connection& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *The ID of the first device in the connection.
*/ inline Connection& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;} /** *The ID of the first device in the connection.
*/ inline Connection& WithDeviceId(const char* value) { SetDeviceId(value); return *this;} /** *The ID of the second device in the connection.
*/ inline const Aws::String& GetConnectedDeviceId() const{ return m_connectedDeviceId; } /** *The ID of the second device in the connection.
*/ inline bool ConnectedDeviceIdHasBeenSet() const { return m_connectedDeviceIdHasBeenSet; } /** *The ID of the second device in the connection.
*/ inline void SetConnectedDeviceId(const Aws::String& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = value; } /** *The ID of the second device in the connection.
*/ inline void SetConnectedDeviceId(Aws::String&& value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId = std::move(value); } /** *The ID of the second device in the connection.
*/ inline void SetConnectedDeviceId(const char* value) { m_connectedDeviceIdHasBeenSet = true; m_connectedDeviceId.assign(value); } /** *The ID of the second device in the connection.
*/ inline Connection& WithConnectedDeviceId(const Aws::String& value) { SetConnectedDeviceId(value); return *this;} /** *The ID of the second device in the connection.
*/ inline Connection& WithConnectedDeviceId(Aws::String&& value) { SetConnectedDeviceId(std::move(value)); return *this;} /** *The ID of the second device in the connection.
*/ inline Connection& WithConnectedDeviceId(const char* value) { SetConnectedDeviceId(value); return *this;} /** *The ID of the link for the first device in the connection.
*/ inline const Aws::String& GetLinkId() const{ return m_linkId; } /** *The ID of the link for the first device in the connection.
*/ inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; } /** *The ID of the link for the first device in the connection.
*/ inline void SetLinkId(const Aws::String& value) { m_linkIdHasBeenSet = true; m_linkId = value; } /** *The ID of the link for the first device in the connection.
*/ inline void SetLinkId(Aws::String&& value) { m_linkIdHasBeenSet = true; m_linkId = std::move(value); } /** *The ID of the link for the first device in the connection.
*/ inline void SetLinkId(const char* value) { m_linkIdHasBeenSet = true; m_linkId.assign(value); } /** *The ID of the link for the first device in the connection.
*/ inline Connection& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;} /** *The ID of the link for the first device in the connection.
*/ inline Connection& WithLinkId(Aws::String&& value) { SetLinkId(std::move(value)); return *this;} /** *The ID of the link for the first device in the connection.
*/ inline Connection& WithLinkId(const char* value) { SetLinkId(value); return *this;} /** *The ID of the link for the second device in the connection.
*/ inline const Aws::String& GetConnectedLinkId() const{ return m_connectedLinkId; } /** *The ID of the link for the second device in the connection.
*/ inline bool ConnectedLinkIdHasBeenSet() const { return m_connectedLinkIdHasBeenSet; } /** *The ID of the link for the second device in the connection.
*/ inline void SetConnectedLinkId(const Aws::String& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = value; } /** *The ID of the link for the second device in the connection.
*/ inline void SetConnectedLinkId(Aws::String&& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = std::move(value); } /** *The ID of the link for the second device in the connection.
*/ inline void SetConnectedLinkId(const char* value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId.assign(value); } /** *The ID of the link for the second device in the connection.
*/ inline Connection& WithConnectedLinkId(const Aws::String& value) { SetConnectedLinkId(value); return *this;} /** *The ID of the link for the second device in the connection.
*/ inline Connection& WithConnectedLinkId(Aws::String&& value) { SetConnectedLinkId(std::move(value)); return *this;} /** *The ID of the link for the second device in the connection.
*/ inline Connection& WithConnectedLinkId(const char* value) { SetConnectedLinkId(value); return *this;} /** *The description of the connection.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the connection.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the connection.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the connection.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the connection.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the connection.
*/ inline Connection& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the connection.
*/ inline Connection& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the connection.
*/ inline Connection& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The date and time that the connection was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The date and time that the connection was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time that the connection was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The date and time that the connection was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time that the connection was created.
*/ inline Connection& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time that the connection was created.
*/ inline Connection& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The state of the connection.
*/ inline const ConnectionState& GetState() const{ return m_state; } /** *The state of the connection.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the connection.
*/ inline void SetState(const ConnectionState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the connection.
*/ inline void SetState(ConnectionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the connection.
*/ inline Connection& WithState(const ConnectionState& value) { SetState(value); return *this;} /** *The state of the connection.
*/ inline Connection& WithState(ConnectionState&& value) { SetState(std::move(value)); return *this;} /** *The tags for the connection.
*/ inline const Aws::VectorThe tags for the connection.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags for the connection.
*/ inline void SetTags(const Aws::VectorThe tags for the connection.
*/ inline void SetTags(Aws::VectorThe tags for the connection.
*/ inline Connection& WithTags(const Aws::VectorThe tags for the connection.
*/ inline Connection& WithTags(Aws::VectorThe tags for the connection.
*/ inline Connection& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tags for the connection.
*/ inline Connection& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_connectionId; bool m_connectionIdHasBeenSet = false; Aws::String m_connectionArn; bool m_connectionArnHasBeenSet = false; Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; Aws::String m_connectedDeviceId; bool m_connectedDeviceIdHasBeenSet = false; Aws::String m_linkId; bool m_linkIdHasBeenSet = false; Aws::String m_connectedLinkId; bool m_connectedLinkIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; ConnectionState m_state; bool m_stateHasBeenSet = false; Aws::Vector