AWS SDK for C++  1.9.128
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 
110  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
111 
135  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
136 
160  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
161 
185  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
186 
210  inline DescribeTransitGatewayAttachmentsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
211 
235  inline DescribeTransitGatewayAttachmentsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
236 
260  inline DescribeTransitGatewayAttachmentsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
261 
285  inline DescribeTransitGatewayAttachmentsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
286 
287 
293  inline int GetMaxResults() const{ return m_maxResults; }
294 
300  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
301 
307  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
308 
314  inline DescribeTransitGatewayAttachmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
315 
316 
320  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
321 
325  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
326 
330  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
331 
335  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
336 
340  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
341 
345  inline DescribeTransitGatewayAttachmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
346 
350  inline DescribeTransitGatewayAttachmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
351 
355  inline DescribeTransitGatewayAttachmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
356 
357 
364  inline bool GetDryRun() const{ return m_dryRun; }
365 
372  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
373 
380  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
381 
388  inline DescribeTransitGatewayAttachmentsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
389 
390  private:
391 
392  Aws::Vector<Aws::String> m_transitGatewayAttachmentIds;
393  bool m_transitGatewayAttachmentIdsHasBeenSet;
394 
395  Aws::Vector<Filter> m_filters;
396  bool m_filtersHasBeenSet;
397 
398  int m_maxResults;
399  bool m_maxResultsHasBeenSet;
400 
401  Aws::String m_nextToken;
402  bool m_nextTokenHasBeenSet;
403 
404  bool m_dryRun;
405  bool m_dryRunHasBeenSet;
406  };
407 
408 } // namespace Model
409 } // namespace EC2
410 } // namespace Aws
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:307
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::AddFilters
DescribeTransitGatewayAttachmentsRequest & AddFilters(const Filter &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:260
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithMaxResults
DescribeTransitGatewayAttachmentsRequest & WithMaxResults(int value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:314
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:293
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:364
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:340
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:110
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:380
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:345
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:300
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:355
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:320
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:388
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithNextToken
DescribeTransitGatewayAttachmentsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:350
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:135
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:325
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:330
EC2Request.h
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeTransitGatewayAttachmentsRequest.h:372
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:160
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:335
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:185
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:235
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::WithFilters
DescribeTransitGatewayAttachmentsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:210
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTransitGatewayAttachmentsRequest::AddFilters
DescribeTransitGatewayAttachmentsRequest & AddFilters(Filter &&value)
Definition: DescribeTransitGatewayAttachmentsRequest.h:285