AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
StartQueryRequest.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/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/QueryLanguage.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchLogs {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCHLOGS_API StartQueryRequest() = 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 "StartQuery"; }
30
31 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
43 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
44 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
45 inline void SetQueryLanguage(QueryLanguage value) {
46 m_queryLanguageHasBeenSet = true;
47 m_queryLanguage = value;
48 }
50 SetQueryLanguage(value);
51 return *this;
52 }
54
56
64 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
65 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
66 template <typename LogGroupNameT = Aws::String>
67 void SetLogGroupName(LogGroupNameT&& value) {
68 m_logGroupNameHasBeenSet = true;
69 m_logGroupName = std::forward<LogGroupNameT>(value);
70 }
71 template <typename LogGroupNameT = Aws::String>
72 StartQueryRequest& WithLogGroupName(LogGroupNameT&& value) {
73 SetLogGroupName(std::forward<LogGroupNameT>(value));
74 return *this;
75 }
77
79
88 inline const Aws::Vector<Aws::String>& GetLogGroupNames() const { return m_logGroupNames; }
89 inline bool LogGroupNamesHasBeenSet() const { return m_logGroupNamesHasBeenSet; }
90 template <typename LogGroupNamesT = Aws::Vector<Aws::String>>
91 void SetLogGroupNames(LogGroupNamesT&& value) {
92 m_logGroupNamesHasBeenSet = true;
93 m_logGroupNames = std::forward<LogGroupNamesT>(value);
94 }
95 template <typename LogGroupNamesT = Aws::Vector<Aws::String>>
96 StartQueryRequest& WithLogGroupNames(LogGroupNamesT&& value) {
97 SetLogGroupNames(std::forward<LogGroupNamesT>(value));
98 return *this;
99 }
100 template <typename LogGroupNamesT = Aws::String>
101 StartQueryRequest& AddLogGroupNames(LogGroupNamesT&& value) {
102 m_logGroupNamesHasBeenSet = true;
103 m_logGroupNames.emplace_back(std::forward<LogGroupNamesT>(value));
104 return *this;
105 }
107
109
122 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
123 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
124 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
125 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
126 m_logGroupIdentifiersHasBeenSet = true;
127 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
128 }
129 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
130 StartQueryRequest& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
131 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
132 return *this;
133 }
134 template <typename LogGroupIdentifiersT = Aws::String>
135 StartQueryRequest& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
136 m_logGroupIdentifiersHasBeenSet = true;
137 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
138 return *this;
139 }
141
143
148 inline long long GetStartTime() const { return m_startTime; }
149 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
150 inline void SetStartTime(long long value) {
151 m_startTimeHasBeenSet = true;
152 m_startTime = value;
153 }
154 inline StartQueryRequest& WithStartTime(long long value) {
155 SetStartTime(value);
156 return *this;
157 }
159
161
166 inline long long GetEndTime() const { return m_endTime; }
167 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
168 inline void SetEndTime(long long value) {
169 m_endTimeHasBeenSet = true;
170 m_endTime = value;
171 }
172 inline StartQueryRequest& WithEndTime(long long value) {
173 SetEndTime(value);
174 return *this;
175 }
177
179
184 inline const Aws::String& GetQueryString() const { return m_queryString; }
185 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
186 template <typename QueryStringT = Aws::String>
187 void SetQueryString(QueryStringT&& value) {
188 m_queryStringHasBeenSet = true;
189 m_queryString = std::forward<QueryStringT>(value);
190 }
191 template <typename QueryStringT = Aws::String>
192 StartQueryRequest& WithQueryString(QueryStringT&& value) {
193 SetQueryString(std::forward<QueryStringT>(value));
194 return *this;
195 }
197
199
204 inline int GetLimit() const { return m_limit; }
205 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
206 inline void SetLimit(int value) {
207 m_limitHasBeenSet = true;
208 m_limit = value;
209 }
210 inline StartQueryRequest& WithLimit(int value) {
211 SetLimit(value);
212 return *this;
213 }
215 private:
216 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
217
218 Aws::String m_logGroupName;
219
220 Aws::Vector<Aws::String> m_logGroupNames;
221
222 Aws::Vector<Aws::String> m_logGroupIdentifiers;
223
224 long long m_startTime{0};
225
226 long long m_endTime{0};
227
228 Aws::String m_queryString;
229
230 int m_limit{0};
231 bool m_queryLanguageHasBeenSet = false;
232 bool m_logGroupNameHasBeenSet = false;
233 bool m_logGroupNamesHasBeenSet = false;
234 bool m_logGroupIdentifiersHasBeenSet = false;
235 bool m_startTimeHasBeenSet = false;
236 bool m_endTimeHasBeenSet = false;
237 bool m_queryStringHasBeenSet = false;
238 bool m_limitHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace CloudWatchLogs
243} // namespace Aws
AWS_CLOUDWATCHLOGS_API StartQueryRequest()=default
StartQueryRequest & WithQueryString(QueryStringT &&value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
void SetLogGroupIdentifiers(LogGroupIdentifiersT &&value)
StartQueryRequest & WithQueryLanguage(QueryLanguage value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
StartQueryRequest & WithEndTime(long long value)
const Aws::Vector< Aws::String > & GetLogGroupNames() const
StartQueryRequest & WithLogGroupNames(LogGroupNamesT &&value)
StartQueryRequest & WithLogGroupName(LogGroupNameT &&value)
StartQueryRequest & WithStartTime(long long value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartQueryRequest & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
StartQueryRequest & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
StartQueryRequest & AddLogGroupNames(LogGroupNamesT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector