AWS SDK for C++  1.9.71
AWS SDK for C++
GetTransitGatewayPrefixListReferencesRequest.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 "GetTransitGatewayPrefixListReferences"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
45 
49  inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
50 
54  inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
55 
59  inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
60 
64  inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
65 
69  inline GetTransitGatewayPrefixListReferencesRequest& WithTransitGatewayRouteTableId(const Aws::String& value) { SetTransitGatewayRouteTableId(value); return *this;}
70 
74  inline GetTransitGatewayPrefixListReferencesRequest& WithTransitGatewayRouteTableId(Aws::String&& value) { SetTransitGatewayRouteTableId(std::move(value)); return *this;}
75 
79  inline GetTransitGatewayPrefixListReferencesRequest& WithTransitGatewayRouteTableId(const char* value) { SetTransitGatewayRouteTableId(value); return *this;}
80 
81 
98  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
99 
116  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
117 
134  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
135 
152  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
153 
170  inline GetTransitGatewayPrefixListReferencesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
171 
188  inline GetTransitGatewayPrefixListReferencesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
189 
206  inline GetTransitGatewayPrefixListReferencesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
207 
224  inline GetTransitGatewayPrefixListReferencesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
225 
226 
232  inline int GetMaxResults() const{ return m_maxResults; }
233 
239  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
240 
246  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
247 
253  inline GetTransitGatewayPrefixListReferencesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
254 
255 
259  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
260 
264  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
265 
269  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
270 
274  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
275 
279  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
280 
284  inline GetTransitGatewayPrefixListReferencesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
285 
289  inline GetTransitGatewayPrefixListReferencesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
290 
294  inline GetTransitGatewayPrefixListReferencesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
295 
296 
303  inline bool GetDryRun() const{ return m_dryRun; }
304 
311  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
312 
319  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
320 
327  inline GetTransitGatewayPrefixListReferencesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
328 
329  private:
330 
331  Aws::String m_transitGatewayRouteTableId;
332  bool m_transitGatewayRouteTableIdHasBeenSet;
333 
334  Aws::Vector<Filter> m_filters;
335  bool m_filtersHasBeenSet;
336 
337  int m_maxResults;
338  bool m_maxResultsHasBeenSet;
339 
340  Aws::String m_nextToken;
341  bool m_nextTokenHasBeenSet;
342 
343  bool m_dryRun;
344  bool m_dryRunHasBeenSet;
345  };
346 
347 } // namespace Model
348 } // namespace EC2
349 } // namespace Aws
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithTransitGatewayRouteTableId
GetTransitGatewayPrefixListReferencesRequest & WithTransitGatewayRouteTableId(const Aws::String &value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:69
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(Aws::String &&value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:59
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithTransitGatewayRouteTableId
GetTransitGatewayPrefixListReferencesRequest & WithTransitGatewayRouteTableId(Aws::String &&value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:74
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::GetTransitGatewayPrefixListReferencesRequest
GetTransitGatewayPrefixListReferencesRequest()
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::AddFilters
GetTransitGatewayPrefixListReferencesRequest & AddFilters(const Filter &value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:206
AWSVector.h
Filter.h
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:98
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithDryRun
GetTransitGatewayPrefixListReferencesRequest & WithDryRun(bool value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:327
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithTransitGatewayRouteTableId
GetTransitGatewayPrefixListReferencesRequest & WithTransitGatewayRouteTableId(const char *value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:79
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:259
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithFilters
GetTransitGatewayPrefixListReferencesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:188
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::AddFilters
GetTransitGatewayPrefixListReferencesRequest & AddFilters(Filter &&value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:224
EC2Request.h
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::TransitGatewayRouteTableIdHasBeenSet
bool TransitGatewayRouteTableIdHasBeenSet() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:49
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:311
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:134
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithNextToken
GetTransitGatewayPrefixListReferencesRequest & WithNextToken(const Aws::String &value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:284
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:116
AWSString.h
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithMaxResults
GetTransitGatewayPrefixListReferencesRequest & WithMaxResults(int value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:253
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:274
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithNextToken
GetTransitGatewayPrefixListReferencesRequest & WithNextToken(const char *value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:294
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::GetMaxResults
int GetMaxResults() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:232
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithFilters
GetTransitGatewayPrefixListReferencesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:170
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:152
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::GetTransitGatewayRouteTableId
const Aws::String & GetTransitGatewayRouteTableId() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:44
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:239
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:269
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:246
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::GetDryRun
bool GetDryRun() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:303
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTransitGatewayPrefixListReferencesRequest.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest
Definition: GetTransitGatewayPrefixListReferencesRequest.h:24
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetTransitGatewayPrefixListReferencesRequest.h:264
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const char *value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:64
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const Aws::String &value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:54
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::WithNextToken
GetTransitGatewayPrefixListReferencesRequest & WithNextToken(Aws::String &&value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:289
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetDryRun
void SetDryRun(bool value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:319
EC2_EXPORTS.h
Aws::EC2::Model::GetTransitGatewayPrefixListReferencesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetTransitGatewayPrefixListReferencesRequest.h:279