AWS SDK for C++  1.9.159
AWS SDK for C++
GetLogEventsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudWatchLogs
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
41 
45  inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
46 
50  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
51 
55  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
56 
60  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
61 
65  inline GetLogEventsRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
66 
70  inline GetLogEventsRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
71 
75  inline GetLogEventsRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
76 
77 
81  inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
82 
86  inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
87 
91  inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
92 
96  inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); }
97 
101  inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
102 
106  inline GetLogEventsRequest& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
107 
111  inline GetLogEventsRequest& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
112 
116  inline GetLogEventsRequest& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
117 
118 
125  inline long long GetStartTime() const{ return m_startTime; }
126 
133  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
134 
141  inline void SetStartTime(long long value) { m_startTimeHasBeenSet = true; m_startTime = value; }
142 
149  inline GetLogEventsRequest& WithStartTime(long long value) { SetStartTime(value); return *this;}
150 
151 
157  inline long long GetEndTime() const{ return m_endTime; }
158 
164  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
165 
171  inline void SetEndTime(long long value) { m_endTimeHasBeenSet = true; m_endTime = value; }
172 
178  inline GetLogEventsRequest& WithEndTime(long long value) { SetEndTime(value); return *this;}
179 
180 
185  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
186 
191  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
192 
197  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
198 
203  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
204 
209  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
210 
215  inline GetLogEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
216 
221  inline GetLogEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
222 
227  inline GetLogEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
228 
229 
235  inline int GetLimit() const{ return m_limit; }
236 
242  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
243 
249  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
250 
256  inline GetLogEventsRequest& WithLimit(int value) { SetLimit(value); return *this;}
257 
258 
266  inline bool GetStartFromHead() const{ return m_startFromHead; }
267 
275  inline bool StartFromHeadHasBeenSet() const { return m_startFromHeadHasBeenSet; }
276 
284  inline void SetStartFromHead(bool value) { m_startFromHeadHasBeenSet = true; m_startFromHead = value; }
285 
293  inline GetLogEventsRequest& WithStartFromHead(bool value) { SetStartFromHead(value); return *this;}
294 
295  private:
296 
297  Aws::String m_logGroupName;
298  bool m_logGroupNameHasBeenSet;
299 
300  Aws::String m_logStreamName;
301  bool m_logStreamNameHasBeenSet;
302 
303  long long m_startTime;
304  bool m_startTimeHasBeenSet;
305 
306  long long m_endTime;
307  bool m_endTimeHasBeenSet;
308 
309  Aws::String m_nextToken;
310  bool m_nextTokenHasBeenSet;
311 
312  int m_limit;
313  bool m_limitHasBeenSet;
314 
315  bool m_startFromHead;
316  bool m_startFromHeadHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace CloudWatchLogs
321 } // namespace Aws
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetLogEventsRequest.h:203
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetLogEventsRequest.h:185
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithLogStreamName
GetLogEventsRequest & WithLogStreamName(const char *value)
Definition: GetLogEventsRequest.h:116
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CloudWatchLogs::Model::GetLogEventsRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetLogEventsRequest.h:133
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetLimit
void SetLimit(int value)
Definition: GetLogEventsRequest.h:249
Aws::CloudWatchLogs::Model::GetLogEventsRequest::LogGroupNameHasBeenSet
bool LogGroupNameHasBeenSet() const
Definition: GetLogEventsRequest.h:45
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetLogStreamName
const Aws::String & GetLogStreamName() const
Definition: GetLogEventsRequest.h:81
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetLogGroupName
void SetLogGroupName(Aws::String &&value)
Definition: GetLogEventsRequest.h:55
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithNextToken
GetLogEventsRequest & WithNextToken(const Aws::String &value)
Definition: GetLogEventsRequest.h:215
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudWatchLogs::Model::GetLogEventsRequest
Definition: GetLogEventsRequest.h:22
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetLimit
int GetLimit() const
Definition: GetLogEventsRequest.h:235
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetLogStreamName
void SetLogStreamName(Aws::String &&value)
Definition: GetLogEventsRequest.h:96
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::GetLogEventsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetLogEventsRequest.h:191
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetStartFromHead
bool GetStartFromHead() const
Definition: GetLogEventsRequest.h:266
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetLogEventsRequest.h:209
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithNextToken
GetLogEventsRequest & WithNextToken(Aws::String &&value)
Definition: GetLogEventsRequest.h:221
Aws::CloudWatchLogs::CloudWatchLogsRequest
Definition: CloudWatchLogsRequest.h:17
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithEndTime
GetLogEventsRequest & WithEndTime(long long value)
Definition: GetLogEventsRequest.h:178
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithLogGroupName
GetLogEventsRequest & WithLogGroupName(const char *value)
Definition: GetLogEventsRequest.h:75
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithLimit
GetLogEventsRequest & WithLimit(int value)
Definition: GetLogEventsRequest.h:256
AWSString.h
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetStartTime
void SetStartTime(long long value)
Definition: GetLogEventsRequest.h:141
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithStartTime
GetLogEventsRequest & WithStartTime(long long value)
Definition: GetLogEventsRequest.h:149
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetLogEventsRequest.h:30
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithNextToken
GetLogEventsRequest & WithNextToken(const char *value)
Definition: GetLogEventsRequest.h:227
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithLogStreamName
GetLogEventsRequest & WithLogStreamName(const Aws::String &value)
Definition: GetLogEventsRequest.h:106
Aws::CloudWatchLogs::Model::GetLogEventsRequest::LogStreamNameHasBeenSet
bool LogStreamNameHasBeenSet() const
Definition: GetLogEventsRequest.h:86
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetStartTime
long long GetStartTime() const
Definition: GetLogEventsRequest.h:125
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithLogGroupName
GetLogEventsRequest & WithLogGroupName(const Aws::String &value)
Definition: GetLogEventsRequest.h:65
Aws::CloudWatchLogs::Model::GetLogEventsRequest::StartFromHeadHasBeenSet
bool StartFromHeadHasBeenSet() const
Definition: GetLogEventsRequest.h:275
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetEndTime
long long GetEndTime() const
Definition: GetLogEventsRequest.h:157
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithLogGroupName
GetLogEventsRequest & WithLogGroupName(Aws::String &&value)
Definition: GetLogEventsRequest.h:70
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetLogEventsRequest.h:197
Aws::CloudWatchLogs::Model::GetLogEventsRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetLogEventsRequest.h:164
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithLogStreamName
GetLogEventsRequest & WithLogStreamName(Aws::String &&value)
Definition: GetLogEventsRequest.h:111
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetStartFromHead
void SetStartFromHead(bool value)
Definition: GetLogEventsRequest.h:284
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetLogStreamName
void SetLogStreamName(const char *value)
Definition: GetLogEventsRequest.h:101
CloudWatchLogsRequest.h
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetLogEventsRequest
GetLogEventsRequest()
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetLogStreamName
void SetLogStreamName(const Aws::String &value)
Definition: GetLogEventsRequest.h:91
Aws::CloudWatchLogs::Model::GetLogEventsRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: GetLogEventsRequest.h:242
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetEndTime
void SetEndTime(long long value)
Definition: GetLogEventsRequest.h:171
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetLogGroupName
void SetLogGroupName(const Aws::String &value)
Definition: GetLogEventsRequest.h:50
Aws::CloudWatchLogs::Model::GetLogEventsRequest::GetLogGroupName
const Aws::String & GetLogGroupName() const
Definition: GetLogEventsRequest.h:40
Aws::CloudWatchLogs::Model::GetLogEventsRequest::SetLogGroupName
void SetLogGroupName(const char *value)
Definition: GetLogEventsRequest.h:60
Aws::CloudWatchLogs::Model::GetLogEventsRequest::WithStartFromHead
GetLogEventsRequest & WithStartFromHead(bool value)
Definition: GetLogEventsRequest.h:293