AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeTransitGatewaysRequest.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 DescribeTransitGatewaysRequest() = 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 "DescribeTransitGateways"; }
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
41 inline const Aws::Vector<Aws::String>& GetTransitGatewayIds() const { return m_transitGatewayIds; }
42 inline bool TransitGatewayIdsHasBeenSet() const { return m_transitGatewayIdsHasBeenSet; }
43 template <typename TransitGatewayIdsT = Aws::Vector<Aws::String>>
44 void SetTransitGatewayIds(TransitGatewayIdsT&& value) {
45 m_transitGatewayIdsHasBeenSet = true;
46 m_transitGatewayIds = std::forward<TransitGatewayIdsT>(value);
47 }
48 template <typename TransitGatewayIdsT = Aws::Vector<Aws::String>>
50 SetTransitGatewayIds(std::forward<TransitGatewayIdsT>(value));
51 return *this;
52 }
53 template <typename TransitGatewayIdsT = Aws::String>
55 m_transitGatewayIdsHasBeenSet = true;
56 m_transitGatewayIds.emplace_back(std::forward<TransitGatewayIdsT>(value));
57 return *this;
58 }
60
62
94 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
95 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
96 template <typename FiltersT = Aws::Vector<Filter>>
97 void SetFilters(FiltersT&& value) {
98 m_filtersHasBeenSet = true;
99 m_filters = std::forward<FiltersT>(value);
100 }
101 template <typename FiltersT = Aws::Vector<Filter>>
103 SetFilters(std::forward<FiltersT>(value));
104 return *this;
105 }
106 template <typename FiltersT = Filter>
108 m_filtersHasBeenSet = true;
109 m_filters.emplace_back(std::forward<FiltersT>(value));
110 return *this;
111 }
113
115
120 inline int GetMaxResults() const { return m_maxResults; }
121 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
122 inline void SetMaxResults(int value) {
123 m_maxResultsHasBeenSet = true;
124 m_maxResults = value;
125 }
127 SetMaxResults(value);
128 return *this;
129 }
131
133
136 inline const Aws::String& GetNextToken() const { return m_nextToken; }
137 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
138 template <typename NextTokenT = Aws::String>
139 void SetNextToken(NextTokenT&& value) {
140 m_nextTokenHasBeenSet = true;
141 m_nextToken = std::forward<NextTokenT>(value);
142 }
143 template <typename NextTokenT = Aws::String>
145 SetNextToken(std::forward<NextTokenT>(value));
146 return *this;
147 }
149
151
157 inline bool GetDryRun() const { return m_dryRun; }
158 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
159 inline void SetDryRun(bool value) {
160 m_dryRunHasBeenSet = true;
161 m_dryRun = value;
162 }
164 SetDryRun(value);
165 return *this;
166 }
168 private:
169 Aws::Vector<Aws::String> m_transitGatewayIds;
170
171 Aws::Vector<Filter> m_filters;
172
173 int m_maxResults{0};
174
175 Aws::String m_nextToken;
176
177 bool m_dryRun{false};
178 bool m_transitGatewayIdsHasBeenSet = false;
179 bool m_filtersHasBeenSet = false;
180 bool m_maxResultsHasBeenSet = false;
181 bool m_nextTokenHasBeenSet = false;
182 bool m_dryRunHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace EC2
187} // namespace Aws
const Aws::Vector< Aws::String > & GetTransitGatewayIds() const
virtual const char * GetServiceRequestName() const override
DescribeTransitGatewaysRequest & WithNextToken(NextTokenT &&value)
DescribeTransitGatewaysRequest & AddTransitGatewayIds(TransitGatewayIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeTransitGatewaysRequest & AddFilters(FiltersT &&value)
DescribeTransitGatewaysRequest & WithDryRun(bool value)
DescribeTransitGatewaysRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeTransitGatewaysRequest & WithTransitGatewayIds(TransitGatewayIdsT &&value)
DescribeTransitGatewaysRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector