AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
DescribeSecondaryInterfacesRequest.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 DescribeSecondaryInterfacesRequest() = 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 "DescribeSecondaryInterfaces"; }
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
89 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
90 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
91 template <typename FiltersT = Aws::Vector<Filter>>
92 void SetFilters(FiltersT&& value) {
93 m_filtersHasBeenSet = true;
94 m_filters = std::forward<FiltersT>(value);
95 }
96 template <typename FiltersT = Aws::Vector<Filter>>
98 SetFilters(std::forward<FiltersT>(value));
99 return *this;
100 }
101 template <typename FiltersT = Filter>
103 m_filtersHasBeenSet = true;
104 m_filters.emplace_back(std::forward<FiltersT>(value));
105 return *this;
106 }
108
110
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) {
118 m_maxResultsHasBeenSet = true;
119 m_maxResults = value;
120 }
122 SetMaxResults(value);
123 return *this;
124 }
126
128
131 inline const Aws::String& GetNextToken() const { return m_nextToken; }
132 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
133 template <typename NextTokenT = Aws::String>
134 void SetNextToken(NextTokenT&& value) {
135 m_nextTokenHasBeenSet = true;
136 m_nextToken = std::forward<NextTokenT>(value);
137 }
138 template <typename NextTokenT = Aws::String>
140 SetNextToken(std::forward<NextTokenT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Vector<Aws::String>& GetSecondaryInterfaceIds() const { return m_secondaryInterfaceIds; }
150 inline bool SecondaryInterfaceIdsHasBeenSet() const { return m_secondaryInterfaceIdsHasBeenSet; }
151 template <typename SecondaryInterfaceIdsT = Aws::Vector<Aws::String>>
152 void SetSecondaryInterfaceIds(SecondaryInterfaceIdsT&& value) {
153 m_secondaryInterfaceIdsHasBeenSet = true;
154 m_secondaryInterfaceIds = std::forward<SecondaryInterfaceIdsT>(value);
155 }
156 template <typename SecondaryInterfaceIdsT = Aws::Vector<Aws::String>>
158 SetSecondaryInterfaceIds(std::forward<SecondaryInterfaceIdsT>(value));
159 return *this;
160 }
161 template <typename SecondaryInterfaceIdsT = Aws::String>
163 m_secondaryInterfaceIdsHasBeenSet = true;
164 m_secondaryInterfaceIds.emplace_back(std::forward<SecondaryInterfaceIdsT>(value));
165 return *this;
166 }
168 private:
169 bool m_dryRun{false};
170
171 Aws::Vector<Filter> m_filters;
172
173 int m_maxResults{0};
174
175 Aws::String m_nextToken;
176
177 Aws::Vector<Aws::String> m_secondaryInterfaceIds;
178 bool m_dryRunHasBeenSet = false;
179 bool m_filtersHasBeenSet = false;
180 bool m_maxResultsHasBeenSet = false;
181 bool m_nextTokenHasBeenSet = false;
182 bool m_secondaryInterfaceIdsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace EC2
187} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeSecondaryInterfacesRequest & AddSecondaryInterfaceIds(SecondaryInterfaceIdsT &&value)
const Aws::Vector< Aws::String > & GetSecondaryInterfaceIds() const
DescribeSecondaryInterfacesRequest & AddFilters(FiltersT &&value)
DescribeSecondaryInterfacesRequest & WithNextToken(NextTokenT &&value)
DescribeSecondaryInterfacesRequest & WithMaxResults(int value)
DescribeSecondaryInterfacesRequest & WithSecondaryInterfaceIds(SecondaryInterfaceIdsT &&value)
DescribeSecondaryInterfacesRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeSecondaryInterfacesRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector