AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetLogEventsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudWatchLogs {
15namespace Model {
16
20 public:
21 AWS_CLOUDWATCHLOGS_API GetLogEventsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetLogEvents"; }
28
29 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
39 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
40 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
41 template <typename LogGroupNameT = Aws::String>
42 void SetLogGroupName(LogGroupNameT&& value) {
43 m_logGroupNameHasBeenSet = true;
44 m_logGroupName = std::forward<LogGroupNameT>(value);
45 }
46 template <typename LogGroupNameT = Aws::String>
47 GetLogEventsRequest& WithLogGroupName(LogGroupNameT&& value) {
48 SetLogGroupName(std::forward<LogGroupNameT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
62 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
63 template <typename LogGroupIdentifierT = Aws::String>
64 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) {
65 m_logGroupIdentifierHasBeenSet = true;
66 m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value);
67 }
68 template <typename LogGroupIdentifierT = Aws::String>
69 GetLogEventsRequest& WithLogGroupIdentifier(LogGroupIdentifierT&& value) {
70 SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
80 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
81 template <typename LogStreamNameT = Aws::String>
82 void SetLogStreamName(LogStreamNameT&& value) {
83 m_logStreamNameHasBeenSet = true;
84 m_logStreamName = std::forward<LogStreamNameT>(value);
85 }
86 template <typename LogStreamNameT = Aws::String>
87 GetLogEventsRequest& WithLogStreamName(LogStreamNameT&& value) {
88 SetLogStreamName(std::forward<LogStreamNameT>(value));
89 return *this;
90 }
92
94
100 inline long long GetStartTime() const { return m_startTime; }
101 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
102 inline void SetStartTime(long long value) {
103 m_startTimeHasBeenSet = true;
104 m_startTime = value;
105 }
106 inline GetLogEventsRequest& WithStartTime(long long value) {
107 SetStartTime(value);
108 return *this;
109 }
111
113
118 inline long long GetEndTime() const { return m_endTime; }
119 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
120 inline void SetEndTime(long long value) {
121 m_endTimeHasBeenSet = true;
122 m_endTime = value;
123 }
124 inline GetLogEventsRequest& WithEndTime(long long value) {
125 SetEndTime(value);
126 return *this;
127 }
129
131
135 inline const Aws::String& GetNextToken() const { return m_nextToken; }
136 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
137 template <typename NextTokenT = Aws::String>
138 void SetNextToken(NextTokenT&& value) {
139 m_nextTokenHasBeenSet = true;
140 m_nextToken = std::forward<NextTokenT>(value);
141 }
142 template <typename NextTokenT = Aws::String>
143 GetLogEventsRequest& WithNextToken(NextTokenT&& value) {
144 SetNextToken(std::forward<NextTokenT>(value));
145 return *this;
146 }
148
150
155 inline int GetLimit() const { return m_limit; }
156 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
157 inline void SetLimit(int value) {
158 m_limitHasBeenSet = true;
159 m_limit = value;
160 }
161 inline GetLogEventsRequest& WithLimit(int value) {
162 SetLimit(value);
163 return *this;
164 }
166
168
175 inline bool GetStartFromHead() const { return m_startFromHead; }
176 inline bool StartFromHeadHasBeenSet() const { return m_startFromHeadHasBeenSet; }
177 inline void SetStartFromHead(bool value) {
178 m_startFromHeadHasBeenSet = true;
179 m_startFromHead = value;
180 }
182 SetStartFromHead(value);
183 return *this;
184 }
186
188
194 inline bool GetUnmask() const { return m_unmask; }
195 inline bool UnmaskHasBeenSet() const { return m_unmaskHasBeenSet; }
196 inline void SetUnmask(bool value) {
197 m_unmaskHasBeenSet = true;
198 m_unmask = value;
199 }
200 inline GetLogEventsRequest& WithUnmask(bool value) {
201 SetUnmask(value);
202 return *this;
203 }
205 private:
206 Aws::String m_logGroupName;
207
208 Aws::String m_logGroupIdentifier;
209
210 Aws::String m_logStreamName;
211
212 long long m_startTime{0};
213
214 long long m_endTime{0};
215
216 Aws::String m_nextToken;
217
218 int m_limit{0};
219
220 bool m_startFromHead{false};
221
222 bool m_unmask{false};
223 bool m_logGroupNameHasBeenSet = false;
224 bool m_logGroupIdentifierHasBeenSet = false;
225 bool m_logStreamNameHasBeenSet = false;
226 bool m_startTimeHasBeenSet = false;
227 bool m_endTimeHasBeenSet = false;
228 bool m_nextTokenHasBeenSet = false;
229 bool m_limitHasBeenSet = false;
230 bool m_startFromHeadHasBeenSet = false;
231 bool m_unmaskHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace CloudWatchLogs
236} // namespace Aws
GetLogEventsRequest & WithStartTime(long long value)
GetLogEventsRequest & WithStartFromHead(bool value)
void SetLogGroupIdentifier(LogGroupIdentifierT &&value)
GetLogEventsRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
GetLogEventsRequest & WithLogStreamName(LogStreamNameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
GetLogEventsRequest & WithEndTime(long long value)
AWS_CLOUDWATCHLOGS_API GetLogEventsRequest()=default
GetLogEventsRequest & WithLogGroupName(LogGroupNameT &&value)
GetLogEventsRequest & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String