AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeAvailabilityZonesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeAvailabilityZonesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeAvailabilityZones"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::Vector<Aws::String>& GetZoneNames() const { return m_zoneNames; }
42 inline bool ZoneNamesHasBeenSet() const { return m_zoneNamesHasBeenSet; }
43 template <typename ZoneNamesT = Aws::Vector<Aws::String>>
44 void SetZoneNames(ZoneNamesT&& value) {
45 m_zoneNamesHasBeenSet = true;
46 m_zoneNames = std::forward<ZoneNamesT>(value);
47 }
48 template <typename ZoneNamesT = Aws::Vector<Aws::String>>
50 SetZoneNames(std::forward<ZoneNamesT>(value));
51 return *this;
52 }
53 template <typename ZoneNamesT = Aws::String>
55 m_zoneNamesHasBeenSet = true;
56 m_zoneNames.emplace_back(std::forward<ZoneNamesT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<Aws::String>& GetZoneIds() const { return m_zoneIds; }
66 inline bool ZoneIdsHasBeenSet() const { return m_zoneIdsHasBeenSet; }
67 template <typename ZoneIdsT = Aws::Vector<Aws::String>>
68 void SetZoneIds(ZoneIdsT&& value) {
69 m_zoneIdsHasBeenSet = true;
70 m_zoneIds = std::forward<ZoneIdsT>(value);
71 }
72 template <typename ZoneIdsT = Aws::Vector<Aws::String>>
74 SetZoneIds(std::forward<ZoneIdsT>(value));
75 return *this;
76 }
77 template <typename ZoneIdsT = Aws::String>
79 m_zoneIdsHasBeenSet = true;
80 m_zoneIds.emplace_back(std::forward<ZoneIdsT>(value));
81 return *this;
82 }
84
86
92 inline bool GetAllAvailabilityZones() const { return m_allAvailabilityZones; }
93 inline bool AllAvailabilityZonesHasBeenSet() const { return m_allAvailabilityZonesHasBeenSet; }
94 inline void SetAllAvailabilityZones(bool value) {
95 m_allAvailabilityZonesHasBeenSet = true;
96 m_allAvailabilityZones = value;
97 }
100 return *this;
101 }
103
105
111 inline bool GetDryRun() const { return m_dryRun; }
112 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
113 inline void SetDryRun(bool value) {
114 m_dryRunHasBeenSet = true;
115 m_dryRun = value;
116 }
118 SetDryRun(value);
119 return *this;
120 }
122
124
156 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
157 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
158 template <typename FiltersT = Aws::Vector<Filter>>
159 void SetFilters(FiltersT&& value) {
160 m_filtersHasBeenSet = true;
161 m_filters = std::forward<FiltersT>(value);
162 }
163 template <typename FiltersT = Aws::Vector<Filter>>
165 SetFilters(std::forward<FiltersT>(value));
166 return *this;
167 }
168 template <typename FiltersT = Filter>
170 m_filtersHasBeenSet = true;
171 m_filters.emplace_back(std::forward<FiltersT>(value));
172 return *this;
173 }
175 private:
176 Aws::Vector<Aws::String> m_zoneNames;
177
178 Aws::Vector<Aws::String> m_zoneIds;
179
180 bool m_allAvailabilityZones{false};
181
182 bool m_dryRun{false};
183
184 Aws::Vector<Filter> m_filters;
185 bool m_zoneNamesHasBeenSet = false;
186 bool m_zoneIdsHasBeenSet = false;
187 bool m_allAvailabilityZonesHasBeenSet = false;
188 bool m_dryRunHasBeenSet = false;
189 bool m_filtersHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace EC2
194} // namespace Aws
DescribeAvailabilityZonesRequest & WithFilters(FiltersT &&value)
DescribeAvailabilityZonesRequest & WithAllAvailabilityZones(bool value)
DescribeAvailabilityZonesRequest & AddZoneNames(ZoneNamesT &&value)
DescribeAvailabilityZonesRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAvailabilityZonesRequest & WithZoneIds(ZoneIdsT &&value)
DescribeAvailabilityZonesRequest & WithZoneNames(ZoneNamesT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeAvailabilityZonesRequest & AddFilters(FiltersT &&value)
DescribeAvailabilityZonesRequest & AddZoneIds(ZoneIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector