AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeTransitGatewayVpcAttachmentsRequest.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 "DescribeTransitGatewayVpcAttachments"; }
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 DescribeTransitGatewayVpcAttachmentsRequest& WithTransitGatewayAttachmentIds(const Aws::Vector<Aws::String>& value) { SetTransitGatewayAttachmentIds(value); return *this;}
65 
69  inline DescribeTransitGatewayVpcAttachmentsRequest& WithTransitGatewayAttachmentIds(Aws::Vector<Aws::String>&& value) { SetTransitGatewayAttachmentIds(std::move(value)); return *this;}
70 
74  inline DescribeTransitGatewayVpcAttachmentsRequest& AddTransitGatewayAttachmentIds(const Aws::String& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
75 
79  inline DescribeTransitGatewayVpcAttachmentsRequest& AddTransitGatewayAttachmentIds(Aws::String&& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeTransitGatewayVpcAttachmentsRequest& AddTransitGatewayAttachmentIds(const char* value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
85 
86 
99  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
100 
113  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
114 
127  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
128 
141  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
142 
155  inline DescribeTransitGatewayVpcAttachmentsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
156 
169  inline DescribeTransitGatewayVpcAttachmentsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
170 
183  inline DescribeTransitGatewayVpcAttachmentsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
184 
197  inline DescribeTransitGatewayVpcAttachmentsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
198 
199 
205  inline int GetMaxResults() const{ return m_maxResults; }
206 
212  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
213 
219  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
220 
226  inline DescribeTransitGatewayVpcAttachmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
227 
228 
232  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
233 
237  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
238 
242  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
243 
247  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
248 
252  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
253 
257  inline DescribeTransitGatewayVpcAttachmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
258 
262  inline DescribeTransitGatewayVpcAttachmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
263 
267  inline DescribeTransitGatewayVpcAttachmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
268 
269 
276  inline bool GetDryRun() const{ return m_dryRun; }
277 
284  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
285 
292  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
293 
300  inline DescribeTransitGatewayVpcAttachmentsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
301 
302  private:
303 
304  Aws::Vector<Aws::String> m_transitGatewayAttachmentIds;
305  bool m_transitGatewayAttachmentIdsHasBeenSet;
306 
307  Aws::Vector<Filter> m_filters;
308  bool m_filtersHasBeenSet;
309 
310  int m_maxResults;
311  bool m_maxResultsHasBeenSet;
312 
313  Aws::String m_nextToken;
314  bool m_nextTokenHasBeenSet;
315 
316  bool m_dryRun;
317  bool m_dryRunHasBeenSet;
318  };
319 
320 } // namespace Model
321 } // namespace EC2
322 } // namespace Aws
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::WithNextToken
DescribeTransitGatewayVpcAttachmentsRequest & WithNextToken(const char *value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:267
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::AddFilters
DescribeTransitGatewayVpcAttachmentsRequest & AddFilters(Filter &&value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:197
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::TransitGatewayAttachmentIdsHasBeenSet
bool TransitGatewayAttachmentIdsHasBeenSet() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:49
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::GetTransitGatewayAttachmentIds
const Aws::Vector< Aws::String > & GetTransitGatewayAttachmentIds() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:44
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::WithDryRun
DescribeTransitGatewayVpcAttachmentsRequest & WithDryRun(bool value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:300
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SetTransitGatewayAttachmentIds
void SetTransitGatewayAttachmentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:54
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:252
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:242
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::WithFilters
DescribeTransitGatewayVpcAttachmentsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:169
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:247
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:205
AWSVector.h
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::AddFilters
DescribeTransitGatewayVpcAttachmentsRequest & AddFilters(const Filter &value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:183
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::WithTransitGatewayAttachmentIds
DescribeTransitGatewayVpcAttachmentsRequest & WithTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:69
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SetTransitGatewayAttachmentIds
void SetTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:59
Filter.h
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:232
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:24
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::WithMaxResults
DescribeTransitGatewayVpcAttachmentsRequest & WithMaxResults(int value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:226
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::DescribeTransitGatewayVpcAttachmentsRequest
DescribeTransitGatewayVpcAttachmentsRequest()
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayVpcAttachmentsRequest & AddTransitGatewayAttachmentIds(const Aws::String &value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:74
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:113
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:141
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:284
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:219
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:32
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::WithNextToken
DescribeTransitGatewayVpcAttachmentsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:262
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:237
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayVpcAttachmentsRequest & AddTransitGatewayAttachmentIds(Aws::String &&value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:127
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:292
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:276
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::WithTransitGatewayAttachmentIds
DescribeTransitGatewayVpcAttachmentsRequest & WithTransitGatewayAttachmentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:64
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::WithNextToken
DescribeTransitGatewayVpcAttachmentsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:257
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:212
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayVpcAttachmentsRequest & AddTransitGatewayAttachmentIds(const char *value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:84
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:99
Aws::EC2::Model::DescribeTransitGatewayVpcAttachmentsRequest::WithFilters
DescribeTransitGatewayVpcAttachmentsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayVpcAttachmentsRequest.h:155