AWS SDK for C++  1.9.125
AWS SDK for C++
DescribeEgressOnlyInternetGatewaysRequest.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 "DescribeEgressOnlyInternetGateways"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline DescribeEgressOnlyInternetGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
77  inline const Aws::Vector<Aws::String>& GetEgressOnlyInternetGatewayIds() const{ return m_egressOnlyInternetGatewayIds; }
78 
82  inline bool EgressOnlyInternetGatewayIdsHasBeenSet() const { return m_egressOnlyInternetGatewayIdsHasBeenSet; }
83 
87  inline void SetEgressOnlyInternetGatewayIds(const Aws::Vector<Aws::String>& value) { m_egressOnlyInternetGatewayIdsHasBeenSet = true; m_egressOnlyInternetGatewayIds = value; }
88 
92  inline void SetEgressOnlyInternetGatewayIds(Aws::Vector<Aws::String>&& value) { m_egressOnlyInternetGatewayIdsHasBeenSet = true; m_egressOnlyInternetGatewayIds = std::move(value); }
93 
97  inline DescribeEgressOnlyInternetGatewaysRequest& WithEgressOnlyInternetGatewayIds(const Aws::Vector<Aws::String>& value) { SetEgressOnlyInternetGatewayIds(value); return *this;}
98 
102  inline DescribeEgressOnlyInternetGatewaysRequest& WithEgressOnlyInternetGatewayIds(Aws::Vector<Aws::String>&& value) { SetEgressOnlyInternetGatewayIds(std::move(value)); return *this;}
103 
107  inline DescribeEgressOnlyInternetGatewaysRequest& AddEgressOnlyInternetGatewayIds(const Aws::String& value) { m_egressOnlyInternetGatewayIdsHasBeenSet = true; m_egressOnlyInternetGatewayIds.push_back(value); return *this; }
108 
112  inline DescribeEgressOnlyInternetGatewaysRequest& AddEgressOnlyInternetGatewayIds(Aws::String&& value) { m_egressOnlyInternetGatewayIdsHasBeenSet = true; m_egressOnlyInternetGatewayIds.push_back(std::move(value)); return *this; }
113 
117  inline DescribeEgressOnlyInternetGatewaysRequest& AddEgressOnlyInternetGatewayIds(const char* value) { m_egressOnlyInternetGatewayIdsHasBeenSet = true; m_egressOnlyInternetGatewayIds.push_back(value); return *this; }
118 
119 
125  inline int GetMaxResults() const{ return m_maxResults; }
126 
132  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
133 
139  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
140 
146  inline DescribeEgressOnlyInternetGatewaysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
147 
148 
152  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
153 
157  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
158 
162  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
163 
167  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
168 
172  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
173 
177  inline DescribeEgressOnlyInternetGatewaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
178 
182  inline DescribeEgressOnlyInternetGatewaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
183 
187  inline DescribeEgressOnlyInternetGatewaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
188 
189 
201  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
202 
214  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
215 
227  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
228 
240  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
241 
253  inline DescribeEgressOnlyInternetGatewaysRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
254 
266  inline DescribeEgressOnlyInternetGatewaysRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
267 
279  inline DescribeEgressOnlyInternetGatewaysRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
280 
292  inline DescribeEgressOnlyInternetGatewaysRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
293 
294  private:
295 
296  bool m_dryRun;
297  bool m_dryRunHasBeenSet;
298 
299  Aws::Vector<Aws::String> m_egressOnlyInternetGatewayIds;
300  bool m_egressOnlyInternetGatewayIdsHasBeenSet;
301 
302  int m_maxResults;
303  bool m_maxResultsHasBeenSet;
304 
305  Aws::String m_nextToken;
306  bool m_nextTokenHasBeenSet;
307 
308  Aws::Vector<Filter> m_filters;
309  bool m_filtersHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace EC2
314 } // namespace Aws
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::WithDryRun
DescribeEgressOnlyInternetGatewaysRequest & WithDryRun(bool value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:71
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:240
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::WithNextToken
DescribeEgressOnlyInternetGatewaysRequest & WithNextToken(const Aws::String &value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:177
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::AddEgressOnlyInternetGatewayIds
DescribeEgressOnlyInternetGatewaysRequest & AddEgressOnlyInternetGatewayIds(Aws::String &&value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:112
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:63
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:139
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:125
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:157
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::WithMaxResults
DescribeEgressOnlyInternetGatewaysRequest & WithMaxResults(int value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:146
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::WithFilters
DescribeEgressOnlyInternetGatewaysRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:253
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::AddFilters
DescribeEgressOnlyInternetGatewaysRequest & AddFilters(const Filter &value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:279
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:152
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::AddEgressOnlyInternetGatewayIds
DescribeEgressOnlyInternetGatewaysRequest & AddEgressOnlyInternetGatewayIds(const Aws::String &value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:107
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:32
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::WithEgressOnlyInternetGatewayIds
DescribeEgressOnlyInternetGatewaysRequest & WithEgressOnlyInternetGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:97
EC2Request.h
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:201
AWSString.h
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:227
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::AddFilters
DescribeEgressOnlyInternetGatewaysRequest & AddFilters(Filter &&value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:292
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:214
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:24
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::DescribeEgressOnlyInternetGatewaysRequest
DescribeEgressOnlyInternetGatewaysRequest()
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SetEgressOnlyInternetGatewayIds
void SetEgressOnlyInternetGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:92
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::WithFilters
DescribeEgressOnlyInternetGatewaysRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:266
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:47
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:162
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::WithNextToken
DescribeEgressOnlyInternetGatewaysRequest & WithNextToken(const char *value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:187
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SetEgressOnlyInternetGatewayIds
void SetEgressOnlyInternetGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:87
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:172
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::WithNextToken
DescribeEgressOnlyInternetGatewaysRequest & WithNextToken(Aws::String &&value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:182
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::EgressOnlyInternetGatewayIdsHasBeenSet
bool EgressOnlyInternetGatewayIdsHasBeenSet() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:82
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:55
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:132
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::AddEgressOnlyInternetGatewayIds
DescribeEgressOnlyInternetGatewaysRequest & AddEgressOnlyInternetGatewayIds(const char *value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:117
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:167
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::GetEgressOnlyInternetGatewayIds
const Aws::Vector< Aws::String > & GetEgressOnlyInternetGatewayIds() const
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:77
EC2_EXPORTS.h
Aws::EC2::Model::DescribeEgressOnlyInternetGatewaysRequest::WithEgressOnlyInternetGatewayIds
DescribeEgressOnlyInternetGatewaysRequest & WithEgressOnlyInternetGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeEgressOnlyInternetGatewaysRequest.h:102