/** * 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 ModifyIpamResourceDiscoveryRequest : public EC2Request { public: AWS_EC2_API ModifyIpamResourceDiscoveryRequest(); // 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 "ModifyIpamResourceDiscovery"; } 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 ModifyIpamResourceDiscoveryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

A resource discovery ID.

*/ inline const Aws::String& GetIpamResourceDiscoveryId() const{ return m_ipamResourceDiscoveryId; } /** *

A resource discovery ID.

*/ inline bool IpamResourceDiscoveryIdHasBeenSet() const { return m_ipamResourceDiscoveryIdHasBeenSet; } /** *

A resource discovery ID.

*/ inline void SetIpamResourceDiscoveryId(const Aws::String& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = value; } /** *

A resource discovery ID.

*/ inline void SetIpamResourceDiscoveryId(Aws::String&& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = std::move(value); } /** *

A resource discovery ID.

*/ inline void SetIpamResourceDiscoveryId(const char* value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId.assign(value); } /** *

A resource discovery ID.

*/ inline ModifyIpamResourceDiscoveryRequest& WithIpamResourceDiscoveryId(const Aws::String& value) { SetIpamResourceDiscoveryId(value); return *this;} /** *

A resource discovery ID.

*/ inline ModifyIpamResourceDiscoveryRequest& WithIpamResourceDiscoveryId(Aws::String&& value) { SetIpamResourceDiscoveryId(std::move(value)); return *this;} /** *

A resource discovery ID.

*/ inline ModifyIpamResourceDiscoveryRequest& WithIpamResourceDiscoveryId(const char* value) { SetIpamResourceDiscoveryId(value); return *this;} /** *

A resource discovery description.

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

A resource discovery description.

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

A resource discovery description.

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

A resource discovery description.

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

A resource discovery description.

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

A resource discovery description.

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

A resource discovery description.

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

A resource discovery description.

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

Add operating Regions to the resource discovery. 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.

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

Add operating Regions to the resource discovery. 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.

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

Add operating Regions to the resource discovery. 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.

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

Add operating Regions to the resource discovery. 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.

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

Add operating Regions to the resource discovery. 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.

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

Add operating Regions to the resource discovery. 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.

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

Add operating Regions to the resource discovery. 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.

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

Add operating Regions to the resource discovery. 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.

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

Remove operating Regions.

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

Remove operating Regions.

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

Remove operating Regions.

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

Remove operating Regions.

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

Remove operating Regions.

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

Remove operating Regions.

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

Remove operating Regions.

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

Remove operating Regions.

*/ inline ModifyIpamResourceDiscoveryRequest& 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_ipamResourceDiscoveryId; bool m_ipamResourceDiscoveryIdHasBeenSet = 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