AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeTransitGatewayConnectPeersRequest.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 "DescribeTransitGatewayConnectPeers"; }
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>& GetTransitGatewayConnectPeerIds() const{ return m_transitGatewayConnectPeerIds; }
45 
49  inline bool TransitGatewayConnectPeerIdsHasBeenSet() const { return m_transitGatewayConnectPeerIdsHasBeenSet; }
50 
54  inline void SetTransitGatewayConnectPeerIds(const Aws::Vector<Aws::String>& value) { m_transitGatewayConnectPeerIdsHasBeenSet = true; m_transitGatewayConnectPeerIds = value; }
55 
59  inline void SetTransitGatewayConnectPeerIds(Aws::Vector<Aws::String>&& value) { m_transitGatewayConnectPeerIdsHasBeenSet = true; m_transitGatewayConnectPeerIds = std::move(value); }
60 
64  inline DescribeTransitGatewayConnectPeersRequest& WithTransitGatewayConnectPeerIds(const Aws::Vector<Aws::String>& value) { SetTransitGatewayConnectPeerIds(value); return *this;}
65 
69  inline DescribeTransitGatewayConnectPeersRequest& WithTransitGatewayConnectPeerIds(Aws::Vector<Aws::String>&& value) { SetTransitGatewayConnectPeerIds(std::move(value)); return *this;}
70 
74  inline DescribeTransitGatewayConnectPeersRequest& AddTransitGatewayConnectPeerIds(const Aws::String& value) { m_transitGatewayConnectPeerIdsHasBeenSet = true; m_transitGatewayConnectPeerIds.push_back(value); return *this; }
75 
79  inline DescribeTransitGatewayConnectPeersRequest& AddTransitGatewayConnectPeerIds(Aws::String&& value) { m_transitGatewayConnectPeerIdsHasBeenSet = true; m_transitGatewayConnectPeerIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeTransitGatewayConnectPeersRequest& AddTransitGatewayConnectPeerIds(const char* value) { m_transitGatewayConnectPeerIdsHasBeenSet = true; m_transitGatewayConnectPeerIds.push_back(value); return *this; }
85 
86 
95  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
96 
105  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
106 
115  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
116 
125  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
126 
135  inline DescribeTransitGatewayConnectPeersRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
136 
145  inline DescribeTransitGatewayConnectPeersRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
146 
155  inline DescribeTransitGatewayConnectPeersRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
156 
165  inline DescribeTransitGatewayConnectPeersRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
166 
167 
173  inline int GetMaxResults() const{ return m_maxResults; }
174 
180  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
181 
187  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
188 
194  inline DescribeTransitGatewayConnectPeersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
195 
196 
200  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
201 
205  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
206 
210  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
211 
215  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
216 
220  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
221 
225  inline DescribeTransitGatewayConnectPeersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
226 
230  inline DescribeTransitGatewayConnectPeersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
231 
235  inline DescribeTransitGatewayConnectPeersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
236 
237 
244  inline bool GetDryRun() const{ return m_dryRun; }
245 
252  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
253 
260  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
261 
268  inline DescribeTransitGatewayConnectPeersRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
269 
270  private:
271 
272  Aws::Vector<Aws::String> m_transitGatewayConnectPeerIds;
273  bool m_transitGatewayConnectPeerIdsHasBeenSet;
274 
275  Aws::Vector<Filter> m_filters;
276  bool m_filtersHasBeenSet;
277 
278  int m_maxResults;
279  bool m_maxResultsHasBeenSet;
280 
281  Aws::String m_nextToken;
282  bool m_nextTokenHasBeenSet;
283 
284  bool m_dryRun;
285  bool m_dryRunHasBeenSet;
286  };
287 
288 } // namespace Model
289 } // namespace EC2
290 } // namespace Aws
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::AddTransitGatewayConnectPeerIds
DescribeTransitGatewayConnectPeersRequest & AddTransitGatewayConnectPeerIds(const Aws::String &value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:74
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:187
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:95
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTransitGatewayConnectPeersRequest.h:32
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:180
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:105
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SetTransitGatewayConnectPeerIds
void SetTransitGatewayConnectPeerIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:59
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::WithTransitGatewayConnectPeerIds
DescribeTransitGatewayConnectPeersRequest & WithTransitGatewayConnectPeerIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:69
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::TransitGatewayConnectPeerIdsHasBeenSet
bool TransitGatewayConnectPeerIdsHasBeenSet() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:49
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::AddFilters
DescribeTransitGatewayConnectPeersRequest & AddFilters(const Filter &value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:155
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:200
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:220
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:215
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::WithMaxResults
DescribeTransitGatewayConnectPeersRequest & WithMaxResults(int value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:194
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:252
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::AddTransitGatewayConnectPeerIds
DescribeTransitGatewayConnectPeersRequest & AddTransitGatewayConnectPeerIds(const char *value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:84
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::WithNextToken
DescribeTransitGatewayConnectPeersRequest & WithNextToken(const char *value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:235
EC2Request.h
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::AddTransitGatewayConnectPeerIds
DescribeTransitGatewayConnectPeersRequest & AddTransitGatewayConnectPeerIds(Aws::String &&value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:79
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:244
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:210
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::WithFilters
DescribeTransitGatewayConnectPeersRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:135
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::WithNextToken
DescribeTransitGatewayConnectPeersRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:230
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:125
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:115
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::DescribeTransitGatewayConnectPeersRequest
DescribeTransitGatewayConnectPeersRequest()
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SetTransitGatewayConnectPeerIds
void SetTransitGatewayConnectPeerIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:54
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::GetTransitGatewayConnectPeerIds
const Aws::Vector< Aws::String > & GetTransitGatewayConnectPeerIds() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:44
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:173
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::WithFilters
DescribeTransitGatewayConnectPeersRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:145
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:260
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::DescribeTransitGatewayConnectPeersRequest::AddFilters
DescribeTransitGatewayConnectPeersRequest & AddFilters(Filter &&value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:165
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::WithDryRun
DescribeTransitGatewayConnectPeersRequest & WithDryRun(bool value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:268
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest
Definition: DescribeTransitGatewayConnectPeersRequest.h:24
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::WithTransitGatewayConnectPeerIds
DescribeTransitGatewayConnectPeersRequest & WithTransitGatewayConnectPeerIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:64
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::WithNextToken
DescribeTransitGatewayConnectPeersRequest & WithNextToken(const Aws::String &value)
Definition: DescribeTransitGatewayConnectPeersRequest.h:225
Aws::EC2::Model::DescribeTransitGatewayConnectPeersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTransitGatewayConnectPeersRequest.h:205