AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeNatGatewaysRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 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 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
20 #include <aws/ec2/model/Filter.h>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::Vector<Aws::String>& GetNatGatewayIds() const{ return m_natGatewayIds; }
42 
46  inline void SetNatGatewayIds(const Aws::Vector<Aws::String>& value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds = value; }
47 
51  inline void SetNatGatewayIds(Aws::Vector<Aws::String>&& value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds = value; }
52 
56  inline DescribeNatGatewaysRequest& WithNatGatewayIds(const Aws::Vector<Aws::String>& value) { SetNatGatewayIds(value); return *this;}
57 
61  inline DescribeNatGatewaysRequest& WithNatGatewayIds(Aws::Vector<Aws::String>&& value) { SetNatGatewayIds(value); return *this;}
62 
66  inline DescribeNatGatewaysRequest& AddNatGatewayIds(const Aws::String& value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds.push_back(value); return *this; }
67 
71  inline DescribeNatGatewaysRequest& AddNatGatewayIds(Aws::String&& value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds.push_back(value); return *this; }
72 
76  inline DescribeNatGatewaysRequest& AddNatGatewayIds(const char* value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds.push_back(value); return *this; }
77 
87  inline const Aws::Vector<Filter>& GetFilter() const{ return m_filter; }
88 
98  inline void SetFilter(const Aws::Vector<Filter>& value) { m_filterHasBeenSet = true; m_filter = value; }
99 
109  inline void SetFilter(Aws::Vector<Filter>&& value) { m_filterHasBeenSet = true; m_filter = value; }
110 
120  inline DescribeNatGatewaysRequest& WithFilter(const Aws::Vector<Filter>& value) { SetFilter(value); return *this;}
121 
131  inline DescribeNatGatewaysRequest& WithFilter(Aws::Vector<Filter>&& value) { SetFilter(value); return *this;}
132 
142  inline DescribeNatGatewaysRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
143 
153  inline DescribeNatGatewaysRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
154 
161  inline int GetMaxResults() const{ return m_maxResults; }
162 
169  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
170 
177  inline DescribeNatGatewaysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
178 
182  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
183 
187  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
188 
192  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
193 
197  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
198 
202  inline DescribeNatGatewaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
203 
207  inline DescribeNatGatewaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
208 
212  inline DescribeNatGatewaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
213 
214  private:
215  Aws::Vector<Aws::String> m_natGatewayIds;
216  bool m_natGatewayIdsHasBeenSet;
217  Aws::Vector<Filter> m_filter;
218  bool m_filterHasBeenSet;
219  int m_maxResults;
220  bool m_maxResultsHasBeenSet;
221  Aws::String m_nextToken;
222  bool m_nextTokenHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace EC2
227 } // namespace Aws
DescribeNatGatewaysRequest & AddNatGatewayIds(const Aws::String &value)
DescribeNatGatewaysRequest & AddNatGatewayIds(const char *value)
DescribeNatGatewaysRequest & AddFilter(Filter &&value)
const Aws::Vector< Filter > & GetFilter() const
DescribeNatGatewaysRequest & AddNatGatewayIds(Aws::String &&value)
DescribeNatGatewaysRequest & WithNextToken(const char *value)
DescribeNatGatewaysRequest & WithNextToken(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Aws::String > & GetNatGatewayIds() const
DescribeNatGatewaysRequest & WithFilter(Aws::Vector< Filter > &&value)
DescribeNatGatewaysRequest & WithNatGatewayIds(const Aws::Vector< Aws::String > &value)
DescribeNatGatewaysRequest & WithNatGatewayIds(Aws::Vector< Aws::String > &&value)
DescribeNatGatewaysRequest & WithFilter(const Aws::Vector< Filter > &value)
void SetNatGatewayIds(const Aws::Vector< Aws::String > &value)
DescribeNatGatewaysRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetNatGatewayIds(Aws::Vector< Aws::String > &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
DescribeNatGatewaysRequest & AddFilter(const Filter &value)
DescribeNatGatewaysRequest & WithMaxResults(int value)
JSON (JavaScript Object Notation).
void SetFilter(const Aws::Vector< Filter > &value)