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

The Elastic IP address you are accepting for transfer.

*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *

The Elastic IP address you are accepting for transfer.

*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *

The Elastic IP address you are accepting for transfer.

*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *

The Elastic IP address you are accepting for transfer.

*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *

The Elastic IP address you are accepting for transfer.

*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *

The Elastic IP address you are accepting for transfer.

*/ inline AcceptAddressTransferRequest& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *

The Elastic IP address you are accepting for transfer.

*/ inline AcceptAddressTransferRequest& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *

The Elastic IP address you are accepting for transfer.

*/ inline AcceptAddressTransferRequest& WithAddress(const char* value) { SetAddress(value); return *this;} /** *

tag:<key> - The key/value combination of a tag assigned * to the resource. Use the tag key in the filter name and the tag value as the * filter value. For example, to find all resources that have a tag with the key * Owner and the value TeamA, specify * tag:Owner for the filter name and TeamA for the filter * value.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

tag:<key> - The key/value combination of a tag assigned * to the resource. Use the tag key in the filter name and the tag value as the * filter value. For example, to find all resources that have a tag with the key * Owner and the value TeamA, specify * tag:Owner for the filter name and TeamA for the filter * value.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

tag:<key> - The key/value combination of a tag assigned * to the resource. Use the tag key in the filter name and the tag value as the * filter value. For example, to find all resources that have a tag with the key * Owner and the value TeamA, specify * tag:Owner for the filter name and TeamA for the filter * value.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

tag:<key> - The key/value combination of a tag assigned * to the resource. Use the tag key in the filter name and the tag value as the * filter value. For example, to find all resources that have a tag with the key * Owner and the value TeamA, specify * tag:Owner for the filter name and TeamA for the filter * value.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

tag:<key> - The key/value combination of a tag assigned * to the resource. Use the tag key in the filter name and the tag value as the * filter value. For example, to find all resources that have a tag with the key * Owner and the value TeamA, specify * tag:Owner for the filter name and TeamA for the filter * value.

*/ inline AcceptAddressTransferRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

tag:<key> - The key/value combination of a tag assigned * to the resource. Use the tag key in the filter name and the tag value as the * filter value. For example, to find all resources that have a tag with the key * Owner and the value TeamA, specify * tag:Owner for the filter name and TeamA for the filter * value.

*/ inline AcceptAddressTransferRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

tag:<key> - The key/value combination of a tag assigned * to the resource. Use the tag key in the filter name and the tag value as the * filter value. For example, to find all resources that have a tag with the key * Owner and the value TeamA, specify * tag:Owner for the filter name and TeamA for the filter * value.

*/ inline AcceptAddressTransferRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

tag:<key> - The key/value combination of a tag assigned * to the resource. Use the tag key in the filter name and the tag value as the * filter value. For example, to find all resources that have a tag with the key * Owner and the value TeamA, specify * tag:Owner for the filter name and TeamA for the filter * value.

*/ inline AcceptAddressTransferRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(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 AcceptAddressTransferRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_address; bool m_addressHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws