/** * 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 #include namespace Aws { namespace EC2 { namespace Model { /** */ class CreateIpamResourceDiscoveryRequest : public EC2Request { public: AWS_EC2_API CreateIpamResourceDiscoveryRequest(); // 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 "CreateIpamResourceDiscovery"; } 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 CreateIpamResourceDiscoveryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

A description for the IPAM resource discovery.

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

A description for the IPAM resource discovery.

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

A description for the IPAM resource discovery.

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

A description for the IPAM resource discovery.

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

A description for the IPAM resource discovery.

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

A description for the IPAM resource discovery.

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

A description for the IPAM resource discovery.

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

A description for the IPAM resource discovery.

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

Operating Regions for the IPAM 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& GetOperatingRegions() const{ return m_operatingRegions; } /** *

Operating Regions for the IPAM 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 OperatingRegionsHasBeenSet() const { return m_operatingRegionsHasBeenSet; } /** *

Operating Regions for the IPAM 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 SetOperatingRegions(const Aws::Vector& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions = value; } /** *

Operating Regions for the IPAM 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 SetOperatingRegions(Aws::Vector&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions = std::move(value); } /** *

Operating Regions for the IPAM 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 CreateIpamResourceDiscoveryRequest& WithOperatingRegions(const Aws::Vector& value) { SetOperatingRegions(value); return *this;} /** *

Operating Regions for the IPAM 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 CreateIpamResourceDiscoveryRequest& WithOperatingRegions(Aws::Vector&& value) { SetOperatingRegions(std::move(value)); return *this;} /** *

Operating Regions for the IPAM 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 CreateIpamResourceDiscoveryRequest& AddOperatingRegions(const AddIpamOperatingRegion& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions.push_back(value); return *this; } /** *

Operating Regions for the IPAM 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 CreateIpamResourceDiscoveryRequest& AddOperatingRegions(AddIpamOperatingRegion&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions.push_back(std::move(value)); return *this; } /** *

Tag specifications for the IPAM resource discovery.

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

Tag specifications for the IPAM resource discovery.

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

Tag specifications for the IPAM resource discovery.

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

Tag specifications for the IPAM resource discovery.

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

Tag specifications for the IPAM resource discovery.

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

Tag specifications for the IPAM resource discovery.

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

Tag specifications for the IPAM resource discovery.

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

Tag specifications for the IPAM resource discovery.

*/ inline CreateIpamResourceDiscoveryRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *

A client token for the IPAM resource discovery.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A client token for the IPAM resource discovery.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A client token for the IPAM resource discovery.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A client token for the IPAM resource discovery.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A client token for the IPAM resource discovery.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A client token for the IPAM resource discovery.

*/ inline CreateIpamResourceDiscoveryRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A client token for the IPAM resource discovery.

*/ inline CreateIpamResourceDiscoveryRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A client token for the IPAM resource discovery.

*/ inline CreateIpamResourceDiscoveryRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_operatingRegions; bool m_operatingRegionsHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws