AWS SDK for C++  1.9.108
AWS SDK for C++
SearchTransitGatewayRoutesRequest.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 "SearchTransitGatewayRoutes"; }
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 SearchTransitGatewayRoutesRequest& WithTransitGatewayRouteTableId(const Aws::String& value) { SetTransitGatewayRouteTableId(value); return *this;}
70 
74  inline SearchTransitGatewayRoutesRequest& WithTransitGatewayRouteTableId(Aws::String&& value) { SetTransitGatewayRouteTableId(std::move(value)); return *this;}
75 
79  inline SearchTransitGatewayRoutesRequest& WithTransitGatewayRouteTableId(const char* value) { SetTransitGatewayRouteTableId(value); return *this;}
80 
81 
104  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
105 
128  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
129 
152  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
153 
176  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
177 
200  inline SearchTransitGatewayRoutesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
201 
224  inline SearchTransitGatewayRoutesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
225 
248  inline SearchTransitGatewayRoutesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
249 
272  inline SearchTransitGatewayRoutesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
273 
274 
278  inline int GetMaxResults() const{ return m_maxResults; }
279 
283  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
284 
288  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
289 
293  inline SearchTransitGatewayRoutesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
294 
295 
302  inline bool GetDryRun() const{ return m_dryRun; }
303 
310  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
311 
318  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
319 
326  inline SearchTransitGatewayRoutesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
327 
328  private:
329 
330  Aws::String m_transitGatewayRouteTableId;
331  bool m_transitGatewayRouteTableIdHasBeenSet;
332 
333  Aws::Vector<Filter> m_filters;
334  bool m_filtersHasBeenSet;
335 
336  int m_maxResults;
337  bool m_maxResultsHasBeenSet;
338 
339  bool m_dryRun;
340  bool m_dryRunHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace EC2
345 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::AddFilters
SearchTransitGatewayRoutesRequest & AddFilters(Filter &&value)
Definition: SearchTransitGatewayRoutesRequest.h:272
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: SearchTransitGatewayRoutesRequest.h:310
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::WithFilters
SearchTransitGatewayRoutesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: SearchTransitGatewayRoutesRequest.h:224
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: SearchTransitGatewayRoutesRequest.h:152
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(Aws::String &&value)
Definition: SearchTransitGatewayRoutesRequest.h:59
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::GetMaxResults
int GetMaxResults() const
Definition: SearchTransitGatewayRoutesRequest.h:278
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchTransitGatewayRoutesRequest.h:128
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: SearchTransitGatewayRoutesRequest.h:288
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::WithTransitGatewayRouteTableId
SearchTransitGatewayRoutesRequest & WithTransitGatewayRouteTableId(const char *value)
Definition: SearchTransitGatewayRoutesRequest.h:79
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchTransitGatewayRoutesRequest.h:32
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const Aws::String &value)
Definition: SearchTransitGatewayRoutesRequest.h:54
AWSVector.h
Filter.h
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: SearchTransitGatewayRoutesRequest.h:104
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::WithTransitGatewayRouteTableId
SearchTransitGatewayRoutesRequest & WithTransitGatewayRouteTableId(const Aws::String &value)
Definition: SearchTransitGatewayRoutesRequest.h:69
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: SearchTransitGatewayRoutesRequest.h:283
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::SetDryRun
void SetDryRun(bool value)
Definition: SearchTransitGatewayRoutesRequest.h:318
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::TransitGatewayRouteTableIdHasBeenSet
bool TransitGatewayRouteTableIdHasBeenSet() const
Definition: SearchTransitGatewayRoutesRequest.h:49
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::WithTransitGatewayRouteTableId
SearchTransitGatewayRoutesRequest & WithTransitGatewayRouteTableId(Aws::String &&value)
Definition: SearchTransitGatewayRoutesRequest.h:74
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::GetTransitGatewayRouteTableId
const Aws::String & GetTransitGatewayRouteTableId() const
Definition: SearchTransitGatewayRoutesRequest.h:44
EC2Request.h
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::SearchTransitGatewayRoutesRequest
SearchTransitGatewayRoutesRequest()
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::GetDryRun
bool GetDryRun() const
Definition: SearchTransitGatewayRoutesRequest.h:302
AWSString.h
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: SearchTransitGatewayRoutesRequest.h:176
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::WithMaxResults
SearchTransitGatewayRoutesRequest & WithMaxResults(int value)
Definition: SearchTransitGatewayRoutesRequest.h:293
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SearchTransitGatewayRoutesRequest
Definition: SearchTransitGatewayRoutesRequest.h:24
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const char *value)
Definition: SearchTransitGatewayRoutesRequest.h:64
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::WithFilters
SearchTransitGatewayRoutesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: SearchTransitGatewayRoutesRequest.h:200
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::AddFilters
SearchTransitGatewayRoutesRequest & AddFilters(const Filter &value)
Definition: SearchTransitGatewayRoutesRequest.h:248
EC2_EXPORTS.h
Aws::EC2::Model::SearchTransitGatewayRoutesRequest::WithDryRun
SearchTransitGatewayRoutesRequest & WithDryRun(bool value)
Definition: SearchTransitGatewayRoutesRequest.h:326