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

The filters.

  • endpoint - The endpoint of the * Region (for example, ec2.us-east-1.amazonaws.com).

  • *

    opt-in-status - The opt-in status of the Region * (opt-in-not-required | opted-in | * not-opted-in).

  • region-name - The * name of the Region (for example, us-east-1).

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

The filters.

  • endpoint - The endpoint of the * Region (for example, ec2.us-east-1.amazonaws.com).

  • *

    opt-in-status - The opt-in status of the Region * (opt-in-not-required | opted-in | * not-opted-in).

  • region-name - The * name of the Region (for example, us-east-1).

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

The filters.

  • endpoint - The endpoint of the * Region (for example, ec2.us-east-1.amazonaws.com).

  • *

    opt-in-status - The opt-in status of the Region * (opt-in-not-required | opted-in | * not-opted-in).

  • region-name - The * name of the Region (for example, us-east-1).

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

The filters.

  • endpoint - The endpoint of the * Region (for example, ec2.us-east-1.amazonaws.com).

  • *

    opt-in-status - The opt-in status of the Region * (opt-in-not-required | opted-in | * not-opted-in).

  • region-name - The * name of the Region (for example, us-east-1).

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

The filters.

  • endpoint - The endpoint of the * Region (for example, ec2.us-east-1.amazonaws.com).

  • *

    opt-in-status - The opt-in status of the Region * (opt-in-not-required | opted-in | * not-opted-in).

  • region-name - The * name of the Region (for example, us-east-1).

*/ inline DescribeRegionsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

The filters.

  • endpoint - The endpoint of the * Region (for example, ec2.us-east-1.amazonaws.com).

  • *

    opt-in-status - The opt-in status of the Region * (opt-in-not-required | opted-in | * not-opted-in).

  • region-name - The * name of the Region (for example, us-east-1).

*/ inline DescribeRegionsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

The filters.

  • endpoint - The endpoint of the * Region (for example, ec2.us-east-1.amazonaws.com).

  • *

    opt-in-status - The opt-in status of the Region * (opt-in-not-required | opted-in | * not-opted-in).

  • region-name - The * name of the Region (for example, us-east-1).

*/ inline DescribeRegionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

The filters.

  • endpoint - The endpoint of the * Region (for example, ec2.us-east-1.amazonaws.com).

  • *

    opt-in-status - The opt-in status of the Region * (opt-in-not-required | opted-in | * not-opted-in).

  • region-name - The * name of the Region (for example, us-east-1).

*/ inline DescribeRegionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The names of the Regions. You can specify any Regions, whether they are * enabled and disabled for your account.

*/ inline const Aws::Vector& GetRegionNames() const{ return m_regionNames; } /** *

The names of the Regions. You can specify any Regions, whether they are * enabled and disabled for your account.

*/ inline bool RegionNamesHasBeenSet() const { return m_regionNamesHasBeenSet; } /** *

The names of the Regions. You can specify any Regions, whether they are * enabled and disabled for your account.

*/ inline void SetRegionNames(const Aws::Vector& value) { m_regionNamesHasBeenSet = true; m_regionNames = value; } /** *

The names of the Regions. You can specify any Regions, whether they are * enabled and disabled for your account.

*/ inline void SetRegionNames(Aws::Vector&& value) { m_regionNamesHasBeenSet = true; m_regionNames = std::move(value); } /** *

The names of the Regions. You can specify any Regions, whether they are * enabled and disabled for your account.

*/ inline DescribeRegionsRequest& WithRegionNames(const Aws::Vector& value) { SetRegionNames(value); return *this;} /** *

The names of the Regions. You can specify any Regions, whether they are * enabled and disabled for your account.

*/ inline DescribeRegionsRequest& WithRegionNames(Aws::Vector&& value) { SetRegionNames(std::move(value)); return *this;} /** *

The names of the Regions. You can specify any Regions, whether they are * enabled and disabled for your account.

*/ inline DescribeRegionsRequest& AddRegionNames(const Aws::String& value) { m_regionNamesHasBeenSet = true; m_regionNames.push_back(value); return *this; } /** *

The names of the Regions. You can specify any Regions, whether they are * enabled and disabled for your account.

*/ inline DescribeRegionsRequest& AddRegionNames(Aws::String&& value) { m_regionNamesHasBeenSet = true; m_regionNames.push_back(std::move(value)); return *this; } /** *

The names of the Regions. You can specify any Regions, whether they are * enabled and disabled for your account.

*/ inline DescribeRegionsRequest& AddRegionNames(const char* value) { m_regionNamesHasBeenSet = true; m_regionNames.push_back(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 DescribeRegionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

Indicates whether to display all Regions, including Regions that are disabled * for your account.

*/ inline bool GetAllRegions() const{ return m_allRegions; } /** *

Indicates whether to display all Regions, including Regions that are disabled * for your account.

*/ inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; } /** *

Indicates whether to display all Regions, including Regions that are disabled * for your account.

*/ inline void SetAllRegions(bool value) { m_allRegionsHasBeenSet = true; m_allRegions = value; } /** *

Indicates whether to display all Regions, including Regions that are disabled * for your account.

*/ inline DescribeRegionsRequest& WithAllRegions(bool value) { SetAllRegions(value); return *this;} private: Aws::Vector m_filters; bool m_filtersHasBeenSet = false; Aws::Vector m_regionNames; bool m_regionNamesHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; bool m_allRegions; bool m_allRegionsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws