AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeRegionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeRegions"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::Vector<Aws::String>& GetRegionNames() const{ return m_regionNames; }
47 inline bool RegionNamesHasBeenSet() const { return m_regionNamesHasBeenSet; }
48 inline void SetRegionNames(const Aws::Vector<Aws::String>& value) { m_regionNamesHasBeenSet = true; m_regionNames = value; }
49 inline void SetRegionNames(Aws::Vector<Aws::String>&& value) { m_regionNamesHasBeenSet = true; m_regionNames = std::move(value); }
51 inline DescribeRegionsRequest& WithRegionNames(Aws::Vector<Aws::String>&& value) { SetRegionNames(std::move(value)); return *this;}
52 inline DescribeRegionsRequest& AddRegionNames(const Aws::String& value) { m_regionNamesHasBeenSet = true; m_regionNames.push_back(value); return *this; }
53 inline DescribeRegionsRequest& AddRegionNames(Aws::String&& value) { m_regionNamesHasBeenSet = true; m_regionNames.push_back(std::move(value)); return *this; }
54 inline DescribeRegionsRequest& AddRegionNames(const char* value) { m_regionNamesHasBeenSet = true; m_regionNames.push_back(value); return *this; }
56
58
62 inline bool GetAllRegions() const{ return m_allRegions; }
63 inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
64 inline void SetAllRegions(bool value) { m_allRegionsHasBeenSet = true; m_allRegions = value; }
65 inline DescribeRegionsRequest& WithAllRegions(bool value) { SetAllRegions(value); return *this;}
67
69
75 inline bool GetDryRun() const{ return m_dryRun; }
76 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
77 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
78 inline DescribeRegionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
80
82
90 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
91 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
92 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
93 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
94 inline DescribeRegionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
95 inline DescribeRegionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
96 inline DescribeRegionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
97 inline DescribeRegionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::Vector<Aws::String> m_regionNames;
102 bool m_regionNamesHasBeenSet = false;
103
104 bool m_allRegions;
105 bool m_allRegionsHasBeenSet = false;
106
107 bool m_dryRun;
108 bool m_dryRunHasBeenSet = false;
109
110 Aws::Vector<Filter> m_filters;
111 bool m_filtersHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
DescribeRegionsRequest & AddRegionNames(Aws::String &&value)
void SetRegionNames(const Aws::Vector< Aws::String > &value)
DescribeRegionsRequest & AddRegionNames(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRegionNames() const
const Aws::Vector< Filter > & GetFilters() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeRegionsRequest & AddRegionNames(const char *value)
DescribeRegionsRequest & AddFilters(Filter &&value)
DescribeRegionsRequest & WithAllRegions(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetFilters(Aws::Vector< Filter > &&value)
void SetFilters(const Aws::Vector< Filter > &value)
DescribeRegionsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeRegionsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeRegionsRequest & AddFilters(const Filter &value)
DescribeRegionsRequest & WithRegionNames(Aws::Vector< Aws::String > &&value)
DescribeRegionsRequest & WithDryRun(bool value)
void SetRegionNames(Aws::Vector< Aws::String > &&value)
DescribeRegionsRequest & WithRegionNames(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector