/** * 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 NetworkManager { namespace Model { /** */ class UpdateConnectionRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API UpdateConnectionRequest(); // 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 "UpdateConnection"; } 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 UpdateConnectionRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the global network.

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

The ID of the global network.

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

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 UpdateConnectionRequest& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;} /** *

The ID of the connection.

*/ inline UpdateConnectionRequest& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;} /** *

The ID of the connection.

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

The ID of the link for the first device in the connection.

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

The ID of the link for the first device in the connection.

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

The ID of the link for the second device in the connection.

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

The ID of the link for the second device in the connection.

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

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

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

A description of the connection.

Length Constraints: Maximum length of * 256 characters.

*/ inline UpdateConnectionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; Aws::String m_connectionId; bool m_connectionIdHasBeenSet = 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; }; } // namespace Model } // namespace NetworkManager } // namespace Aws