AWS SDK for C++  0.14.3
AWS SDK for C++
GetLogEventsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace CloudWatchLogs
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
40  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
41 
45  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
46 
50  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
51 
55  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
56 
60  inline GetLogEventsRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
61 
65  inline GetLogEventsRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(value); return *this;}
66 
70  inline GetLogEventsRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
71 
75  inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
76 
80  inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
81 
85  inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
86 
90  inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
91 
95  inline GetLogEventsRequest& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
96 
100  inline GetLogEventsRequest& WithLogStreamName(Aws::String&& value) { SetLogStreamName(value); return *this;}
101 
105  inline GetLogEventsRequest& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
106 
107 
108  inline long long GetStartTime() const{ return m_startTime; }
109 
110 
111  inline void SetStartTime(long long value) { m_startTimeHasBeenSet = true; m_startTime = value; }
112 
113 
114  inline GetLogEventsRequest& WithStartTime(long long value) { SetStartTime(value); return *this;}
115 
116 
117  inline long long GetEndTime() const{ return m_endTime; }
118 
119 
120  inline void SetEndTime(long long value) { m_endTimeHasBeenSet = true; m_endTime = value; }
121 
122 
123  inline GetLogEventsRequest& WithEndTime(long long value) { SetEndTime(value); return *this;}
124 
131  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
132 
139  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
140 
147  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
148 
155  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
156 
163  inline GetLogEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
164 
171  inline GetLogEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
172 
179  inline GetLogEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
180 
186  inline int GetLimit() const{ return m_limit; }
187 
193  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
194 
200  inline GetLogEventsRequest& WithLimit(int value) { SetLimit(value); return *this;}
201 
206  inline bool GetStartFromHead() const{ return m_startFromHead; }
207 
212  inline void SetStartFromHead(bool value) { m_startFromHeadHasBeenSet = true; m_startFromHead = value; }
213 
218  inline GetLogEventsRequest& WithStartFromHead(bool value) { SetStartFromHead(value); return *this;}
219 
220  private:
221  Aws::String m_logGroupName;
222  bool m_logGroupNameHasBeenSet;
223  Aws::String m_logStreamName;
224  bool m_logStreamNameHasBeenSet;
225  long long m_startTime;
226  bool m_startTimeHasBeenSet;
227  long long m_endTime;
228  bool m_endTimeHasBeenSet;
229  Aws::String m_nextToken;
230  bool m_nextTokenHasBeenSet;
231  int m_limit;
232  bool m_limitHasBeenSet;
233  bool m_startFromHead;
234  bool m_startFromHeadHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace CloudWatchLogs
239 } // namespace Aws
GetLogEventsRequest & WithLogGroupName(Aws::String &&value)
GetLogEventsRequest & WithLogStreamName(const Aws::String &value)
GetLogEventsRequest & WithNextToken(const Aws::String &value)
GetLogEventsRequest & WithNextToken(Aws::String &&value)
GetLogEventsRequest & WithLogStreamName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
GetLogEventsRequest & WithLogGroupName(const char *value)
GetLogEventsRequest & WithStartTime(long long value)
#define AWS_CLOUDWATCHLOGS_API
GetLogEventsRequest & WithEndTime(long long value)
GetLogEventsRequest & WithNextToken(const char *value)
GetLogEventsRequest & WithLogGroupName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetLogEventsRequest & WithLogStreamName(const char *value)
GetLogEventsRequest & WithStartFromHead(bool value)
JSON (JavaScript Object Notation).