AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeFlowLogsRequest.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>& GetFlowLogIds() const{ return m_flowLogIds; }
42 
46  inline void SetFlowLogIds(const Aws::Vector<Aws::String>& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds = value; }
47 
51  inline void SetFlowLogIds(Aws::Vector<Aws::String>&& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds = value; }
52 
56  inline DescribeFlowLogsRequest& WithFlowLogIds(const Aws::Vector<Aws::String>& value) { SetFlowLogIds(value); return *this;}
57 
61  inline DescribeFlowLogsRequest& WithFlowLogIds(Aws::Vector<Aws::String>&& value) { SetFlowLogIds(value); return *this;}
62 
66  inline DescribeFlowLogsRequest& AddFlowLogIds(const Aws::String& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.push_back(value); return *this; }
67 
71  inline DescribeFlowLogsRequest& AddFlowLogIds(Aws::String&& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.push_back(value); return *this; }
72 
76  inline DescribeFlowLogsRequest& AddFlowLogIds(const char* value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.push_back(value); return *this; }
77 
88  inline const Aws::Vector<Filter>& GetFilter() const{ return m_filter; }
89 
100  inline void SetFilter(const Aws::Vector<Filter>& value) { m_filterHasBeenSet = true; m_filter = value; }
101 
112  inline void SetFilter(Aws::Vector<Filter>&& value) { m_filterHasBeenSet = true; m_filter = value; }
113 
124  inline DescribeFlowLogsRequest& WithFilter(const Aws::Vector<Filter>& value) { SetFilter(value); return *this;}
125 
136  inline DescribeFlowLogsRequest& WithFilter(Aws::Vector<Filter>&& value) { SetFilter(value); return *this;}
137 
148  inline DescribeFlowLogsRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
149 
160  inline DescribeFlowLogsRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
161 
165  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
166 
170  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
171 
175  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
176 
180  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
181 
185  inline DescribeFlowLogsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
186 
190  inline DescribeFlowLogsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
191 
195  inline DescribeFlowLogsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
196 
205  inline long GetMaxResults() const{ return m_maxResults; }
206 
215  inline void SetMaxResults(long value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
216 
225  inline DescribeFlowLogsRequest& WithMaxResults(long value) { SetMaxResults(value); return *this;}
226 
227  private:
228  Aws::Vector<Aws::String> m_flowLogIds;
229  bool m_flowLogIdsHasBeenSet;
230  Aws::Vector<Filter> m_filter;
231  bool m_filterHasBeenSet;
232  Aws::String m_nextToken;
233  bool m_nextTokenHasBeenSet;
234  long m_maxResults;
235  bool m_maxResultsHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace EC2
240 } // namespace Aws
DescribeFlowLogsRequest & AddFlowLogIds(const Aws::String &value)
DescribeFlowLogsRequest & AddFlowLogIds(Aws::String &&value)
DescribeFlowLogsRequest & WithFilter(Aws::Vector< Filter > &&value)
DescribeFlowLogsRequest & AddFlowLogIds(const char *value)
DescribeFlowLogsRequest & WithFlowLogIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeFlowLogsRequest & WithFlowLogIds(Aws::Vector< Aws::String > &&value)
void SetFilter(const Aws::Vector< Filter > &value)
DescribeFlowLogsRequest & AddFilter(const Filter &value)
DescribeFlowLogsRequest & WithMaxResults(long value)
DescribeFlowLogsRequest & AddFilter(Filter &&value)
void SetFilter(Aws::Vector< Filter > &&value)
const Aws::Vector< Aws::String > & GetFlowLogIds() const
void SetFlowLogIds(Aws::Vector< Aws::String > &&value)
void SetFlowLogIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeFlowLogsRequest & WithFilter(const Aws::Vector< Filter > &value)
DescribeFlowLogsRequest & WithNextToken(Aws::String &&value)
DescribeFlowLogsRequest & WithNextToken(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
DescribeFlowLogsRequest & WithNextToken(const Aws::String &value)
const Aws::Vector< Filter > & GetFilter() const
JSON (JavaScript Object Notation).