AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DescribeSecondaryNetworksRequest.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 DescribeSecondaryNetworksRequest() = 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 "DescribeSecondaryNetworks"; }
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
83 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
84 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
85 template <typename FiltersT = Aws::Vector<Filter>>
86 void SetFilters(FiltersT&& value) {
87 m_filtersHasBeenSet = true;
88 m_filters = std::forward<FiltersT>(value);
89 }
90 template <typename FiltersT = Aws::Vector<Filter>>
92 SetFilters(std::forward<FiltersT>(value));
93 return *this;
94 }
95 template <typename FiltersT = Filter>
97 m_filtersHasBeenSet = true;
98 m_filters.emplace_back(std::forward<FiltersT>(value));
99 return *this;
100 }
102
104
109 inline int GetMaxResults() const { return m_maxResults; }
110 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
111 inline void SetMaxResults(int value) {
112 m_maxResultsHasBeenSet = true;
113 m_maxResults = value;
114 }
116 SetMaxResults(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetNextToken() const { return m_nextToken; }
126 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 template <typename NextTokenT = Aws::String>
128 void SetNextToken(NextTokenT&& value) {
129 m_nextTokenHasBeenSet = true;
130 m_nextToken = std::forward<NextTokenT>(value);
131 }
132 template <typename NextTokenT = Aws::String>
134 SetNextToken(std::forward<NextTokenT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Vector<Aws::String>& GetSecondaryNetworkIds() const { return m_secondaryNetworkIds; }
144 inline bool SecondaryNetworkIdsHasBeenSet() const { return m_secondaryNetworkIdsHasBeenSet; }
145 template <typename SecondaryNetworkIdsT = Aws::Vector<Aws::String>>
146 void SetSecondaryNetworkIds(SecondaryNetworkIdsT&& value) {
147 m_secondaryNetworkIdsHasBeenSet = true;
148 m_secondaryNetworkIds = std::forward<SecondaryNetworkIdsT>(value);
149 }
150 template <typename SecondaryNetworkIdsT = Aws::Vector<Aws::String>>
152 SetSecondaryNetworkIds(std::forward<SecondaryNetworkIdsT>(value));
153 return *this;
154 }
155 template <typename SecondaryNetworkIdsT = Aws::String>
157 m_secondaryNetworkIdsHasBeenSet = true;
158 m_secondaryNetworkIds.emplace_back(std::forward<SecondaryNetworkIdsT>(value));
159 return *this;
160 }
162 private:
163 bool m_dryRun{false};
164
165 Aws::Vector<Filter> m_filters;
166
167 int m_maxResults{0};
168
169 Aws::String m_nextToken;
170
171 Aws::Vector<Aws::String> m_secondaryNetworkIds;
172 bool m_dryRunHasBeenSet = false;
173 bool m_filtersHasBeenSet = false;
174 bool m_maxResultsHasBeenSet = false;
175 bool m_nextTokenHasBeenSet = false;
176 bool m_secondaryNetworkIdsHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace EC2
181} // namespace Aws
DescribeSecondaryNetworksRequest & AddSecondaryNetworkIds(SecondaryNetworkIdsT &&value)
DescribeSecondaryNetworksRequest & WithSecondaryNetworkIds(SecondaryNetworkIdsT &&value)
DescribeSecondaryNetworksRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetSecondaryNetworkIds() const
DescribeSecondaryNetworksRequest & WithNextToken(NextTokenT &&value)
DescribeSecondaryNetworksRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeSecondaryNetworksRequest & AddFilters(FiltersT &&value)
DescribeSecondaryNetworksRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector