AWS SDK for C++  1.9.104
AWS SDK for C++
GetRelationalDatabaseLogEventsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "GetRelationalDatabaseLogEvents"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; }
42 
46  inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
47 
51  inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; }
52 
56  inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); }
57 
61  inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); }
62 
66  inline GetRelationalDatabaseLogEventsRequest& WithRelationalDatabaseName(const Aws::String& value) { SetRelationalDatabaseName(value); return *this;}
67 
71  inline GetRelationalDatabaseLogEventsRequest& WithRelationalDatabaseName(Aws::String&& value) { SetRelationalDatabaseName(std::move(value)); return *this;}
72 
76  inline GetRelationalDatabaseLogEventsRequest& WithRelationalDatabaseName(const char* value) { SetRelationalDatabaseName(value); return *this;}
77 
78 
83  inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
84 
89  inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
90 
95  inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
96 
101  inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); }
102 
107  inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
108 
113  inline GetRelationalDatabaseLogEventsRequest& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
114 
119  inline GetRelationalDatabaseLogEventsRequest& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
120 
125  inline GetRelationalDatabaseLogEventsRequest& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
126 
127 
135  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
136 
144  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
145 
153  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
154 
162  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
163 
171  inline GetRelationalDatabaseLogEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
172 
180  inline GetRelationalDatabaseLogEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
181 
182 
190  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
191 
199  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
200 
208  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
209 
217  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
218 
226  inline GetRelationalDatabaseLogEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
227 
235  inline GetRelationalDatabaseLogEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
236 
237 
245  inline bool GetStartFromHead() const{ return m_startFromHead; }
246 
254  inline bool StartFromHeadHasBeenSet() const { return m_startFromHeadHasBeenSet; }
255 
263  inline void SetStartFromHead(bool value) { m_startFromHeadHasBeenSet = true; m_startFromHead = value; }
264 
272  inline GetRelationalDatabaseLogEventsRequest& WithStartFromHead(bool value) { SetStartFromHead(value); return *this;}
273 
274 
282  inline const Aws::String& GetPageToken() const{ return m_pageToken; }
283 
291  inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
292 
300  inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
301 
309  inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
310 
318  inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
319 
327  inline GetRelationalDatabaseLogEventsRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
328 
336  inline GetRelationalDatabaseLogEventsRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
337 
345  inline GetRelationalDatabaseLogEventsRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
346 
347  private:
348 
349  Aws::String m_relationalDatabaseName;
350  bool m_relationalDatabaseNameHasBeenSet;
351 
352  Aws::String m_logStreamName;
353  bool m_logStreamNameHasBeenSet;
354 
355  Aws::Utils::DateTime m_startTime;
356  bool m_startTimeHasBeenSet;
357 
358  Aws::Utils::DateTime m_endTime;
359  bool m_endTimeHasBeenSet;
360 
361  bool m_startFromHead;
362  bool m_startFromHeadHasBeenSet;
363 
364  Aws::String m_pageToken;
365  bool m_pageTokenHasBeenSet;
366  };
367 
368 } // namespace Model
369 } // namespace Lightsail
370 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetLogStreamName
void SetLogStreamName(Aws::String &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:101
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:208
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetLogStreamName
void SetLogStreamName(const char *value)
Definition: GetRelationalDatabaseLogEventsRequest.h:107
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::StartFromHeadHasBeenSet
bool StartFromHeadHasBeenSet() const
Definition: GetRelationalDatabaseLogEventsRequest.h:254
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetLogStreamName
void SetLogStreamName(const Aws::String &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:95
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::GetRelationalDatabaseLogEventsRequest
GetRelationalDatabaseLogEventsRequest()
DateTime.h
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithPageToken
GetRelationalDatabaseLogEventsRequest & WithPageToken(const char *value)
Definition: GetRelationalDatabaseLogEventsRequest.h:345
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetRelationalDatabaseLogEventsRequest.h:135
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithPageToken
GetRelationalDatabaseLogEventsRequest & WithPageToken(const Aws::String &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:327
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::RelationalDatabaseNameHasBeenSet
bool RelationalDatabaseNameHasBeenSet() const
Definition: GetRelationalDatabaseLogEventsRequest.h:46
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::GetRelationalDatabaseName
const Aws::String & GetRelationalDatabaseName() const
Definition: GetRelationalDatabaseLogEventsRequest.h:41
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::GetPageToken
const Aws::String & GetPageToken() const
Definition: GetRelationalDatabaseLogEventsRequest.h:282
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithLogStreamName
GetRelationalDatabaseLogEventsRequest & WithLogStreamName(Aws::String &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:119
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithEndTime
GetRelationalDatabaseLogEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:235
LightsailRequest.h
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetPageToken
void SetPageToken(const char *value)
Definition: GetRelationalDatabaseLogEventsRequest.h:318
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:153
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithRelationalDatabaseName
GetRelationalDatabaseLogEventsRequest & WithRelationalDatabaseName(Aws::String &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:71
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest
Definition: GetRelationalDatabaseLogEventsRequest.h:23
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetRelationalDatabaseLogEventsRequest.h:144
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::PageTokenHasBeenSet
bool PageTokenHasBeenSet() const
Definition: GetRelationalDatabaseLogEventsRequest.h:291
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(Aws::String &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:56
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithPageToken
GetRelationalDatabaseLogEventsRequest & WithPageToken(Aws::String &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:336
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetPageToken
void SetPageToken(const Aws::String &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:300
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithLogStreamName
GetRelationalDatabaseLogEventsRequest & WithLogStreamName(const char *value)
Definition: GetRelationalDatabaseLogEventsRequest.h:125
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const char *value)
Definition: GetRelationalDatabaseLogEventsRequest.h:61
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::GetLogStreamName
const Aws::String & GetLogStreamName() const
Definition: GetRelationalDatabaseLogEventsRequest.h:83
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:217
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::LogStreamNameHasBeenSet
bool LogStreamNameHasBeenSet() const
Definition: GetRelationalDatabaseLogEventsRequest.h:89
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithStartTime
GetRelationalDatabaseLogEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:180
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetStartFromHead
void SetStartFromHead(bool value)
Definition: GetRelationalDatabaseLogEventsRequest.h:263
AWSString.h
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const Aws::String &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:51
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithRelationalDatabaseName
GetRelationalDatabaseLogEventsRequest & WithRelationalDatabaseName(const char *value)
Definition: GetRelationalDatabaseLogEventsRequest.h:76
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithStartFromHead
GetRelationalDatabaseLogEventsRequest & WithStartFromHead(bool value)
Definition: GetRelationalDatabaseLogEventsRequest.h:272
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetRelationalDatabaseLogEventsRequest.h:190
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithRelationalDatabaseName
GetRelationalDatabaseLogEventsRequest & WithRelationalDatabaseName(const Aws::String &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:66
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetRelationalDatabaseLogEventsRequest.h:199
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetPageToken
void SetPageToken(Aws::String &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:309
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::GetStartFromHead
bool GetStartFromHead() const
Definition: GetRelationalDatabaseLogEventsRequest.h:245
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithEndTime
GetRelationalDatabaseLogEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:226
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetRelationalDatabaseLogEventsRequest.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithLogStreamName
GetRelationalDatabaseLogEventsRequest & WithLogStreamName(const Aws::String &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:113
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRelationalDatabaseLogEventsRequest.h:31
Aws::Lightsail::Model::GetRelationalDatabaseLogEventsRequest::WithStartTime
GetRelationalDatabaseLogEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetRelationalDatabaseLogEventsRequest.h:171