AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeRegionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace 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::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
49  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
50 
59  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
60 
69  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
70 
79  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
80 
89  inline DescribeRegionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
90 
99  inline DescribeRegionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
100 
109  inline DescribeRegionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
110 
119  inline DescribeRegionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
120 
121 
126  inline const Aws::Vector<Aws::String>& GetRegionNames() const{ return m_regionNames; }
127 
132  inline bool RegionNamesHasBeenSet() const { return m_regionNamesHasBeenSet; }
133 
138  inline void SetRegionNames(const Aws::Vector<Aws::String>& value) { m_regionNamesHasBeenSet = true; m_regionNames = value; }
139 
144  inline void SetRegionNames(Aws::Vector<Aws::String>&& value) { m_regionNamesHasBeenSet = true; m_regionNames = std::move(value); }
145 
150  inline DescribeRegionsRequest& WithRegionNames(const Aws::Vector<Aws::String>& value) { SetRegionNames(value); return *this;}
151 
156  inline DescribeRegionsRequest& WithRegionNames(Aws::Vector<Aws::String>&& value) { SetRegionNames(std::move(value)); return *this;}
157 
162  inline DescribeRegionsRequest& AddRegionNames(const Aws::String& value) { m_regionNamesHasBeenSet = true; m_regionNames.push_back(value); return *this; }
163 
168  inline DescribeRegionsRequest& AddRegionNames(Aws::String&& value) { m_regionNamesHasBeenSet = true; m_regionNames.push_back(std::move(value)); return *this; }
169 
174  inline DescribeRegionsRequest& AddRegionNames(const char* value) { m_regionNamesHasBeenSet = true; m_regionNames.push_back(value); return *this; }
175 
176 
183  inline bool GetDryRun() const{ return m_dryRun; }
184 
191  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
192 
199  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
200 
207  inline DescribeRegionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
208 
209 
214  inline bool GetAllRegions() const{ return m_allRegions; }
215 
220  inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
221 
226  inline void SetAllRegions(bool value) { m_allRegionsHasBeenSet = true; m_allRegions = value; }
227 
232  inline DescribeRegionsRequest& WithAllRegions(bool value) { SetAllRegions(value); return *this;}
233 
234  private:
235 
236  Aws::Vector<Filter> m_filters;
237  bool m_filtersHasBeenSet;
238 
239  Aws::Vector<Aws::String> m_regionNames;
240  bool m_regionNamesHasBeenSet;
241 
242  bool m_dryRun;
243  bool m_dryRunHasBeenSet;
244 
245  bool m_allRegions;
246  bool m_allRegionsHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace EC2
251 } // namespace Aws
Aws::EC2::Model::DescribeRegionsRequest::AddFilters
DescribeRegionsRequest & AddFilters(const Filter &value)
Definition: DescribeRegionsRequest.h:109
Aws::EC2::Model::DescribeRegionsRequest::WithRegionNames
DescribeRegionsRequest & WithRegionNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeRegionsRequest.h:156
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeRegionsRequest::RegionNamesHasBeenSet
bool RegionNamesHasBeenSet() const
Definition: DescribeRegionsRequest.h:132
Aws::EC2::Model::DescribeRegionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeRegionsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeRegionsRequest.h:79
Aws::EC2::Model::DescribeRegionsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeRegionsRequest.h:69
Aws::EC2::Model::DescribeRegionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeRegionsRequest.h:199
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeRegionsRequest::DescribeRegionsRequest
DescribeRegionsRequest()
Aws::EC2::Model::DescribeRegionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeRegionsRequest::AddRegionNames
DescribeRegionsRequest & AddRegionNames(const char *value)
Definition: DescribeRegionsRequest.h:174
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeRegionsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeRegionsRequest.h:49
Aws::EC2::Model::DescribeRegionsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeRegionsRequest.h:183
Aws::EC2::Model::DescribeRegionsRequest::AllRegionsHasBeenSet
bool AllRegionsHasBeenSet() const
Definition: DescribeRegionsRequest.h:220
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeRegionsRequest::WithFilters
DescribeRegionsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeRegionsRequest.h:89
Aws::EC2::Model::DescribeRegionsRequest::WithFilters
DescribeRegionsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeRegionsRequest.h:99
Aws::EC2::Model::DescribeRegionsRequest::SetRegionNames
void SetRegionNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeRegionsRequest.h:138
Aws::EC2::Model::DescribeRegionsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeRegionsRequest.h:59
Aws::EC2::Model::DescribeRegionsRequest::GetRegionNames
const Aws::Vector< Aws::String > & GetRegionNames() const
Definition: DescribeRegionsRequest.h:126
EC2Request.h
Aws::EC2::Model::DescribeRegionsRequest::WithDryRun
DescribeRegionsRequest & WithDryRun(bool value)
Definition: DescribeRegionsRequest.h:207
Aws::EC2::Model::DescribeRegionsRequest::WithRegionNames
DescribeRegionsRequest & WithRegionNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeRegionsRequest.h:150
Aws::EC2::Model::DescribeRegionsRequest::WithAllRegions
DescribeRegionsRequest & WithAllRegions(bool value)
Definition: DescribeRegionsRequest.h:232
AWSString.h
Aws::EC2::Model::DescribeRegionsRequest::GetAllRegions
bool GetAllRegions() const
Definition: DescribeRegionsRequest.h:214
Aws::EC2::Model::DescribeRegionsRequest::SetAllRegions
void SetAllRegions(bool value)
Definition: DescribeRegionsRequest.h:226
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeRegionsRequest::AddFilters
DescribeRegionsRequest & AddFilters(Filter &&value)
Definition: DescribeRegionsRequest.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeRegionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeRegionsRequest.h:32
EC2_EXPORTS.h
Aws::EC2::Model::DescribeRegionsRequest::AddRegionNames
DescribeRegionsRequest & AddRegionNames(const Aws::String &value)
Definition: DescribeRegionsRequest.h:162
Aws::EC2::Model::DescribeRegionsRequest::SetRegionNames
void SetRegionNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeRegionsRequest.h:144
Aws::EC2::Model::DescribeRegionsRequest
Definition: DescribeRegionsRequest.h:24
Aws::EC2::Model::DescribeRegionsRequest::AddRegionNames
DescribeRegionsRequest & AddRegionNames(Aws::String &&value)
Definition: DescribeRegionsRequest.h:168
Aws::EC2::Model::DescribeRegionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeRegionsRequest.h:191