AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeTransitGatewayAttachmentsRequest.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 "DescribeTransitGatewayAttachments"; }
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::Vector<Aws::String>& GetTransitGatewayAttachmentIds() const{ return m_transitGatewayAttachmentIds; }
45 
49  inline bool TransitGatewayAttachmentIdsHasBeenSet() const { return m_transitGatewayAttachmentIdsHasBeenSet; }
50 
54  inline void SetTransitGatewayAttachmentIds(const Aws::Vector<Aws::String>& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds = value; }
55 
59  inline void SetTransitGatewayAttachmentIds(Aws::Vector<Aws::String>&& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds = std::move(value); }
60 
64  inline DescribeTransitGatewayAttachmentsRequest& WithTransitGatewayAttachmentIds(const Aws::Vector<Aws::String>& value) { SetTransitGatewayAttachmentIds(value); return *this;}
65 
69  inline DescribeTransitGatewayAttachmentsRequest& WithTransitGatewayAttachmentIds(Aws::Vector<Aws::String>&& value) { SetTransitGatewayAttachmentIds(std::move(value)); return *this;}
70 
74  inline DescribeTransitGatewayAttachmentsRequest& AddTransitGatewayAttachmentIds(const Aws::String& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
75 
79  inline DescribeTransitGatewayAttachmentsRequest& AddTransitGatewayAttachmentIds(Aws::String&& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeTransitGatewayAttachmentsRequest& AddTransitGatewayAttachmentIds(const char* value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
85 
86 
109  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
110 
133  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
134 
157  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
158 
181  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
182 
205  inline DescribeTransitGatewayAttachmentsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
206 
229  inline DescribeTransitGatewayAttachmentsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
230 
253  inline DescribeTransitGatewayAttachmentsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
254 
277  inline DescribeTransitGatewayAttachmentsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
278 
279 
285  inline int GetMaxResults() const{ return m_maxResults; }
286 
292  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
293 
299  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
300 
306  inline DescribeTransitGatewayAttachmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
307 
308 
312  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
313 
317  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
318 
322  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
323 
327  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
328 
332  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
333 
337  inline DescribeTransitGatewayAttachmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
338 
342  inline DescribeTransitGatewayAttachmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
343 
347  inline DescribeTransitGatewayAttachmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
348 
349 
356  inline bool GetDryRun() const{ return m_dryRun; }
357 
364  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
365 
372  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
373 
380  inline DescribeTransitGatewayAttachmentsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
381 
382  private:
383 
384  Aws::Vector<Aws::String> m_transitGatewayAttachmentIds;
385  bool m_transitGatewayAttachmentIdsHasBeenSet;
386 
387  Aws::Vector<Filter> m_filters;
388  bool m_filtersHasBeenSet;
389 
390  int m_maxResults;
391  bool m_maxResultsHasBeenSet;
392 
393  Aws::String m_nextToken;
394  bool m_nextTokenHasBeenSet;
395 
396  bool m_dryRun;
397  bool m_dryRunHasBeenSet;
398  };
399 
400 } // namespace Model
401 } // namespace EC2
402 } // namespace Aws
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:299
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::AddFilters
DescribeTransitGatewayAttachmentsRequest & AddFilters(const Filter &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:253
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithMaxResults
DescribeTransitGatewayAttachmentsRequest & WithMaxResults(int value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:306
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:285
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:356
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:332
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:109
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:372
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetTransitGatewayAttachmentIds
void SetTransitGatewayAttachmentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:54
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::DescribeTransitGatewayAttachmentsRequest
DescribeTransitGatewayAttachmentsRequest()
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithNextToken
DescribeTransitGatewayAttachmentsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:337
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:292
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithTransitGatewayAttachmentIds
DescribeTransitGatewayAttachmentsRequest & WithTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:69
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithNextToken
DescribeTransitGatewayAttachmentsRequest & WithNextToken(const char *value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:347
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::TransitGatewayAttachmentIdsHasBeenSet
bool TransitGatewayAttachmentIdsHasBeenSet() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:49
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:312
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayAttachmentsRequest & AddTransitGatewayAttachmentIds(const char *value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:84
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithDryRun
DescribeTransitGatewayAttachmentsRequest & WithDryRun(bool value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:380
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithNextToken
DescribeTransitGatewayAttachmentsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:342
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:133
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:317
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayAttachmentsRequest & AddTransitGatewayAttachmentIds(const Aws::String &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:74
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:322
EC2Request.h
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:364
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:157
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetTransitGatewayAttachmentIds
void SetTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:59
AWSString.h
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:327
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTransitGatewayAttachmentsRequest.h:32
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithTransitGatewayAttachmentIds
DescribeTransitGatewayAttachmentsRequest & WithTransitGatewayAttachmentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:64
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:181
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayAttachmentsRequest & AddTransitGatewayAttachmentIds(Aws::String &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest
Definition: DescribeTransitGatewayAttachmentsRequest.h:24
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::GetTransitGatewayAttachmentIds
const Aws::Vector< Aws::String > & GetTransitGatewayAttachmentIds() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:44
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::DescribeTransitGatewayAttachmentsRequest::WithFilters
DescribeTransitGatewayAttachmentsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:229
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithFilters
DescribeTransitGatewayAttachmentsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:205
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::AddFilters
DescribeTransitGatewayAttachmentsRequest & AddFilters(Filter &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:277