AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeTransitGatewayConnectsRequest.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 "DescribeTransitGatewayConnects"; }
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 DescribeTransitGatewayConnectsRequest& WithTransitGatewayAttachmentIds(const Aws::Vector<Aws::String>& value) { SetTransitGatewayAttachmentIds(value); return *this;}
65 
69  inline DescribeTransitGatewayConnectsRequest& WithTransitGatewayAttachmentIds(Aws::Vector<Aws::String>&& value) { SetTransitGatewayAttachmentIds(std::move(value)); return *this;}
70 
74  inline DescribeTransitGatewayConnectsRequest& AddTransitGatewayAttachmentIds(const Aws::String& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
75 
79  inline DescribeTransitGatewayConnectsRequest& AddTransitGatewayAttachmentIds(Aws::String&& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeTransitGatewayConnectsRequest& AddTransitGatewayAttachmentIds(const char* value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
85 
86 
103  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
104 
121  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
122 
139  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
140 
157  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
158 
175  inline DescribeTransitGatewayConnectsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
176 
193  inline DescribeTransitGatewayConnectsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
194 
211  inline DescribeTransitGatewayConnectsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
212 
229  inline DescribeTransitGatewayConnectsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
230 
231 
237  inline int GetMaxResults() const{ return m_maxResults; }
238 
244  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
245 
251  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
252 
258  inline DescribeTransitGatewayConnectsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
259 
260 
264  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
265 
269  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
270 
274  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
275 
279  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
280 
284  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
285 
289  inline DescribeTransitGatewayConnectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
290 
294  inline DescribeTransitGatewayConnectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
295 
299  inline DescribeTransitGatewayConnectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
300 
301 
308  inline bool GetDryRun() const{ return m_dryRun; }
309 
316  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
317 
324  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
325 
332  inline DescribeTransitGatewayConnectsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
333 
334  private:
335 
336  Aws::Vector<Aws::String> m_transitGatewayAttachmentIds;
337  bool m_transitGatewayAttachmentIdsHasBeenSet;
338 
339  Aws::Vector<Filter> m_filters;
340  bool m_filtersHasBeenSet;
341 
342  int m_maxResults;
343  bool m_maxResultsHasBeenSet;
344 
345  Aws::String m_nextToken;
346  bool m_nextTokenHasBeenSet;
347 
348  bool m_dryRun;
349  bool m_dryRunHasBeenSet;
350  };
351 
352 } // namespace Model
353 } // namespace EC2
354 } // namespace Aws
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::AddFilters
DescribeTransitGatewayConnectsRequest & AddFilters(const Filter &value)
Definition: DescribeTransitGatewayConnectsRequest.h:211
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeTransitGatewayConnectsRequest.h:324
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTransitGatewayConnectsRequest.h:269
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayConnectsRequest.h:139
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::WithFilters
DescribeTransitGatewayConnectsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayConnectsRequest.h:193
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeTransitGatewayConnectsRequest.h:308
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::WithNextToken
DescribeTransitGatewayConnectsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayConnectsRequest.h:294
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeTransitGatewayConnectsRequest.h:237
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::GetTransitGatewayAttachmentIds
const Aws::Vector< Aws::String > & GetTransitGatewayAttachmentIds() const
Definition: DescribeTransitGatewayConnectsRequest.h:44
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeTransitGatewayConnectsRequest.h:251
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayConnectsRequest & AddTransitGatewayAttachmentIds(Aws::String &&value)
Definition: DescribeTransitGatewayConnectsRequest.h:79
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeTransitGatewayConnectsRequest.h:103
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::WithTransitGatewayAttachmentIds
DescribeTransitGatewayConnectsRequest & WithTransitGatewayAttachmentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayConnectsRequest.h:64
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::DescribeTransitGatewayConnectsRequest
DescribeTransitGatewayConnectsRequest()
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SetTransitGatewayAttachmentIds
void SetTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayConnectsRequest.h:59
EC2Request.h
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTransitGatewayConnectsRequest.h:264
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::WithTransitGatewayAttachmentIds
DescribeTransitGatewayConnectsRequest & WithTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayConnectsRequest.h:69
AWSString.h
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayConnectsRequest & AddTransitGatewayAttachmentIds(const Aws::String &value)
Definition: DescribeTransitGatewayConnectsRequest.h:74
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeTransitGatewayConnectsRequest.h:244
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::TransitGatewayAttachmentIdsHasBeenSet
bool TransitGatewayAttachmentIdsHasBeenSet() const
Definition: DescribeTransitGatewayConnectsRequest.h:49
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeTransitGatewayConnectsRequest.h:316
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::WithDryRun
DescribeTransitGatewayConnectsRequest & WithDryRun(bool value)
Definition: DescribeTransitGatewayConnectsRequest.h:332
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::WithNextToken
DescribeTransitGatewayConnectsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayConnectsRequest.h:289
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTransitGatewayConnectsRequest.h:284
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayConnectsRequest.h:157
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::WithFilters
DescribeTransitGatewayConnectsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayConnectsRequest.h:175
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest
Definition: DescribeTransitGatewayConnectsRequest.h:24
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayConnectsRequest.h:279
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayConnectsRequest.h:274
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::WithMaxResults
DescribeTransitGatewayConnectsRequest & WithMaxResults(int value)
Definition: DescribeTransitGatewayConnectsRequest.h:258
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::AddTransitGatewayAttachmentIds
DescribeTransitGatewayConnectsRequest & AddTransitGatewayAttachmentIds(const char *value)
Definition: DescribeTransitGatewayConnectsRequest.h:84
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeTransitGatewayConnectsRequest.h:121
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::AddFilters
DescribeTransitGatewayConnectsRequest & AddFilters(Filter &&value)
Definition: DescribeTransitGatewayConnectsRequest.h:229
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTransitGatewayConnectsRequest.h:32
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::SetTransitGatewayAttachmentIds
void SetTransitGatewayAttachmentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayConnectsRequest.h:54
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeTransitGatewayConnectsRequest::WithNextToken
DescribeTransitGatewayConnectsRequest & WithNextToken(const char *value)
Definition: DescribeTransitGatewayConnectsRequest.h:299