AWS SDK for C++  1.7.243
AWS SDK for C++
DescribeTransitGatewayVpcAttachmentsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 
16 #pragma once
17 #include <aws/ec2/EC2_EXPORTS.h>
18 #include <aws/ec2/EC2Request.h>
21 #include <aws/ec2/model/Filter.h>
22 #include <utility>
23 
24 namespace Aws
25 {
26 namespace EC2
27 {
28 namespace Model
29 {
30 
34  {
35  public:
37 
38  // Service request name is the Operation name which will send this request out,
39  // each operation should has unique request name, so that we can get operation's name from this request.
40  // Note: this is not true for response, multiple operations may have the same response name,
41  // so we can not get operation's name from response.
42  inline virtual const char* GetServiceRequestName() const override { return "DescribeTransitGatewayVpcAttachments"; }
43 
44  Aws::String SerializePayload() const override;
45 
46  protected:
47  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
48 
49  public:
50 
54  inline const Aws::Vector<Aws::String>& GetTransitGatewayAttachmentIds() const{ return m_transitGatewayAttachmentIds; }
55 
59  inline bool TransitGatewayAttachmentIdsHasBeenSet() const { return m_transitGatewayAttachmentIdsHasBeenSet; }
60 
64  inline void SetTransitGatewayAttachmentIds(const Aws::Vector<Aws::String>& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds = value; }
65 
69  inline void SetTransitGatewayAttachmentIds(Aws::Vector<Aws::String>&& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds = std::move(value); }
70 
74  inline DescribeTransitGatewayVpcAttachmentsRequest& WithTransitGatewayAttachmentIds(const Aws::Vector<Aws::String>& value) { SetTransitGatewayAttachmentIds(value); return *this;}
75 
79  inline DescribeTransitGatewayVpcAttachmentsRequest& WithTransitGatewayAttachmentIds(Aws::Vector<Aws::String>&& value) { SetTransitGatewayAttachmentIds(std::move(value)); return *this;}
80 
84  inline DescribeTransitGatewayVpcAttachmentsRequest& AddTransitGatewayAttachmentIds(const Aws::String& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
85 
89  inline DescribeTransitGatewayVpcAttachmentsRequest& AddTransitGatewayAttachmentIds(Aws::String&& value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(std::move(value)); return *this; }
90 
94  inline DescribeTransitGatewayVpcAttachmentsRequest& AddTransitGatewayAttachmentIds(const char* value) { m_transitGatewayAttachmentIdsHasBeenSet = true; m_transitGatewayAttachmentIds.push_back(value); return *this; }
95 
96 
108  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
109 
121  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
122 
134  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
135 
147  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
148 
160  inline DescribeTransitGatewayVpcAttachmentsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
161 
173  inline DescribeTransitGatewayVpcAttachmentsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
174 
186  inline DescribeTransitGatewayVpcAttachmentsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
187 
199  inline DescribeTransitGatewayVpcAttachmentsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
200 
201 
207  inline int GetMaxResults() const{ return m_maxResults; }
208 
214  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
215 
221  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
222 
228  inline DescribeTransitGatewayVpcAttachmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
229 
230 
234  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
235 
239  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
240 
244  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
245 
249  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
250 
254  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
255 
259  inline DescribeTransitGatewayVpcAttachmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
260 
264  inline DescribeTransitGatewayVpcAttachmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
265 
269  inline DescribeTransitGatewayVpcAttachmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
270 
271 
278  inline bool GetDryRun() const{ return m_dryRun; }
279 
286  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
287 
294  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
295 
302  inline DescribeTransitGatewayVpcAttachmentsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
303 
304  private:
305 
306  Aws::Vector<Aws::String> m_transitGatewayAttachmentIds;
307  bool m_transitGatewayAttachmentIdsHasBeenSet;
308 
309  Aws::Vector<Filter> m_filters;
310  bool m_filtersHasBeenSet;
311 
312  int m_maxResults;
313  bool m_maxResultsHasBeenSet;
314 
315  Aws::String m_nextToken;
316  bool m_nextTokenHasBeenSet;
317 
318  bool m_dryRun;
319  bool m_dryRunHasBeenSet;
320  };
321 
322 } // namespace Model
323 } // namespace EC2
324 } // 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:27
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:107
DescribeTransitGatewayVpcAttachmentsRequest & WithTransitGatewayAttachmentIds(Aws::Vector< Aws::String > &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:38
DescribeTransitGatewayVpcAttachmentsRequest & WithNextToken(const Aws::String &value)