AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeInternetGatewaysRequest.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 DescribeInternetGatewaysRequest() = 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 "DescribeInternetGateways"; }
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
42 inline const Aws::String& GetNextToken() const { return m_nextToken; }
43 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
44 template <typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) {
46 m_nextTokenHasBeenSet = true;
47 m_nextToken = std::forward<NextTokenT>(value);
48 }
49 template <typename NextTokenT = Aws::String>
51 SetNextToken(std::forward<NextTokenT>(value));
52 return *this;
53 }
55
57
63 inline int GetMaxResults() const { return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) {
66 m_maxResultsHasBeenSet = true;
67 m_maxResults = value;
68 }
70 SetMaxResults(value);
71 return *this;
72 }
74
76
82 inline bool GetDryRun() const { return m_dryRun; }
83 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
84 inline void SetDryRun(bool value) {
85 m_dryRunHasBeenSet = true;
86 m_dryRun = value;
87 }
89 SetDryRun(value);
90 return *this;
91 }
93
95
99 inline const Aws::Vector<Aws::String>& GetInternetGatewayIds() const { return m_internetGatewayIds; }
100 inline bool InternetGatewayIdsHasBeenSet() const { return m_internetGatewayIdsHasBeenSet; }
101 template <typename InternetGatewayIdsT = Aws::Vector<Aws::String>>
102 void SetInternetGatewayIds(InternetGatewayIdsT&& value) {
103 m_internetGatewayIdsHasBeenSet = true;
104 m_internetGatewayIds = std::forward<InternetGatewayIdsT>(value);
105 }
106 template <typename InternetGatewayIdsT = Aws::Vector<Aws::String>>
108 SetInternetGatewayIds(std::forward<InternetGatewayIdsT>(value));
109 return *this;
110 }
111 template <typename InternetGatewayIdsT = Aws::String>
113 m_internetGatewayIdsHasBeenSet = true;
114 m_internetGatewayIds.emplace_back(std::forward<InternetGatewayIdsT>(value));
115 return *this;
116 }
118
120
137 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
138 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
139 template <typename FiltersT = Aws::Vector<Filter>>
140 void SetFilters(FiltersT&& value) {
141 m_filtersHasBeenSet = true;
142 m_filters = std::forward<FiltersT>(value);
143 }
144 template <typename FiltersT = Aws::Vector<Filter>>
146 SetFilters(std::forward<FiltersT>(value));
147 return *this;
148 }
149 template <typename FiltersT = Filter>
151 m_filtersHasBeenSet = true;
152 m_filters.emplace_back(std::forward<FiltersT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_nextToken;
158
159 int m_maxResults{0};
160
161 bool m_dryRun{false};
162
163 Aws::Vector<Aws::String> m_internetGatewayIds;
164
165 Aws::Vector<Filter> m_filters;
166 bool m_nextTokenHasBeenSet = false;
167 bool m_maxResultsHasBeenSet = false;
168 bool m_dryRunHasBeenSet = false;
169 bool m_internetGatewayIdsHasBeenSet = false;
170 bool m_filtersHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace EC2
175} // namespace Aws
DescribeInternetGatewaysRequest & WithNextToken(NextTokenT &&value)
DescribeInternetGatewaysRequest & WithFilters(FiltersT &&value)
DescribeInternetGatewaysRequest & AddFilters(FiltersT &&value)
DescribeInternetGatewaysRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeInternetGatewaysRequest & AddInternetGatewayIds(InternetGatewayIdsT &&value)
const Aws::Vector< Aws::String > & GetInternetGatewayIds() const
DescribeInternetGatewaysRequest & WithInternetGatewayIds(InternetGatewayIdsT &&value)
DescribeInternetGatewaysRequest & WithMaxResults(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector