AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeFlowLogsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API DescribeFlowLogsRequest() = default;
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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const { return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline DescribeFlowLogsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
75 inline const Aws::Vector<Filter>& GetFilter() const { return m_filter; }
76 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
77 template<typename FilterT = Aws::Vector<Filter>>
78 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
79 template<typename FilterT = Aws::Vector<Filter>>
80 DescribeFlowLogsRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
81 template<typename FilterT = Filter>
82 DescribeFlowLogsRequest& AddFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter.emplace_back(std::forward<FilterT>(value)); return *this; }
84
86
90 inline const Aws::Vector<Aws::String>& GetFlowLogIds() const { return m_flowLogIds; }
91 inline bool FlowLogIdsHasBeenSet() const { return m_flowLogIdsHasBeenSet; }
92 template<typename FlowLogIdsT = Aws::Vector<Aws::String>>
93 void SetFlowLogIds(FlowLogIdsT&& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds = std::forward<FlowLogIdsT>(value); }
94 template<typename FlowLogIdsT = Aws::Vector<Aws::String>>
95 DescribeFlowLogsRequest& WithFlowLogIds(FlowLogIdsT&& value) { SetFlowLogIds(std::forward<FlowLogIdsT>(value)); return *this;}
96 template<typename FlowLogIdsT = Aws::String>
97 DescribeFlowLogsRequest& AddFlowLogIds(FlowLogIdsT&& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.emplace_back(std::forward<FlowLogIdsT>(value)); return *this; }
99
101
107 inline int GetMaxResults() const { return m_maxResults; }
108 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
109 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
110 inline DescribeFlowLogsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
112
114
118 inline const Aws::String& GetNextToken() const { return m_nextToken; }
119 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 template<typename NextTokenT = Aws::String>
121 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
122 template<typename NextTokenT = Aws::String>
123 DescribeFlowLogsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
125 private:
126
127 bool m_dryRun{false};
128 bool m_dryRunHasBeenSet = false;
129
130 Aws::Vector<Filter> m_filter;
131 bool m_filterHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_flowLogIds;
134 bool m_flowLogIdsHasBeenSet = false;
135
136 int m_maxResults{0};
137 bool m_maxResultsHasBeenSet = false;
138
139 Aws::String m_nextToken;
140 bool m_nextTokenHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace EC2
145} // namespace Aws
DescribeFlowLogsRequest & AddFilter(FilterT &&value)
DescribeFlowLogsRequest & WithNextToken(NextTokenT &&value)
DescribeFlowLogsRequest & WithFlowLogIds(FlowLogIdsT &&value)
AWS_EC2_API DescribeFlowLogsRequest()=default
AWS_EC2_API Aws::String SerializePayload() const override
DescribeFlowLogsRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetFlowLogIds() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeFlowLogsRequest & AddFlowLogIds(FlowLogIdsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Filter > & GetFilter() const
DescribeFlowLogsRequest & WithFilter(FilterT &&value)
DescribeFlowLogsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector