AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeAvailabilityZonesRequest.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 "DescribeAvailabilityZones"; }
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
45 inline const Aws::Vector<Aws::String>& GetZoneNames() const{ return m_zoneNames; }
46 inline bool ZoneNamesHasBeenSet() const { return m_zoneNamesHasBeenSet; }
47 inline void SetZoneNames(const Aws::Vector<Aws::String>& value) { m_zoneNamesHasBeenSet = true; m_zoneNames = value; }
48 inline void SetZoneNames(Aws::Vector<Aws::String>&& value) { m_zoneNamesHasBeenSet = true; m_zoneNames = std::move(value); }
50 inline DescribeAvailabilityZonesRequest& WithZoneNames(Aws::Vector<Aws::String>&& value) { SetZoneNames(std::move(value)); return *this;}
51 inline DescribeAvailabilityZonesRequest& AddZoneNames(const Aws::String& value) { m_zoneNamesHasBeenSet = true; m_zoneNames.push_back(value); return *this; }
52 inline DescribeAvailabilityZonesRequest& AddZoneNames(Aws::String&& value) { m_zoneNamesHasBeenSet = true; m_zoneNames.push_back(std::move(value)); return *this; }
53 inline DescribeAvailabilityZonesRequest& AddZoneNames(const char* value) { m_zoneNamesHasBeenSet = true; m_zoneNames.push_back(value); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetZoneIds() const{ return m_zoneIds; }
61 inline bool ZoneIdsHasBeenSet() const { return m_zoneIdsHasBeenSet; }
62 inline void SetZoneIds(const Aws::Vector<Aws::String>& value) { m_zoneIdsHasBeenSet = true; m_zoneIds = value; }
63 inline void SetZoneIds(Aws::Vector<Aws::String>&& value) { m_zoneIdsHasBeenSet = true; m_zoneIds = std::move(value); }
65 inline DescribeAvailabilityZonesRequest& WithZoneIds(Aws::Vector<Aws::String>&& value) { SetZoneIds(std::move(value)); return *this;}
66 inline DescribeAvailabilityZonesRequest& AddZoneIds(const Aws::String& value) { m_zoneIdsHasBeenSet = true; m_zoneIds.push_back(value); return *this; }
67 inline DescribeAvailabilityZonesRequest& AddZoneIds(Aws::String&& value) { m_zoneIdsHasBeenSet = true; m_zoneIds.push_back(std::move(value)); return *this; }
68 inline DescribeAvailabilityZonesRequest& AddZoneIds(const char* value) { m_zoneIdsHasBeenSet = true; m_zoneIds.push_back(value); return *this; }
70
72
78 inline bool GetAllAvailabilityZones() const{ return m_allAvailabilityZones; }
79 inline bool AllAvailabilityZonesHasBeenSet() const { return m_allAvailabilityZonesHasBeenSet; }
80 inline void SetAllAvailabilityZones(bool value) { m_allAvailabilityZonesHasBeenSet = true; m_allAvailabilityZones = value; }
83
85
91 inline bool GetDryRun() const{ return m_dryRun; }
92 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
93 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
94 inline DescribeAvailabilityZonesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
96
98
125 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
126 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
127 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
128 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
129 inline DescribeAvailabilityZonesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
130 inline DescribeAvailabilityZonesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
131 inline DescribeAvailabilityZonesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
132 inline DescribeAvailabilityZonesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
134 private:
135
136 Aws::Vector<Aws::String> m_zoneNames;
137 bool m_zoneNamesHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_zoneIds;
140 bool m_zoneIdsHasBeenSet = false;
141
142 bool m_allAvailabilityZones;
143 bool m_allAvailabilityZonesHasBeenSet = false;
144
145 bool m_dryRun;
146 bool m_dryRunHasBeenSet = false;
147
148 Aws::Vector<Filter> m_filters;
149 bool m_filtersHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace EC2
154} // namespace Aws
DescribeAvailabilityZonesRequest & AddZoneIds(Aws::String &&value)
DescribeAvailabilityZonesRequest & AddFilters(const Filter &value)
DescribeAvailabilityZonesRequest & WithAllAvailabilityZones(bool value)
DescribeAvailabilityZonesRequest & AddZoneNames(Aws::String &&value)
DescribeAvailabilityZonesRequest & AddFilters(Filter &&value)
DescribeAvailabilityZonesRequest & WithDryRun(bool value)
DescribeAvailabilityZonesRequest & AddZoneIds(const Aws::String &value)
DescribeAvailabilityZonesRequest & WithZoneNames(const Aws::Vector< Aws::String > &value)
DescribeAvailabilityZonesRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeAvailabilityZonesRequest & AddZoneNames(const char *value)
DescribeAvailabilityZonesRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeAvailabilityZonesRequest & AddZoneIds(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAvailabilityZonesRequest & AddZoneNames(const Aws::String &value)
DescribeAvailabilityZonesRequest & WithZoneNames(Aws::Vector< Aws::String > &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeAvailabilityZonesRequest & WithZoneIds(Aws::Vector< Aws::String > &&value)
void SetZoneIds(const Aws::Vector< Aws::String > &value)
DescribeAvailabilityZonesRequest & WithZoneIds(const Aws::Vector< Aws::String > &value)
void SetZoneNames(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector