AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeLocalGatewaysRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeLocalGateways"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
52  inline const Aws::Vector<Aws::String>& GetLocalGatewayIds() const{ return m_localGatewayIds; }
53 
65  inline bool LocalGatewayIdsHasBeenSet() const { return m_localGatewayIdsHasBeenSet; }
66 
78  inline void SetLocalGatewayIds(const Aws::Vector<Aws::String>& value) { m_localGatewayIdsHasBeenSet = true; m_localGatewayIds = value; }
79 
91  inline void SetLocalGatewayIds(Aws::Vector<Aws::String>&& value) { m_localGatewayIdsHasBeenSet = true; m_localGatewayIds = std::move(value); }
92 
104  inline DescribeLocalGatewaysRequest& WithLocalGatewayIds(const Aws::Vector<Aws::String>& value) { SetLocalGatewayIds(value); return *this;}
105 
117  inline DescribeLocalGatewaysRequest& WithLocalGatewayIds(Aws::Vector<Aws::String>&& value) { SetLocalGatewayIds(std::move(value)); return *this;}
118 
130  inline DescribeLocalGatewaysRequest& AddLocalGatewayIds(const Aws::String& value) { m_localGatewayIdsHasBeenSet = true; m_localGatewayIds.push_back(value); return *this; }
131 
143  inline DescribeLocalGatewaysRequest& AddLocalGatewayIds(Aws::String&& value) { m_localGatewayIdsHasBeenSet = true; m_localGatewayIds.push_back(std::move(value)); return *this; }
144 
156  inline DescribeLocalGatewaysRequest& AddLocalGatewayIds(const char* value) { m_localGatewayIdsHasBeenSet = true; m_localGatewayIds.push_back(value); return *this; }
157 
158 
162  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
163 
167  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
168 
172  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
173 
177  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
178 
182  inline DescribeLocalGatewaysRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
183 
187  inline DescribeLocalGatewaysRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
188 
192  inline DescribeLocalGatewaysRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
193 
197  inline DescribeLocalGatewaysRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
198 
199 
205  inline int GetMaxResults() const{ return m_maxResults; }
206 
212  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
213 
219  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
220 
226  inline DescribeLocalGatewaysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
227 
228 
232  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
233 
237  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
238 
242  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
243 
247  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
248 
252  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
253 
257  inline DescribeLocalGatewaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
258 
262  inline DescribeLocalGatewaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
263 
267  inline DescribeLocalGatewaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
268 
269 
276  inline bool GetDryRun() const{ return m_dryRun; }
277 
284  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
285 
292  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
293 
300  inline DescribeLocalGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
301 
302  private:
303 
304  Aws::Vector<Aws::String> m_localGatewayIds;
305  bool m_localGatewayIdsHasBeenSet;
306 
307  Aws::Vector<Filter> m_filters;
308  bool m_filtersHasBeenSet;
309 
310  int m_maxResults;
311  bool m_maxResultsHasBeenSet;
312 
313  Aws::String m_nextToken;
314  bool m_nextTokenHasBeenSet;
315 
316  bool m_dryRun;
317  bool m_dryRunHasBeenSet;
318  };
319 
320 } // namespace Model
321 } // namespace EC2
322 } // namespace Aws
Aws::EC2::Model::DescribeLocalGatewaysRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeLocalGatewaysRequest.h:237
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeLocalGatewaysRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeLocalGatewaysRequest.h:162
Aws::EC2::Model::DescribeLocalGatewaysRequest::WithMaxResults
DescribeLocalGatewaysRequest & WithMaxResults(int value)
Definition: DescribeLocalGatewaysRequest.h:226
Aws::EC2::Model::DescribeLocalGatewaysRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeLocalGatewaysRequest.h:247
Aws::EC2::Model::DescribeLocalGatewaysRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeLocalGatewaysRequest.h:232
Aws::EC2::Model::DescribeLocalGatewaysRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeLocalGatewaysRequest::WithLocalGatewayIds
DescribeLocalGatewaysRequest & WithLocalGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeLocalGatewaysRequest.h:117
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeLocalGatewaysRequest::AddFilters
DescribeLocalGatewaysRequest & AddFilters(const Filter &value)
Definition: DescribeLocalGatewaysRequest.h:192
Aws::EC2::Model::DescribeLocalGatewaysRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeLocalGatewaysRequest.h:276
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeLocalGatewaysRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeLocalGatewaysRequest.h:292
AWSVector.h
Aws::EC2::Model::DescribeLocalGatewaysRequest::GetLocalGatewayIds
const Aws::Vector< Aws::String > & GetLocalGatewayIds() const
Definition: DescribeLocalGatewaysRequest.h:52
Filter.h
Aws::EC2::Model::DescribeLocalGatewaysRequest::WithFilters
DescribeLocalGatewaysRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeLocalGatewaysRequest.h:187
Aws::EC2::Model::DescribeLocalGatewaysRequest::AddLocalGatewayIds
DescribeLocalGatewaysRequest & AddLocalGatewayIds(const Aws::String &value)
Definition: DescribeLocalGatewaysRequest.h:130
Aws::EC2::Model::DescribeLocalGatewaysRequest::WithFilters
DescribeLocalGatewaysRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeLocalGatewaysRequest.h:182
Aws::EC2::Model::DescribeLocalGatewaysRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeLocalGatewaysRequest.h:252
Aws::EC2::Model::DescribeLocalGatewaysRequest::WithDryRun
DescribeLocalGatewaysRequest & WithDryRun(bool value)
Definition: DescribeLocalGatewaysRequest.h:300
Aws::EC2::Model::DescribeLocalGatewaysRequest::WithNextToken
DescribeLocalGatewaysRequest & WithNextToken(const Aws::String &value)
Definition: DescribeLocalGatewaysRequest.h:257
Aws::EC2::Model::DescribeLocalGatewaysRequest::DescribeLocalGatewaysRequest
DescribeLocalGatewaysRequest()
Aws::EC2::Model::DescribeLocalGatewaysRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeLocalGatewaysRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeLocalGatewaysRequest.h:284
Aws::EC2::Model::DescribeLocalGatewaysRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeLocalGatewaysRequest.h:177
Aws::EC2::Model::DescribeLocalGatewaysRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeLocalGatewaysRequest.h:205
Aws::EC2::Model::DescribeLocalGatewaysRequest::AddLocalGatewayIds
DescribeLocalGatewaysRequest & AddLocalGatewayIds(const char *value)
Definition: DescribeLocalGatewaysRequest.h:156
Aws::EC2::Model::DescribeLocalGatewaysRequest::LocalGatewayIdsHasBeenSet
bool LocalGatewayIdsHasBeenSet() const
Definition: DescribeLocalGatewaysRequest.h:65
Aws::EC2::Model::DescribeLocalGatewaysRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeLocalGatewaysRequest.h:212
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeLocalGatewaysRequest::AddLocalGatewayIds
DescribeLocalGatewaysRequest & AddLocalGatewayIds(Aws::String &&value)
Definition: DescribeLocalGatewaysRequest.h:143
Aws::EC2::Model::DescribeLocalGatewaysRequest::SetLocalGatewayIds
void SetLocalGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeLocalGatewaysRequest.h:78
Aws::EC2::Model::DescribeLocalGatewaysRequest
Definition: DescribeLocalGatewaysRequest.h:24
Aws::EC2::Model::DescribeLocalGatewaysRequest::WithNextToken
DescribeLocalGatewaysRequest & WithNextToken(const char *value)
Definition: DescribeLocalGatewaysRequest.h:267
Aws::EC2::Model::DescribeLocalGatewaysRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeLocalGatewaysRequest.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeLocalGatewaysRequest::AddFilters
DescribeLocalGatewaysRequest & AddFilters(Filter &&value)
Definition: DescribeLocalGatewaysRequest.h:197
Aws::EC2::Model::DescribeLocalGatewaysRequest::WithLocalGatewayIds
DescribeLocalGatewaysRequest & WithLocalGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeLocalGatewaysRequest.h:104
Aws::EC2::Model::DescribeLocalGatewaysRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeLocalGatewaysRequest.h:219
Aws::EC2::Model::DescribeLocalGatewaysRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeLocalGatewaysRequest.h:167
EC2_EXPORTS.h
Aws::EC2::Model::DescribeLocalGatewaysRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeLocalGatewaysRequest.h:242
Aws::EC2::Model::DescribeLocalGatewaysRequest::WithNextToken
DescribeLocalGatewaysRequest & WithNextToken(Aws::String &&value)
Definition: DescribeLocalGatewaysRequest.h:262
Aws::EC2::Model::DescribeLocalGatewaysRequest::SetLocalGatewayIds
void SetLocalGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeLocalGatewaysRequest.h:91
Aws::EC2::Model::DescribeLocalGatewaysRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeLocalGatewaysRequest.h:172