AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeFlowLogsRequest.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 "DescribeFlowLogs"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline DescribeFlowLogsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
94  inline const Aws::Vector<Filter>& GetFilter() const{ return m_filter; }
95 
116  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
117 
138  inline void SetFilter(const Aws::Vector<Filter>& value) { m_filterHasBeenSet = true; m_filter = value; }
139 
160  inline void SetFilter(Aws::Vector<Filter>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
161 
182  inline DescribeFlowLogsRequest& WithFilter(const Aws::Vector<Filter>& value) { SetFilter(value); return *this;}
183 
204  inline DescribeFlowLogsRequest& WithFilter(Aws::Vector<Filter>&& value) { SetFilter(std::move(value)); return *this;}
205 
226  inline DescribeFlowLogsRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
227 
248  inline DescribeFlowLogsRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(std::move(value)); return *this; }
249 
250 
255  inline const Aws::Vector<Aws::String>& GetFlowLogIds() const{ return m_flowLogIds; }
256 
261  inline bool FlowLogIdsHasBeenSet() const { return m_flowLogIdsHasBeenSet; }
262 
267  inline void SetFlowLogIds(const Aws::Vector<Aws::String>& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds = value; }
268 
273  inline void SetFlowLogIds(Aws::Vector<Aws::String>&& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds = std::move(value); }
274 
279  inline DescribeFlowLogsRequest& WithFlowLogIds(const Aws::Vector<Aws::String>& value) { SetFlowLogIds(value); return *this;}
280 
285  inline DescribeFlowLogsRequest& WithFlowLogIds(Aws::Vector<Aws::String>&& value) { SetFlowLogIds(std::move(value)); return *this;}
286 
291  inline DescribeFlowLogsRequest& AddFlowLogIds(const Aws::String& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.push_back(value); return *this; }
292 
297  inline DescribeFlowLogsRequest& AddFlowLogIds(Aws::String&& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.push_back(std::move(value)); return *this; }
298 
303  inline DescribeFlowLogsRequest& AddFlowLogIds(const char* value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.push_back(value); return *this; }
304 
305 
311  inline int GetMaxResults() const{ return m_maxResults; }
312 
318  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
319 
325  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
326 
332  inline DescribeFlowLogsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
333 
334 
338  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
339 
343  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
344 
348  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
349 
353  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
354 
358  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
359 
363  inline DescribeFlowLogsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
364 
368  inline DescribeFlowLogsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
369 
373  inline DescribeFlowLogsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
374 
375  private:
376 
377  bool m_dryRun;
378  bool m_dryRunHasBeenSet;
379 
380  Aws::Vector<Filter> m_filter;
381  bool m_filterHasBeenSet;
382 
383  Aws::Vector<Aws::String> m_flowLogIds;
384  bool m_flowLogIdsHasBeenSet;
385 
386  int m_maxResults;
387  bool m_maxResultsHasBeenSet;
388 
389  Aws::String m_nextToken;
390  bool m_nextTokenHasBeenSet;
391  };
392 
393 } // namespace Model
394 } // namespace EC2
395 } // 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)
virtual const char * GetServiceRequestName() const override
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeFlowLogsRequest & WithFlowLogIds(Aws::Vector< Aws::String > &&value)
void SetFilter(const Aws::Vector< Filter > &value)
DescribeFlowLogsRequest & AddFilter(const Filter &value)
DescribeFlowLogsRequest & AddFilter(Filter &&value)
DescribeFlowLogsRequest & WithMaxResults(int value)
void SetFilter(Aws::Vector< Filter > &&value)
void SetFlowLogIds(Aws::Vector< Aws::String > &&value)
DescribeFlowLogsRequest & WithDryRun(bool 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)
const Aws::Vector< Aws::String > & GetFlowLogIds() const
DescribeFlowLogsRequest & WithNextToken(Aws::String &&value)
DescribeFlowLogsRequest & WithNextToken(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DescribeFlowLogsRequest & WithNextToken(const Aws::String &value)
const Aws::Vector< Filter > & GetFilter() const