/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace NetworkManager { namespace Model { /** */ class UpdateLinkRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API UpdateLinkRequest(); // 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 "UpdateLink"; } 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 UpdateLinkRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the global network.

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

The ID of the global network.

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

The ID of the link.

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

The ID of the link.

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

A description of the link.

Constraints: Maximum length of 256 * characters.

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

A description of the link.

Constraints: Maximum length of 256 * characters.

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

A description of the link.

Constraints: Maximum length of 256 * characters.

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

A description of the link.

Constraints: Maximum length of 256 * characters.

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

A description of the link.

Constraints: Maximum length of 256 * characters.

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

A description of the link.

Constraints: Maximum length of 256 * characters.

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

A description of the link.

Constraints: Maximum length of 256 * characters.

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

A description of the link.

Constraints: Maximum length of 256 * characters.

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

The type of the link.

Constraints: Maximum length of 128 * characters.

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

The type of the link.

Constraints: Maximum length of 128 * characters.

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

The type of the link.

Constraints: Maximum length of 128 * characters.

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

The type of the link.

Constraints: Maximum length of 128 * characters.

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

The type of the link.

Constraints: Maximum length of 128 * characters.

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

The type of the link.

Constraints: Maximum length of 128 * characters.

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

The type of the link.

Constraints: Maximum length of 128 * characters.

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

The type of the link.

Constraints: Maximum length of 128 * characters.

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

The upload and download speed in Mbps.

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

The upload and download speed in Mbps.

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

The upload and download speed in Mbps.

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

The upload and download speed in Mbps.

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

The upload and download speed in Mbps.

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

The upload and download speed in Mbps.

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

The provider of the link.

Constraints: Maximum length of 128 * characters.

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

The provider of the link.

Constraints: Maximum length of 128 * characters.

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

The provider of the link.

Constraints: Maximum length of 128 * characters.

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

The provider of the link.

Constraints: Maximum length of 128 * characters.

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

The provider of the link.

Constraints: Maximum length of 128 * characters.

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

The provider of the link.

Constraints: Maximum length of 128 * characters.

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

The provider of the link.

Constraints: Maximum length of 128 * characters.

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

The provider of the link.

Constraints: Maximum length of 128 * characters.

*/ inline UpdateLinkRequest& WithProvider(const char* value) { SetProvider(value); return *this;} private: Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; Aws::String m_linkId; bool m_linkIdHasBeenSet = 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; }; } // namespace Model } // namespace NetworkManager } // namespace Aws