AWS SDK for C++  1.9.67
AWS SDK for C++
DescribeAvailabilityZonesRequest.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 "DescribeAvailabilityZones"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
70  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
71 
101  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
102 
132  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
133 
163  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
164 
194  inline DescribeAvailabilityZonesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
195 
225  inline DescribeAvailabilityZonesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
226 
256  inline DescribeAvailabilityZonesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
257 
287  inline DescribeAvailabilityZonesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
288 
289 
293  inline const Aws::Vector<Aws::String>& GetZoneNames() const{ return m_zoneNames; }
294 
298  inline bool ZoneNamesHasBeenSet() const { return m_zoneNamesHasBeenSet; }
299 
303  inline void SetZoneNames(const Aws::Vector<Aws::String>& value) { m_zoneNamesHasBeenSet = true; m_zoneNames = value; }
304 
308  inline void SetZoneNames(Aws::Vector<Aws::String>&& value) { m_zoneNamesHasBeenSet = true; m_zoneNames = std::move(value); }
309 
313  inline DescribeAvailabilityZonesRequest& WithZoneNames(const Aws::Vector<Aws::String>& value) { SetZoneNames(value); return *this;}
314 
318  inline DescribeAvailabilityZonesRequest& WithZoneNames(Aws::Vector<Aws::String>&& value) { SetZoneNames(std::move(value)); return *this;}
319 
323  inline DescribeAvailabilityZonesRequest& AddZoneNames(const Aws::String& value) { m_zoneNamesHasBeenSet = true; m_zoneNames.push_back(value); return *this; }
324 
328  inline DescribeAvailabilityZonesRequest& AddZoneNames(Aws::String&& value) { m_zoneNamesHasBeenSet = true; m_zoneNames.push_back(std::move(value)); return *this; }
329 
333  inline DescribeAvailabilityZonesRequest& AddZoneNames(const char* value) { m_zoneNamesHasBeenSet = true; m_zoneNames.push_back(value); return *this; }
334 
335 
339  inline const Aws::Vector<Aws::String>& GetZoneIds() const{ return m_zoneIds; }
340 
344  inline bool ZoneIdsHasBeenSet() const { return m_zoneIdsHasBeenSet; }
345 
349  inline void SetZoneIds(const Aws::Vector<Aws::String>& value) { m_zoneIdsHasBeenSet = true; m_zoneIds = value; }
350 
354  inline void SetZoneIds(Aws::Vector<Aws::String>&& value) { m_zoneIdsHasBeenSet = true; m_zoneIds = std::move(value); }
355 
359  inline DescribeAvailabilityZonesRequest& WithZoneIds(const Aws::Vector<Aws::String>& value) { SetZoneIds(value); return *this;}
360 
364  inline DescribeAvailabilityZonesRequest& WithZoneIds(Aws::Vector<Aws::String>&& value) { SetZoneIds(std::move(value)); return *this;}
365 
369  inline DescribeAvailabilityZonesRequest& AddZoneIds(const Aws::String& value) { m_zoneIdsHasBeenSet = true; m_zoneIds.push_back(value); return *this; }
370 
374  inline DescribeAvailabilityZonesRequest& AddZoneIds(Aws::String&& value) { m_zoneIdsHasBeenSet = true; m_zoneIds.push_back(std::move(value)); return *this; }
375 
379  inline DescribeAvailabilityZonesRequest& AddZoneIds(const char* value) { m_zoneIdsHasBeenSet = true; m_zoneIds.push_back(value); return *this; }
380 
381 
388  inline bool GetAllAvailabilityZones() const{ return m_allAvailabilityZones; }
389 
396  inline bool AllAvailabilityZonesHasBeenSet() const { return m_allAvailabilityZonesHasBeenSet; }
397 
404  inline void SetAllAvailabilityZones(bool value) { m_allAvailabilityZonesHasBeenSet = true; m_allAvailabilityZones = value; }
405 
412  inline DescribeAvailabilityZonesRequest& WithAllAvailabilityZones(bool value) { SetAllAvailabilityZones(value); return *this;}
413 
414 
421  inline bool GetDryRun() const{ return m_dryRun; }
422 
429  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
430 
437  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
438 
445  inline DescribeAvailabilityZonesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
446 
447  private:
448 
449  Aws::Vector<Filter> m_filters;
450  bool m_filtersHasBeenSet;
451 
452  Aws::Vector<Aws::String> m_zoneNames;
453  bool m_zoneNamesHasBeenSet;
454 
455  Aws::Vector<Aws::String> m_zoneIds;
456  bool m_zoneIdsHasBeenSet;
457 
458  bool m_allAvailabilityZones;
459  bool m_allAvailabilityZonesHasBeenSet;
460 
461  bool m_dryRun;
462  bool m_dryRunHasBeenSet;
463  };
464 
465 } // namespace Model
466 } // namespace EC2
467 } // namespace Aws
Aws::EC2::Model::DescribeAvailabilityZonesRequest::WithFilters
DescribeAvailabilityZonesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeAvailabilityZonesRequest.h:225
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeAvailabilityZonesRequest::WithZoneIds
DescribeAvailabilityZonesRequest & WithZoneIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAvailabilityZonesRequest.h:364
Aws::EC2::Model::DescribeAvailabilityZonesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeAvailabilityZonesRequest.h:32
Aws::EC2::Model::DescribeAvailabilityZonesRequest::AllAvailabilityZonesHasBeenSet
bool AllAvailabilityZonesHasBeenSet() const
Definition: DescribeAvailabilityZonesRequest.h:396
Aws::EC2::Model::DescribeAvailabilityZonesRequest::AddZoneIds
DescribeAvailabilityZonesRequest & AddZoneIds(Aws::String &&value)
Definition: DescribeAvailabilityZonesRequest.h:374
Aws::EC2::Model::DescribeAvailabilityZonesRequest::SetZoneNames
void SetZoneNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeAvailabilityZonesRequest.h:303
Aws::EC2::Model::DescribeAvailabilityZonesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeAvailabilityZonesRequest.h:132
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::EC2::Model::DescribeAvailabilityZonesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeAvailabilityZonesRequest::SetZoneNames
void SetZoneNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeAvailabilityZonesRequest.h:308
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeAvailabilityZonesRequest::GetZoneIds
const Aws::Vector< Aws::String > & GetZoneIds() const
Definition: DescribeAvailabilityZonesRequest.h:339
Aws::EC2::Model::DescribeAvailabilityZonesRequest::AddZoneIds
DescribeAvailabilityZonesRequest & AddZoneIds(const Aws::String &value)
Definition: DescribeAvailabilityZonesRequest.h:369
Aws::EC2::Model::DescribeAvailabilityZonesRequest::WithDryRun
DescribeAvailabilityZonesRequest & WithDryRun(bool value)
Definition: DescribeAvailabilityZonesRequest.h:445
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeAvailabilityZonesRequest::AddZoneIds
DescribeAvailabilityZonesRequest & AddZoneIds(const char *value)
Definition: DescribeAvailabilityZonesRequest.h:379
Aws::EC2::Model::DescribeAvailabilityZonesRequest::WithAllAvailabilityZones
DescribeAvailabilityZonesRequest & WithAllAvailabilityZones(bool value)
Definition: DescribeAvailabilityZonesRequest.h:412
Aws::EC2::Model::DescribeAvailabilityZonesRequest::SetZoneIds
void SetZoneIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAvailabilityZonesRequest.h:349
Aws::EC2::Model::DescribeAvailabilityZonesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeAvailabilityZonesRequest.h:163
Aws::EC2::Model::DescribeAvailabilityZonesRequest::SetZoneIds
void SetZoneIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAvailabilityZonesRequest.h:354
Aws::EC2::Model::DescribeAvailabilityZonesRequest::AddFilters
DescribeAvailabilityZonesRequest & AddFilters(Filter &&value)
Definition: DescribeAvailabilityZonesRequest.h:287
Aws::EC2::Model::DescribeAvailabilityZonesRequest::WithFilters
DescribeAvailabilityZonesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeAvailabilityZonesRequest.h:194
Aws::EC2::Model::DescribeAvailabilityZonesRequest::ZoneNamesHasBeenSet
bool ZoneNamesHasBeenSet() const
Definition: DescribeAvailabilityZonesRequest.h:298
Aws::EC2::Model::DescribeAvailabilityZonesRequest::WithZoneNames
DescribeAvailabilityZonesRequest & WithZoneNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeAvailabilityZonesRequest.h:318
Aws::EC2::Model::DescribeAvailabilityZonesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeAvailabilityZonesRequest.h:101
Aws::EC2::Model::DescribeAvailabilityZonesRequest::DescribeAvailabilityZonesRequest
DescribeAvailabilityZonesRequest()
EC2Request.h
Aws::EC2::Model::DescribeAvailabilityZonesRequest::WithZoneNames
DescribeAvailabilityZonesRequest & WithZoneNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeAvailabilityZonesRequest.h:313
Aws::EC2::Model::DescribeAvailabilityZonesRequest
Definition: DescribeAvailabilityZonesRequest.h:24
AWSString.h
Aws::EC2::Model::DescribeAvailabilityZonesRequest::WithZoneIds
DescribeAvailabilityZonesRequest & WithZoneIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAvailabilityZonesRequest.h:359
Aws::EC2::Model::DescribeAvailabilityZonesRequest::GetAllAvailabilityZones
bool GetAllAvailabilityZones() const
Definition: DescribeAvailabilityZonesRequest.h:388
Aws::EC2::Model::DescribeAvailabilityZonesRequest::AddZoneNames
DescribeAvailabilityZonesRequest & AddZoneNames(const char *value)
Definition: DescribeAvailabilityZonesRequest.h:333
Aws::EC2::Model::DescribeAvailabilityZonesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeAvailabilityZonesRequest.h:421
Aws::EC2::Model::DescribeAvailabilityZonesRequest::GetZoneNames
const Aws::Vector< Aws::String > & GetZoneNames() const
Definition: DescribeAvailabilityZonesRequest.h:293
Aws::EC2::Model::DescribeAvailabilityZonesRequest::ZoneIdsHasBeenSet
bool ZoneIdsHasBeenSet() const
Definition: DescribeAvailabilityZonesRequest.h:344
Aws::EC2::Model::DescribeAvailabilityZonesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeAvailabilityZonesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeAvailabilityZonesRequest.h:429
Aws::EC2::Model::DescribeAvailabilityZonesRequest::SetAllAvailabilityZones
void SetAllAvailabilityZones(bool value)
Definition: DescribeAvailabilityZonesRequest.h:404
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeAvailabilityZonesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeAvailabilityZonesRequest.h:437
Aws::EC2::Model::DescribeAvailabilityZonesRequest::AddZoneNames
DescribeAvailabilityZonesRequest & AddZoneNames(const Aws::String &value)
Definition: DescribeAvailabilityZonesRequest.h:323
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeAvailabilityZonesRequest::AddFilters
DescribeAvailabilityZonesRequest & AddFilters(const Filter &value)
Definition: DescribeAvailabilityZonesRequest.h:256
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeAvailabilityZonesRequest::AddZoneNames
DescribeAvailabilityZonesRequest & AddZoneNames(Aws::String &&value)
Definition: DescribeAvailabilityZonesRequest.h:328
Aws::EC2::Model::DescribeAvailabilityZonesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeAvailabilityZonesRequest.h:70
EC2_EXPORTS.h