AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeInternetGatewaysRequest.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 "DescribeInternetGateways"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
58  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
59 
77  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
78 
96  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
97 
115  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
116 
134  inline DescribeInternetGatewaysRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
135 
153  inline DescribeInternetGatewaysRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
154 
172  inline DescribeInternetGatewaysRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
173 
191  inline DescribeInternetGatewaysRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
192 
193 
200  inline bool GetDryRun() const{ return m_dryRun; }
201 
208  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
209 
216  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
217 
224  inline DescribeInternetGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
225 
226 
231  inline const Aws::Vector<Aws::String>& GetInternetGatewayIds() const{ return m_internetGatewayIds; }
232 
237  inline bool InternetGatewayIdsHasBeenSet() const { return m_internetGatewayIdsHasBeenSet; }
238 
243  inline void SetInternetGatewayIds(const Aws::Vector<Aws::String>& value) { m_internetGatewayIdsHasBeenSet = true; m_internetGatewayIds = value; }
244 
249  inline void SetInternetGatewayIds(Aws::Vector<Aws::String>&& value) { m_internetGatewayIdsHasBeenSet = true; m_internetGatewayIds = std::move(value); }
250 
255  inline DescribeInternetGatewaysRequest& WithInternetGatewayIds(const Aws::Vector<Aws::String>& value) { SetInternetGatewayIds(value); return *this;}
256 
261  inline DescribeInternetGatewaysRequest& WithInternetGatewayIds(Aws::Vector<Aws::String>&& value) { SetInternetGatewayIds(std::move(value)); return *this;}
262 
267  inline DescribeInternetGatewaysRequest& AddInternetGatewayIds(const Aws::String& value) { m_internetGatewayIdsHasBeenSet = true; m_internetGatewayIds.push_back(value); return *this; }
268 
273  inline DescribeInternetGatewaysRequest& AddInternetGatewayIds(Aws::String&& value) { m_internetGatewayIdsHasBeenSet = true; m_internetGatewayIds.push_back(std::move(value)); return *this; }
274 
279  inline DescribeInternetGatewaysRequest& AddInternetGatewayIds(const char* value) { m_internetGatewayIdsHasBeenSet = true; m_internetGatewayIds.push_back(value); return *this; }
280 
281 
285  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
286 
290  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
291 
295  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
296 
300  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
301 
305  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
306 
310  inline DescribeInternetGatewaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
311 
315  inline DescribeInternetGatewaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
316 
320  inline DescribeInternetGatewaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
321 
322 
328  inline int GetMaxResults() const{ return m_maxResults; }
329 
335  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
336 
342  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
343 
349  inline DescribeInternetGatewaysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
350 
351  private:
352 
353  Aws::Vector<Filter> m_filters;
354  bool m_filtersHasBeenSet;
355 
356  bool m_dryRun;
357  bool m_dryRunHasBeenSet;
358 
359  Aws::Vector<Aws::String> m_internetGatewayIds;
360  bool m_internetGatewayIdsHasBeenSet;
361 
362  Aws::String m_nextToken;
363  bool m_nextTokenHasBeenSet;
364 
365  int m_maxResults;
366  bool m_maxResultsHasBeenSet;
367  };
368 
369 } // namespace Model
370 } // namespace EC2
371 } // namespace Aws
Aws::EC2::Model::DescribeInternetGatewaysRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeInternetGatewaysRequest.h:77
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeInternetGatewaysRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeInternetGatewaysRequest.h:295
Aws::EC2::Model::DescribeInternetGatewaysRequest::WithFilters
DescribeInternetGatewaysRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeInternetGatewaysRequest.h:134
Aws::EC2::Model::DescribeInternetGatewaysRequest::AddFilters
DescribeInternetGatewaysRequest & AddFilters(Filter &&value)
Definition: DescribeInternetGatewaysRequest.h:191
Aws::EC2::Model::DescribeInternetGatewaysRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeInternetGatewaysRequest.h:96
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeInternetGatewaysRequest::WithInternetGatewayIds
DescribeInternetGatewaysRequest & WithInternetGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeInternetGatewaysRequest.h:255
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeInternetGatewaysRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeInternetGatewaysRequest.h:328
Aws::EC2::Model::DescribeInternetGatewaysRequest::AddInternetGatewayIds
DescribeInternetGatewaysRequest & AddInternetGatewayIds(const Aws::String &value)
Definition: DescribeInternetGatewaysRequest.h:267
Aws::EC2::Model::DescribeInternetGatewaysRequest::WithNextToken
DescribeInternetGatewaysRequest & WithNextToken(const Aws::String &value)
Definition: DescribeInternetGatewaysRequest.h:310
Aws::EC2::Model::DescribeInternetGatewaysRequest::SetInternetGatewayIds
void SetInternetGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeInternetGatewaysRequest.h:249
Aws::EC2::Model::DescribeInternetGatewaysRequest::InternetGatewayIdsHasBeenSet
bool InternetGatewayIdsHasBeenSet() const
Definition: DescribeInternetGatewaysRequest.h:237
Aws::EC2::Model::DescribeInternetGatewaysRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeInternetGatewaysRequest.h:305
Aws::EC2::Model::DescribeInternetGatewaysRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeInternetGatewaysRequest.h:208
Aws::EC2::Model::DescribeInternetGatewaysRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeInternetGatewaysRequest.h:200
EC2Request.h
Aws::EC2::Model::DescribeInternetGatewaysRequest::WithDryRun
DescribeInternetGatewaysRequest & WithDryRun(bool value)
Definition: DescribeInternetGatewaysRequest.h:224
Aws::EC2::Model::DescribeInternetGatewaysRequest::WithNextToken
DescribeInternetGatewaysRequest & WithNextToken(const char *value)
Definition: DescribeInternetGatewaysRequest.h:320
Aws::EC2::Model::DescribeInternetGatewaysRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeInternetGatewaysRequest.h:335
AWSString.h
Aws::EC2::Model::DescribeInternetGatewaysRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeInternetGatewaysRequest.h:342
Aws::EC2::Model::DescribeInternetGatewaysRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeInternetGatewaysRequest.h:285
Aws::EC2::Model::DescribeInternetGatewaysRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeInternetGatewaysRequest::DescribeInternetGatewaysRequest
DescribeInternetGatewaysRequest()
Aws::EC2::Model::DescribeInternetGatewaysRequest::GetInternetGatewayIds
const Aws::Vector< Aws::String > & GetInternetGatewayIds() const
Definition: DescribeInternetGatewaysRequest.h:231
Aws::EC2::Model::DescribeInternetGatewaysRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeInternetGatewaysRequest.h:300
Aws::EC2::Model::DescribeInternetGatewaysRequest::WithInternetGatewayIds
DescribeInternetGatewaysRequest & WithInternetGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeInternetGatewaysRequest.h:261
Aws::EC2::Model::DescribeInternetGatewaysRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeInternetGatewaysRequest.h:115
Aws::EC2::Model::DescribeInternetGatewaysRequest::AddFilters
DescribeInternetGatewaysRequest & AddFilters(const Filter &value)
Definition: DescribeInternetGatewaysRequest.h:172
Aws::EC2::Model::DescribeInternetGatewaysRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeInternetGatewaysRequest.h:32
Aws::EC2::Model::DescribeInternetGatewaysRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeInternetGatewaysRequest::WithNextToken
DescribeInternetGatewaysRequest & WithNextToken(Aws::String &&value)
Definition: DescribeInternetGatewaysRequest.h:315
Aws::EC2::Model::DescribeInternetGatewaysRequest::WithFilters
DescribeInternetGatewaysRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeInternetGatewaysRequest.h:153
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeInternetGatewaysRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeInternetGatewaysRequest.h:290
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeInternetGatewaysRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeInternetGatewaysRequest.h:216
Aws::EC2::Model::DescribeInternetGatewaysRequest::AddInternetGatewayIds
DescribeInternetGatewaysRequest & AddInternetGatewayIds(const char *value)
Definition: DescribeInternetGatewaysRequest.h:279
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeInternetGatewaysRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeInternetGatewaysRequest.h:58
Aws::EC2::Model::DescribeInternetGatewaysRequest
Definition: DescribeInternetGatewaysRequest.h:24
EC2_EXPORTS.h
Aws::EC2::Model::DescribeInternetGatewaysRequest::WithMaxResults
DescribeInternetGatewaysRequest & WithMaxResults(int value)
Definition: DescribeInternetGatewaysRequest.h:349
Aws::EC2::Model::DescribeInternetGatewaysRequest::AddInternetGatewayIds
DescribeInternetGatewaysRequest & AddInternetGatewayIds(Aws::String &&value)
Definition: DescribeInternetGatewaysRequest.h:273
Aws::EC2::Model::DescribeInternetGatewaysRequest::SetInternetGatewayIds
void SetInternetGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeInternetGatewaysRequest.h:243