AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DescribeSecondarySubnetsRequest.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 DescribeSecondarySubnetsRequest() = 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 "DescribeSecondarySubnets"; }
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
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
84 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
85 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
86 template <typename FiltersT = Aws::Vector<Filter>>
87 void SetFilters(FiltersT&& value) {
88 m_filtersHasBeenSet = true;
89 m_filters = std::forward<FiltersT>(value);
90 }
91 template <typename FiltersT = Aws::Vector<Filter>>
93 SetFilters(std::forward<FiltersT>(value));
94 return *this;
95 }
96 template <typename FiltersT = Filter>
98 m_filtersHasBeenSet = true;
99 m_filters.emplace_back(std::forward<FiltersT>(value));
100 return *this;
101 }
103
105
110 inline int GetMaxResults() const { return m_maxResults; }
111 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
112 inline void SetMaxResults(int value) {
113 m_maxResultsHasBeenSet = true;
114 m_maxResults = value;
115 }
117 SetMaxResults(value);
118 return *this;
119 }
121
123
126 inline const Aws::String& GetNextToken() const { return m_nextToken; }
127 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 template <typename NextTokenT = Aws::String>
129 void SetNextToken(NextTokenT&& value) {
130 m_nextTokenHasBeenSet = true;
131 m_nextToken = std::forward<NextTokenT>(value);
132 }
133 template <typename NextTokenT = Aws::String>
135 SetNextToken(std::forward<NextTokenT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Vector<Aws::String>& GetSecondarySubnetIds() const { return m_secondarySubnetIds; }
145 inline bool SecondarySubnetIdsHasBeenSet() const { return m_secondarySubnetIdsHasBeenSet; }
146 template <typename SecondarySubnetIdsT = Aws::Vector<Aws::String>>
147 void SetSecondarySubnetIds(SecondarySubnetIdsT&& value) {
148 m_secondarySubnetIdsHasBeenSet = true;
149 m_secondarySubnetIds = std::forward<SecondarySubnetIdsT>(value);
150 }
151 template <typename SecondarySubnetIdsT = Aws::Vector<Aws::String>>
153 SetSecondarySubnetIds(std::forward<SecondarySubnetIdsT>(value));
154 return *this;
155 }
156 template <typename SecondarySubnetIdsT = Aws::String>
158 m_secondarySubnetIdsHasBeenSet = true;
159 m_secondarySubnetIds.emplace_back(std::forward<SecondarySubnetIdsT>(value));
160 return *this;
161 }
163 private:
164 bool m_dryRun{false};
165
166 Aws::Vector<Filter> m_filters;
167
168 int m_maxResults{0};
169
170 Aws::String m_nextToken;
171
172 Aws::Vector<Aws::String> m_secondarySubnetIds;
173 bool m_dryRunHasBeenSet = false;
174 bool m_filtersHasBeenSet = false;
175 bool m_maxResultsHasBeenSet = false;
176 bool m_nextTokenHasBeenSet = false;
177 bool m_secondarySubnetIdsHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace EC2
182} // namespace Aws
DescribeSecondarySubnetsRequest & AddFilters(FiltersT &&value)
const Aws::Vector< Aws::String > & GetSecondarySubnetIds() const
DescribeSecondarySubnetsRequest & WithFilters(FiltersT &&value)
DescribeSecondarySubnetsRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeSecondarySubnetsRequest & WithMaxResults(int value)
DescribeSecondarySubnetsRequest & WithDryRun(bool value)
DescribeSecondarySubnetsRequest & WithSecondarySubnetIds(SecondarySubnetIdsT &&value)
DescribeSecondarySubnetsRequest & AddSecondarySubnetIds(SecondarySubnetIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector