/** * 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 EC2 { namespace Model { /** */ class ReleaseAddressRequest : public EC2Request { public: AWS_EC2_API ReleaseAddressRequest(); // 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 "ReleaseAddress"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The allocation ID. This parameter is required.

*/ inline const Aws::String& GetAllocationId() const{ return m_allocationId; } /** *

The allocation ID. This parameter is required.

*/ inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; } /** *

The allocation ID. This parameter is required.

*/ inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; } /** *

The allocation ID. This parameter is required.

*/ inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); } /** *

The allocation ID. This parameter is required.

*/ inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); } /** *

The allocation ID. This parameter is required.

*/ inline ReleaseAddressRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;} /** *

The allocation ID. This parameter is required.

*/ inline ReleaseAddressRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;} /** *

The allocation ID. This parameter is required.

*/ inline ReleaseAddressRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;} /** *

Deprecated.

*/ inline const Aws::String& GetPublicIp() const{ return m_publicIp; } /** *

Deprecated.

*/ inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; } /** *

Deprecated.

*/ inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; } /** *

Deprecated.

*/ inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); } /** *

Deprecated.

*/ inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); } /** *

Deprecated.

*/ inline ReleaseAddressRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;} /** *

Deprecated.

*/ inline ReleaseAddressRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;} /** *

Deprecated.

*/ inline ReleaseAddressRequest& WithPublicIp(const char* value) { SetPublicIp(value); return *this;} /** *

The set of Availability Zones, Local Zones, or Wavelength Zones from which * Amazon Web Services advertises IP addresses.

If you provide an incorrect * network border group, you receive an InvalidAddress.NotFound * error.

You cannot use a network border group with EC2 Classic. If you * attempt this operation on EC2 classic, you receive an * InvalidParameterCombination error.

*/ inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; } /** *

The set of Availability Zones, Local Zones, or Wavelength Zones from which * Amazon Web Services advertises IP addresses.

If you provide an incorrect * network border group, you receive an InvalidAddress.NotFound * error.

You cannot use a network border group with EC2 Classic. If you * attempt this operation on EC2 classic, you receive an * InvalidParameterCombination error.

*/ inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; } /** *

The set of Availability Zones, Local Zones, or Wavelength Zones from which * Amazon Web Services advertises IP addresses.

If you provide an incorrect * network border group, you receive an InvalidAddress.NotFound * error.

You cannot use a network border group with EC2 Classic. If you * attempt this operation on EC2 classic, you receive an * InvalidParameterCombination error.

*/ inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; } /** *

The set of Availability Zones, Local Zones, or Wavelength Zones from which * Amazon Web Services advertises IP addresses.

If you provide an incorrect * network border group, you receive an InvalidAddress.NotFound * error.

You cannot use a network border group with EC2 Classic. If you * attempt this operation on EC2 classic, you receive an * InvalidParameterCombination error.

*/ inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); } /** *

The set of Availability Zones, Local Zones, or Wavelength Zones from which * Amazon Web Services advertises IP addresses.

If you provide an incorrect * network border group, you receive an InvalidAddress.NotFound * error.

You cannot use a network border group with EC2 Classic. If you * attempt this operation on EC2 classic, you receive an * InvalidParameterCombination error.

*/ inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); } /** *

The set of Availability Zones, Local Zones, or Wavelength Zones from which * Amazon Web Services advertises IP addresses.

If you provide an incorrect * network border group, you receive an InvalidAddress.NotFound * error.

You cannot use a network border group with EC2 Classic. If you * attempt this operation on EC2 classic, you receive an * InvalidParameterCombination error.

*/ inline ReleaseAddressRequest& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;} /** *

The set of Availability Zones, Local Zones, or Wavelength Zones from which * Amazon Web Services advertises IP addresses.

If you provide an incorrect * network border group, you receive an InvalidAddress.NotFound * error.

You cannot use a network border group with EC2 Classic. If you * attempt this operation on EC2 classic, you receive an * InvalidParameterCombination error.

*/ inline ReleaseAddressRequest& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;} /** *

The set of Availability Zones, Local Zones, or Wavelength Zones from which * Amazon Web Services advertises IP addresses.

If you provide an incorrect * network border group, you receive an InvalidAddress.NotFound * error.

You cannot use a network border group with EC2 Classic. If you * attempt this operation on EC2 classic, you receive an * InvalidParameterCombination error.

*/ inline ReleaseAddressRequest& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;} /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ReleaseAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_allocationId; bool m_allocationIdHasBeenSet = false; Aws::String m_publicIp; bool m_publicIpHasBeenSet = false; Aws::String m_networkBorderGroup; bool m_networkBorderGroupHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws