AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeTransitGatewayPeeringAttachmentsRequest.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 "DescribeTransitGatewayPeeringAttachments"; }
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 DescribeTransitGatewayPeeringAttachmentsRequest& WithTransitGatewayAttachmentIds(const Aws::Vector<Aws::String>& value) { SetTransitGatewayAttachmentIds(value); return *this;}
65 
69  inline DescribeTransitGatewayPeeringAttachmentsRequest& WithTransitGatewayAttachmentIds(Aws::Vector<Aws::String>&& value) { SetTransitGatewayAttachmentIds(std::move(value)); return *this;}
70 
74  inline DescribeTransitGatewayPeeringAttachmentsRequest& AddTransitGatewayAttachmentIds(const Aws::String& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
75 
79  inline DescribeTransitGatewayPeeringAttachmentsRequest& AddTransitGatewayAttachmentIds(Aws::String&& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeTransitGatewayPeeringAttachmentsRequest& AddTransitGatewayAttachmentIds(const char* value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
85 
86 
108  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
109 
131  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
132 
154  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
155 
177  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
178 
200  inline DescribeTransitGatewayPeeringAttachmentsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
201 
223  inline DescribeTransitGatewayPeeringAttachmentsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
224 
246  inline DescribeTransitGatewayPeeringAttachmentsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
247 
269  inline DescribeTransitGatewayPeeringAttachmentsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
270 
271 
277  inline int GetMaxResults() const{ return m_maxResults; }
278 
284  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
285 
291  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
292 
298  inline DescribeTransitGatewayPeeringAttachmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
299 
300 
304  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
305 
309  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
310 
314  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
315 
319  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
320 
324  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
325 
329  inline DescribeTransitGatewayPeeringAttachmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
330 
334  inline DescribeTransitGatewayPeeringAttachmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
335 
339  inline DescribeTransitGatewayPeeringAttachmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
340 
341 
348  inline bool GetDryRun() const{ return m_dryRun; }
349 
356  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
357 
364  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
365 
372  inline DescribeTransitGatewayPeeringAttachmentsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
373 
374  private:
375 
376  Aws::Vector<Aws::String> m_transitGatewayAttachmentIds;
377  bool m_transitGatewayAttachmentIdsHasBeenSet;
378 
379  Aws::Vector<Filter> m_filters;
380  bool m_filtersHasBeenSet;
381 
382  int m_maxResults;
383  bool m_maxResultsHasBeenSet;
384 
385  Aws::String m_nextToken;
386  bool m_nextTokenHasBeenSet;
387 
388  bool m_dryRun;
389  bool m_dryRunHasBeenSet;
390  };
391 
392 } // namespace Model
393 } // namespace EC2
394 } // namespace Aws
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:177
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:356
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayPeeringAttachmentsRequest & AddTransitGatewayAttachmentIds(const char *value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:84
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:348
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:154
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:319
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SetTransitGatewayAttachmentIds
void SetTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:59
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::WithFilters
DescribeTransitGatewayPeeringAttachmentsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:223
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:284
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:32
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:364
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:108
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::WithNextToken
DescribeTransitGatewayPeeringAttachmentsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:329
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::WithTransitGatewayAttachmentIds
DescribeTransitGatewayPeeringAttachmentsRequest & WithTransitGatewayAttachmentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:64
AWSVector.h
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::WithMaxResults
DescribeTransitGatewayPeeringAttachmentsRequest & WithMaxResults(int value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:298
Filter.h
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::AddFilters
DescribeTransitGatewayPeeringAttachmentsRequest & AddFilters(Filter &&value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:269
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayPeeringAttachmentsRequest & AddTransitGatewayAttachmentIds(Aws::String &&value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:79
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:277
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::TransitGatewayAttachmentIdsHasBeenSet
bool TransitGatewayAttachmentIdsHasBeenSet() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:49
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::WithTransitGatewayAttachmentIds
DescribeTransitGatewayPeeringAttachmentsRequest & WithTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:69
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::WithFilters
DescribeTransitGatewayPeeringAttachmentsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:200
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::WithDryRun
DescribeTransitGatewayPeeringAttachmentsRequest & WithDryRun(bool value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:372
EC2Request.h
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayPeeringAttachmentsRequest & AddTransitGatewayAttachmentIds(const Aws::String &value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:74
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:314
AWSString.h
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:324
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SetTransitGatewayAttachmentIds
void SetTransitGatewayAttachmentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:54
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:24
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::DescribeTransitGatewayPeeringAttachmentsRequest
DescribeTransitGatewayPeeringAttachmentsRequest()
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::GetTransitGatewayAttachmentIds
const Aws::Vector< Aws::String > & GetTransitGatewayAttachmentIds() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:44
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:131
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::AddFilters
DescribeTransitGatewayPeeringAttachmentsRequest & AddFilters(const Filter &value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:246
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:291
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::DescribeTransitGatewayPeeringAttachmentsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:304
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::WithNextToken
DescribeTransitGatewayPeeringAttachmentsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:334
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::WithNextToken
DescribeTransitGatewayPeeringAttachmentsRequest & WithNextToken(const char *value)
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:339
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTransitGatewayPeeringAttachmentsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTransitGatewayPeeringAttachmentsRequest.h:309