/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ModifyIpamRequest : public EC2Request { public: AWS_EC2_API ModifyIpamRequest(); // 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 "ModifyIpam"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

A check for 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; } /** *

A check for 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; } /** *

A check for 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; } /** *

A check for 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 ModifyIpamRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the IPAM you want to modify.

*/ inline const Aws::String& GetIpamId() const{ return m_ipamId; } /** *

The ID of the IPAM you want to modify.

*/ inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; } /** *

The ID of the IPAM you want to modify.

*/ inline void SetIpamId(const Aws::String& value) { m_ipamIdHasBeenSet = true; m_ipamId = value; } /** *

The ID of the IPAM you want to modify.

*/ inline void SetIpamId(Aws::String&& value) { m_ipamIdHasBeenSet = true; m_ipamId = std::move(value); } /** *

The ID of the IPAM you want to modify.

*/ inline void SetIpamId(const char* value) { m_ipamIdHasBeenSet = true; m_ipamId.assign(value); } /** *

The ID of the IPAM you want to modify.

*/ inline ModifyIpamRequest& WithIpamId(const Aws::String& value) { SetIpamId(value); return *this;} /** *

The ID of the IPAM you want to modify.

*/ inline ModifyIpamRequest& WithIpamId(Aws::String&& value) { SetIpamId(std::move(value)); return *this;} /** *

The ID of the IPAM you want to modify.

*/ inline ModifyIpamRequest& WithIpamId(const char* value) { SetIpamId(value); return *this;} /** *

The description of the IPAM you want to modify.

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

The description of the IPAM you want to modify.

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

The description of the IPAM you want to modify.

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

The description of the IPAM you want to modify.

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

The description of the IPAM you want to modify.

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

The description of the IPAM you want to modify.

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

The description of the IPAM you want to modify.

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

The description of the IPAM you want to modify.

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

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web * Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only * discovers and monitors resources in the Amazon Web Services Regions you select * as operating Regions.

For more information about operating Regions, see * Create an * IPAM in the Amazon VPC IPAM User Guide.

*/ inline const Aws::Vector& GetAddOperatingRegions() const{ return m_addOperatingRegions; } /** *

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web * Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only * discovers and monitors resources in the Amazon Web Services Regions you select * as operating Regions.

For more information about operating Regions, see * Create an * IPAM in the Amazon VPC IPAM User Guide.

*/ inline bool AddOperatingRegionsHasBeenSet() const { return m_addOperatingRegionsHasBeenSet; } /** *

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web * Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only * discovers and monitors resources in the Amazon Web Services Regions you select * as operating Regions.

For more information about operating Regions, see * Create an * IPAM in the Amazon VPC IPAM User Guide.

*/ inline void SetAddOperatingRegions(const Aws::Vector& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions = value; } /** *

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web * Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only * discovers and monitors resources in the Amazon Web Services Regions you select * as operating Regions.

For more information about operating Regions, see * Create an * IPAM in the Amazon VPC IPAM User Guide.

*/ inline void SetAddOperatingRegions(Aws::Vector&& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions = std::move(value); } /** *

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web * Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only * discovers and monitors resources in the Amazon Web Services Regions you select * as operating Regions.

For more information about operating Regions, see * Create an * IPAM in the Amazon VPC IPAM User Guide.

*/ inline ModifyIpamRequest& WithAddOperatingRegions(const Aws::Vector& value) { SetAddOperatingRegions(value); return *this;} /** *

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web * Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only * discovers and monitors resources in the Amazon Web Services Regions you select * as operating Regions.

For more information about operating Regions, see * Create an * IPAM in the Amazon VPC IPAM User Guide.

*/ inline ModifyIpamRequest& WithAddOperatingRegions(Aws::Vector&& value) { SetAddOperatingRegions(std::move(value)); return *this;} /** *

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web * Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only * discovers and monitors resources in the Amazon Web Services Regions you select * as operating Regions.

For more information about operating Regions, see * Create an * IPAM in the Amazon VPC IPAM User Guide.

*/ inline ModifyIpamRequest& AddAddOperatingRegions(const AddIpamOperatingRegion& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions.push_back(value); return *this; } /** *

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web * Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only * discovers and monitors resources in the Amazon Web Services Regions you select * as operating Regions.

For more information about operating Regions, see * Create an * IPAM in the Amazon VPC IPAM User Guide.

*/ inline ModifyIpamRequest& AddAddOperatingRegions(AddIpamOperatingRegion&& value) { m_addOperatingRegionsHasBeenSet = true; m_addOperatingRegions.push_back(std::move(value)); return *this; } /** *

The operating Regions to remove.

*/ inline const Aws::Vector& GetRemoveOperatingRegions() const{ return m_removeOperatingRegions; } /** *

The operating Regions to remove.

*/ inline bool RemoveOperatingRegionsHasBeenSet() const { return m_removeOperatingRegionsHasBeenSet; } /** *

The operating Regions to remove.

*/ inline void SetRemoveOperatingRegions(const Aws::Vector& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions = value; } /** *

The operating Regions to remove.

*/ inline void SetRemoveOperatingRegions(Aws::Vector&& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions = std::move(value); } /** *

The operating Regions to remove.

*/ inline ModifyIpamRequest& WithRemoveOperatingRegions(const Aws::Vector& value) { SetRemoveOperatingRegions(value); return *this;} /** *

The operating Regions to remove.

*/ inline ModifyIpamRequest& WithRemoveOperatingRegions(Aws::Vector&& value) { SetRemoveOperatingRegions(std::move(value)); return *this;} /** *

The operating Regions to remove.

*/ inline ModifyIpamRequest& AddRemoveOperatingRegions(const RemoveIpamOperatingRegion& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions.push_back(value); return *this; } /** *

The operating Regions to remove.

*/ inline ModifyIpamRequest& AddRemoveOperatingRegions(RemoveIpamOperatingRegion&& value) { m_removeOperatingRegionsHasBeenSet = true; m_removeOperatingRegions.push_back(std::move(value)); return *this; } private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_ipamId; bool m_ipamIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_addOperatingRegions; bool m_addOperatingRegionsHasBeenSet = false; Aws::Vector m_removeOperatingRegions; bool m_removeOperatingRegionsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws