AWS SDK for C++  1.8.7
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 
98  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
99 
111  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
112 
124  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
125 
137  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
138 
150  inline DescribeTransitGatewayVpcAttachmentsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
151 
163  inline DescribeTransitGatewayVpcAttachmentsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
164 
176  inline DescribeTransitGatewayVpcAttachmentsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
177 
189  inline DescribeTransitGatewayVpcAttachmentsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
190 
191 
197  inline int GetMaxResults() const{ return m_maxResults; }
198 
204  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
205 
211  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
212 
218  inline DescribeTransitGatewayVpcAttachmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
219 
220 
224  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
225 
229  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
230 
234  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
235 
239  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
240 
244  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
245 
249  inline DescribeTransitGatewayVpcAttachmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
250 
254  inline DescribeTransitGatewayVpcAttachmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
255 
259  inline DescribeTransitGatewayVpcAttachmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
260 
261 
268  inline bool GetDryRun() const{ return m_dryRun; }
269 
276  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
277 
284  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
285 
292  inline DescribeTransitGatewayVpcAttachmentsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
293 
294  private:
295 
296  Aws::Vector<Aws::String> m_transitGatewayAttachmentIds;
297  bool m_transitGatewayAttachmentIdsHasBeenSet;
298 
299  Aws::Vector<Filter> m_filters;
300  bool m_filtersHasBeenSet;
301 
302  int m_maxResults;
303  bool m_maxResultsHasBeenSet;
304 
305  Aws::String m_nextToken;
306  bool m_nextTokenHasBeenSet;
307 
308  bool m_dryRun;
309  bool m_dryRunHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace EC2
314 } // namespace Aws
DescribeTransitGatewayVpcAttachmentsRequest & WithTransitGatewayAttachmentIds(const Aws::Vector< Aws::String > &value)
DescribeTransitGatewayVpcAttachmentsRequest & AddTransitGatewayAttachmentIds(const Aws::String &value)
DescribeTransitGatewayVpcAttachmentsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeTransitGatewayVpcAttachmentsRequest & WithNextToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeTransitGatewayVpcAttachmentsRequest & AddFilters(const Filter &value)
DescribeTransitGatewayVpcAttachmentsRequest & AddTransitGatewayAttachmentIds(Aws::String &&value)
DescribeTransitGatewayVpcAttachmentsRequest & AddTransitGatewayAttachmentIds(const char *value)
DescribeTransitGatewayVpcAttachmentsRequest & AddFilters(Filter &&value)
DescribeTransitGatewayVpcAttachmentsRequest & WithNextToken(Aws::String &&value)
DescribeTransitGatewayVpcAttachmentsRequest & WithFilters(Aws::Vector< Filter > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeTransitGatewayVpcAttachmentsRequest & WithTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DescribeTransitGatewayVpcAttachmentsRequest & WithNextToken(const Aws::String &value)