AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetLogEventsRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CloudWatchLogs
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CLOUDWATCHLOGS_API GetLogEventsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetLogEvents"; }
31
32 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
43 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
44 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
45 template<typename LogGroupNameT = Aws::String>
46 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
47 template<typename LogGroupNameT = Aws::String>
48 GetLogEventsRequest& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
50
52
59 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
60 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
61 template<typename LogGroupIdentifierT = Aws::String>
62 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value); }
63 template<typename LogGroupIdentifierT = Aws::String>
64 GetLogEventsRequest& WithLogGroupIdentifier(LogGroupIdentifierT&& value) { SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value)); return *this;}
66
68
71 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
72 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
73 template<typename LogStreamNameT = Aws::String>
74 void SetLogStreamName(LogStreamNameT&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::forward<LogStreamNameT>(value); }
75 template<typename LogStreamNameT = Aws::String>
76 GetLogEventsRequest& WithLogStreamName(LogStreamNameT&& value) { SetLogStreamName(std::forward<LogStreamNameT>(value)); return *this;}
78
80
86 inline long long GetStartTime() const { return m_startTime; }
87 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
88 inline void SetStartTime(long long value) { m_startTimeHasBeenSet = true; m_startTime = value; }
89 inline GetLogEventsRequest& WithStartTime(long long value) { SetStartTime(value); return *this;}
91
93
98 inline long long GetEndTime() const { return m_endTime; }
99 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
100 inline void SetEndTime(long long value) { m_endTimeHasBeenSet = true; m_endTime = value; }
101 inline GetLogEventsRequest& WithEndTime(long long value) { SetEndTime(value); return *this;}
103
105
109 inline const Aws::String& GetNextToken() const { return m_nextToken; }
110 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
111 template<typename NextTokenT = Aws::String>
112 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
113 template<typename NextTokenT = Aws::String>
114 GetLogEventsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
116
118
123 inline int GetLimit() const { return m_limit; }
124 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
125 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
126 inline GetLogEventsRequest& WithLimit(int value) { SetLimit(value); return *this;}
128
130
137 inline bool GetStartFromHead() const { return m_startFromHead; }
138 inline bool StartFromHeadHasBeenSet() const { return m_startFromHeadHasBeenSet; }
139 inline void SetStartFromHead(bool value) { m_startFromHeadHasBeenSet = true; m_startFromHead = value; }
140 inline GetLogEventsRequest& WithStartFromHead(bool value) { SetStartFromHead(value); return *this;}
142
144
150 inline bool GetUnmask() const { return m_unmask; }
151 inline bool UnmaskHasBeenSet() const { return m_unmaskHasBeenSet; }
152 inline void SetUnmask(bool value) { m_unmaskHasBeenSet = true; m_unmask = value; }
153 inline GetLogEventsRequest& WithUnmask(bool value) { SetUnmask(value); return *this;}
155 private:
156
157 Aws::String m_logGroupName;
158 bool m_logGroupNameHasBeenSet = false;
159
160 Aws::String m_logGroupIdentifier;
161 bool m_logGroupIdentifierHasBeenSet = false;
162
163 Aws::String m_logStreamName;
164 bool m_logStreamNameHasBeenSet = false;
165
166 long long m_startTime{0};
167 bool m_startTimeHasBeenSet = false;
168
169 long long m_endTime{0};
170 bool m_endTimeHasBeenSet = false;
171
172 Aws::String m_nextToken;
173 bool m_nextTokenHasBeenSet = false;
174
175 int m_limit{0};
176 bool m_limitHasBeenSet = false;
177
178 bool m_startFromHead{false};
179 bool m_startFromHeadHasBeenSet = false;
180
181 bool m_unmask{false};
182 bool m_unmaskHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace CloudWatchLogs
187} // 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