AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_EC2_API DescribeAvailabilityZonesRequest() = default;
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 template<typename ZoneNamesT = Aws::Vector<Aws::String>>
48 void SetZoneNames(ZoneNamesT&& value) { m_zoneNamesHasBeenSet = true; m_zoneNames = std::forward<ZoneNamesT>(value); }
49 template<typename ZoneNamesT = Aws::Vector<Aws::String>>
50 DescribeAvailabilityZonesRequest& WithZoneNames(ZoneNamesT&& value) { SetZoneNames(std::forward<ZoneNamesT>(value)); return *this;}
51 template<typename ZoneNamesT = Aws::String>
52 DescribeAvailabilityZonesRequest& AddZoneNames(ZoneNamesT&& value) { m_zoneNamesHasBeenSet = true; m_zoneNames.emplace_back(std::forward<ZoneNamesT>(value)); return *this; }
54
56
59 inline const Aws::Vector<Aws::String>& GetZoneIds() const { return m_zoneIds; }
60 inline bool ZoneIdsHasBeenSet() const { return m_zoneIdsHasBeenSet; }
61 template<typename ZoneIdsT = Aws::Vector<Aws::String>>
62 void SetZoneIds(ZoneIdsT&& value) { m_zoneIdsHasBeenSet = true; m_zoneIds = std::forward<ZoneIdsT>(value); }
63 template<typename ZoneIdsT = Aws::Vector<Aws::String>>
64 DescribeAvailabilityZonesRequest& WithZoneIds(ZoneIdsT&& value) { SetZoneIds(std::forward<ZoneIdsT>(value)); return *this;}
65 template<typename ZoneIdsT = Aws::String>
66 DescribeAvailabilityZonesRequest& AddZoneIds(ZoneIdsT&& value) { m_zoneIdsHasBeenSet = true; m_zoneIds.emplace_back(std::forward<ZoneIdsT>(value)); return *this; }
68
70
76 inline bool GetAllAvailabilityZones() const { return m_allAvailabilityZones; }
77 inline bool AllAvailabilityZonesHasBeenSet() const { return m_allAvailabilityZonesHasBeenSet; }
78 inline void SetAllAvailabilityZones(bool value) { m_allAvailabilityZonesHasBeenSet = true; m_allAvailabilityZones = value; }
81
83
89 inline bool GetDryRun() const { return m_dryRun; }
90 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
91 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
92 inline DescribeAvailabilityZonesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
94
96
128 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
129 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
130 template<typename FiltersT = Aws::Vector<Filter>>
131 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
132 template<typename FiltersT = Aws::Vector<Filter>>
133 DescribeAvailabilityZonesRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
134 template<typename FiltersT = Filter>
135 DescribeAvailabilityZonesRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
137 private:
138
139 Aws::Vector<Aws::String> m_zoneNames;
140 bool m_zoneNamesHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_zoneIds;
143 bool m_zoneIdsHasBeenSet = false;
144
145 bool m_allAvailabilityZones{false};
146 bool m_allAvailabilityZonesHasBeenSet = false;
147
148 bool m_dryRun{false};
149 bool m_dryRunHasBeenSet = false;
150
151 Aws::Vector<Filter> m_filters;
152 bool m_filtersHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace EC2
157} // 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