AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
46 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
47 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
48 inline GetLogEventsRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
49 inline GetLogEventsRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
50 inline GetLogEventsRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
52
54
61 inline const Aws::String& GetLogGroupIdentifier() const{ return m_logGroupIdentifier; }
62 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
63 inline void SetLogGroupIdentifier(const Aws::String& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = value; }
64 inline void SetLogGroupIdentifier(Aws::String&& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::move(value); }
65 inline void SetLogGroupIdentifier(const char* value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier.assign(value); }
66 inline GetLogEventsRequest& WithLogGroupIdentifier(const Aws::String& value) { SetLogGroupIdentifier(value); return *this;}
67 inline GetLogEventsRequest& WithLogGroupIdentifier(Aws::String&& value) { SetLogGroupIdentifier(std::move(value)); return *this;}
68 inline GetLogEventsRequest& WithLogGroupIdentifier(const char* value) { SetLogGroupIdentifier(value); return *this;}
70
72
75 inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
76 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
77 inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
78 inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); }
79 inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
80 inline GetLogEventsRequest& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
81 inline GetLogEventsRequest& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
82 inline GetLogEventsRequest& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
84
86
92 inline long long GetStartTime() const{ return m_startTime; }
93 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
94 inline void SetStartTime(long long value) { m_startTimeHasBeenSet = true; m_startTime = value; }
95 inline GetLogEventsRequest& WithStartTime(long long value) { SetStartTime(value); return *this;}
97
99
104 inline long long GetEndTime() const{ return m_endTime; }
105 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
106 inline void SetEndTime(long long value) { m_endTimeHasBeenSet = true; m_endTime = value; }
107 inline GetLogEventsRequest& WithEndTime(long long value) { SetEndTime(value); return *this;}
109
111
115 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
116 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
117 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
118 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
119 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
120 inline GetLogEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
121 inline GetLogEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 inline GetLogEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
124
126
131 inline int GetLimit() const{ return m_limit; }
132 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
133 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
134 inline GetLogEventsRequest& WithLimit(int value) { SetLimit(value); return *this;}
136
138
145 inline bool GetStartFromHead() const{ return m_startFromHead; }
146 inline bool StartFromHeadHasBeenSet() const { return m_startFromHeadHasBeenSet; }
147 inline void SetStartFromHead(bool value) { m_startFromHeadHasBeenSet = true; m_startFromHead = value; }
148 inline GetLogEventsRequest& WithStartFromHead(bool value) { SetStartFromHead(value); return *this;}
150
152
158 inline bool GetUnmask() const{ return m_unmask; }
159 inline bool UnmaskHasBeenSet() const { return m_unmaskHasBeenSet; }
160 inline void SetUnmask(bool value) { m_unmaskHasBeenSet = true; m_unmask = value; }
161 inline GetLogEventsRequest& WithUnmask(bool value) { SetUnmask(value); return *this;}
163 private:
164
165 Aws::String m_logGroupName;
166 bool m_logGroupNameHasBeenSet = false;
167
168 Aws::String m_logGroupIdentifier;
169 bool m_logGroupIdentifierHasBeenSet = false;
170
171 Aws::String m_logStreamName;
172 bool m_logStreamNameHasBeenSet = false;
173
174 long long m_startTime;
175 bool m_startTimeHasBeenSet = false;
176
177 long long m_endTime;
178 bool m_endTimeHasBeenSet = false;
179
180 Aws::String m_nextToken;
181 bool m_nextTokenHasBeenSet = false;
182
183 int m_limit;
184 bool m_limitHasBeenSet = false;
185
186 bool m_startFromHead;
187 bool m_startFromHeadHasBeenSet = false;
188
189 bool m_unmask;
190 bool m_unmaskHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace CloudWatchLogs
195} // namespace Aws
GetLogEventsRequest & WithLogStreamName(Aws::String &&value)
GetLogEventsRequest & WithStartTime(long long value)
GetLogEventsRequest & WithStartFromHead(bool value)
void SetLogGroupIdentifier(const Aws::String &value)
GetLogEventsRequest & WithLogGroupIdentifier(const char *value)
GetLogEventsRequest & WithNextToken(Aws::String &&value)
GetLogEventsRequest & WithLogGroupIdentifier(Aws::String &&value)
GetLogEventsRequest & WithNextToken(const Aws::String &value)
GetLogEventsRequest & WithLogStreamName(const Aws::String &value)
GetLogEventsRequest & WithLogGroupName(const Aws::String &value)
GetLogEventsRequest & WithLogGroupName(Aws::String &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
GetLogEventsRequest & WithLogGroupIdentifier(const Aws::String &value)
GetLogEventsRequest & WithLogGroupName(const char *value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
GetLogEventsRequest & WithLogStreamName(const char *value)
GetLogEventsRequest & WithEndTime(long long value)
GetLogEventsRequest & WithNextToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String