AWS SDK for C++  0.14.3
AWS SDK for C++
DescribePrefixListsRequest.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 
44  inline bool GetDryRun() const{ return m_dryRun; }
45 
52  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 
60  inline DescribePrefixListsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
65  inline const Aws::Vector<Aws::String>& GetPrefixListIds() const{ return m_prefixListIds; }
66 
70  inline void SetPrefixListIds(const Aws::Vector<Aws::String>& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = value; }
71 
75  inline void SetPrefixListIds(Aws::Vector<Aws::String>&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = value; }
76 
80  inline DescribePrefixListsRequest& WithPrefixListIds(const Aws::Vector<Aws::String>& value) { SetPrefixListIds(value); return *this;}
81 
85  inline DescribePrefixListsRequest& WithPrefixListIds(Aws::Vector<Aws::String>&& value) { SetPrefixListIds(value); return *this;}
86 
90  inline DescribePrefixListsRequest& AddPrefixListIds(const Aws::String& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
91 
95  inline DescribePrefixListsRequest& AddPrefixListIds(Aws::String&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
96 
100  inline DescribePrefixListsRequest& AddPrefixListIds(const char* value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
101 
107  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
108 
114  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
115 
121  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = value; }
122 
128  inline DescribePrefixListsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
129 
135  inline DescribePrefixListsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(value); return *this;}
136 
142  inline DescribePrefixListsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
143 
149  inline DescribePrefixListsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
150 
157  inline int GetMaxResults() const{ return m_maxResults; }
158 
165  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
166 
173  inline DescribePrefixListsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
174 
179  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
180 
185  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
186 
191  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
192 
197  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
198 
203  inline DescribePrefixListsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
204 
209  inline DescribePrefixListsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
210 
215  inline DescribePrefixListsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
216 
217  private:
218  bool m_dryRun;
219  bool m_dryRunHasBeenSet;
220  Aws::Vector<Aws::String> m_prefixListIds;
221  bool m_prefixListIdsHasBeenSet;
222  Aws::Vector<Filter> m_filters;
223  bool m_filtersHasBeenSet;
224  int m_maxResults;
225  bool m_maxResultsHasBeenSet;
226  Aws::String m_nextToken;
227  bool m_nextTokenHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace EC2
232 } // namespace Aws
DescribePrefixListsRequest & WithMaxResults(int value)
DescribePrefixListsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribePrefixListsRequest & AddFilters(const Filter &value)
DescribePrefixListsRequest & WithPrefixListIds(Aws::Vector< Aws::String > &&value)
DescribePrefixListsRequest & AddFilters(Filter &&value)
DescribePrefixListsRequest & AddPrefixListIds(const char *value)
DescribePrefixListsRequest & WithNextToken(const Aws::String &value)
DescribePrefixListsRequest & WithFilters(Aws::Vector< Filter > &&value)
void SetFilters(const Aws::Vector< Filter > &value)
const Aws::Vector< Aws::String > & GetPrefixListIds() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetPrefixListIds(const Aws::Vector< Aws::String > &value)
DescribePrefixListsRequest & AddPrefixListIds(Aws::String &&value)
DescribePrefixListsRequest & WithDryRun(bool value)
const Aws::Vector< Filter > & GetFilters() const
void SetPrefixListIds(Aws::Vector< Aws::String > &&value)
void SetFilters(Aws::Vector< Filter > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribePrefixListsRequest & WithPrefixListIds(const Aws::Vector< Aws::String > &value)
DescribePrefixListsRequest & WithNextToken(Aws::String &&value)
DescribePrefixListsRequest & AddPrefixListIds(const Aws::String &value)
DescribePrefixListsRequest & WithNextToken(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
JSON (JavaScript Object Notation).