AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeFlowLogsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeFlowLogsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeFlowLogs"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
50 inline DescribeFlowLogsRequest& WithDryRun(bool value) {
51 SetDryRun(value);
52 return *this;
53 }
55
57
77 inline const Aws::Vector<Filter>& GetFilter() const { return m_filter; }
78 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
79 template <typename FilterT = Aws::Vector<Filter>>
80 void SetFilter(FilterT&& value) {
81 m_filterHasBeenSet = true;
82 m_filter = std::forward<FilterT>(value);
83 }
84 template <typename FilterT = Aws::Vector<Filter>>
86 SetFilter(std::forward<FilterT>(value));
87 return *this;
88 }
89 template <typename FilterT = Filter>
91 m_filterHasBeenSet = true;
92 m_filter.emplace_back(std::forward<FilterT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Vector<Aws::String>& GetFlowLogIds() const { return m_flowLogIds; }
103 inline bool FlowLogIdsHasBeenSet() const { return m_flowLogIdsHasBeenSet; }
104 template <typename FlowLogIdsT = Aws::Vector<Aws::String>>
105 void SetFlowLogIds(FlowLogIdsT&& value) {
106 m_flowLogIdsHasBeenSet = true;
107 m_flowLogIds = std::forward<FlowLogIdsT>(value);
108 }
109 template <typename FlowLogIdsT = Aws::Vector<Aws::String>>
111 SetFlowLogIds(std::forward<FlowLogIdsT>(value));
112 return *this;
113 }
114 template <typename FlowLogIdsT = Aws::String>
116 m_flowLogIdsHasBeenSet = true;
117 m_flowLogIds.emplace_back(std::forward<FlowLogIdsT>(value));
118 return *this;
119 }
121
123
129 inline int GetMaxResults() const { return m_maxResults; }
130 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
131 inline void SetMaxResults(int value) {
132 m_maxResultsHasBeenSet = true;
133 m_maxResults = value;
134 }
136 SetMaxResults(value);
137 return *this;
138 }
140
142
146 inline const Aws::String& GetNextToken() const { return m_nextToken; }
147 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
148 template <typename NextTokenT = Aws::String>
149 void SetNextToken(NextTokenT&& value) {
150 m_nextTokenHasBeenSet = true;
151 m_nextToken = std::forward<NextTokenT>(value);
152 }
153 template <typename NextTokenT = Aws::String>
155 SetNextToken(std::forward<NextTokenT>(value));
156 return *this;
157 }
159 private:
160 bool m_dryRun{false};
161
162 Aws::Vector<Filter> m_filter;
163
164 Aws::Vector<Aws::String> m_flowLogIds;
165
166 int m_maxResults{0};
167
168 Aws::String m_nextToken;
169 bool m_dryRunHasBeenSet = false;
170 bool m_filterHasBeenSet = false;
171 bool m_flowLogIdsHasBeenSet = false;
172 bool m_maxResultsHasBeenSet = false;
173 bool m_nextTokenHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace EC2
178} // 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