/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace NetworkManager { namespace Model { /** */ class CreateConnectionRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API CreateConnectionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; } AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override; /** *

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

The ID of the global network.

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

The ID of the global network.

*/ inline CreateConnectionRequest& 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 CreateConnectionRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *

The ID of the first device in the connection.

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

The ID of the first device in the connection.

*/ inline CreateConnectionRequest& 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 CreateConnectionRequest& WithConnectedDeviceId(const Aws::String& value) { SetConnectedDeviceId(value); return *this;} /** *

The ID of the second device in the connection.

*/ inline CreateConnectionRequest& WithConnectedDeviceId(Aws::String&& value) { SetConnectedDeviceId(std::move(value)); return *this;} /** *

The ID of the second device in the connection.

*/ inline CreateConnectionRequest& WithConnectedDeviceId(const char* value) { SetConnectedDeviceId(value); return *this;} /** *

The ID of the link for the first device.

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

The ID of the link for the first device.

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

The ID of the link for the first device.

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

The ID of the link for the first device.

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

The ID of the link for the first device.

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

The ID of the link for the first device.

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

The ID of the link for the first device.

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

The ID of the link for the first device.

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

The ID of the link for the second device.

*/ inline const Aws::String& GetConnectedLinkId() const{ return m_connectedLinkId; } /** *

The ID of the link for the second device.

*/ inline bool ConnectedLinkIdHasBeenSet() const { return m_connectedLinkIdHasBeenSet; } /** *

The ID of the link for the second device.

*/ inline void SetConnectedLinkId(const Aws::String& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = value; } /** *

The ID of the link for the second device.

*/ inline void SetConnectedLinkId(Aws::String&& value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId = std::move(value); } /** *

The ID of the link for the second device.

*/ inline void SetConnectedLinkId(const char* value) { m_connectedLinkIdHasBeenSet = true; m_connectedLinkId.assign(value); } /** *

The ID of the link for the second device.

*/ inline CreateConnectionRequest& WithConnectedLinkId(const Aws::String& value) { SetConnectedLinkId(value); return *this;} /** *

The ID of the link for the second device.

*/ inline CreateConnectionRequest& WithConnectedLinkId(Aws::String&& value) { SetConnectedLinkId(std::move(value)); return *this;} /** *

The ID of the link for the second device.

*/ inline CreateConnectionRequest& WithConnectedLinkId(const char* value) { SetConnectedLinkId(value); return *this;} /** *

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

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

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

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

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

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

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

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

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

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

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

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

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

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

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

*/ inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(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_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::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws