AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetRelationalDatabaseLogEventsRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LIGHTSAIL_API GetRelationalDatabaseLogEventsRequest() = default;
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetRelationalDatabaseName() const { return m_relationalDatabaseName; }
43 inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
44 template<typename RelationalDatabaseNameT = Aws::String>
45 void SetRelationalDatabaseName(RelationalDatabaseNameT&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::forward<RelationalDatabaseNameT>(value); }
46 template<typename RelationalDatabaseNameT = Aws::String>
47 GetRelationalDatabaseLogEventsRequest& WithRelationalDatabaseName(RelationalDatabaseNameT&& value) { SetRelationalDatabaseName(std::forward<RelationalDatabaseNameT>(value)); return *this;}
49
51
55 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
56 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
57 template<typename LogStreamNameT = Aws::String>
58 void SetLogStreamName(LogStreamNameT&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::forward<LogStreamNameT>(value); }
59 template<typename LogStreamNameT = Aws::String>
60 GetRelationalDatabaseLogEventsRequest& WithLogStreamName(LogStreamNameT&& value) { SetLogStreamName(std::forward<LogStreamNameT>(value)); return *this;}
62
64
71 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
72 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
73 template<typename StartTimeT = Aws::Utils::DateTime>
74 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
75 template<typename StartTimeT = Aws::Utils::DateTime>
76 GetRelationalDatabaseLogEventsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
78
80
87 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
88 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
89 template<typename EndTimeT = Aws::Utils::DateTime>
90 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
91 template<typename EndTimeT = Aws::Utils::DateTime>
92 GetRelationalDatabaseLogEventsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
94
96
103 inline bool GetStartFromHead() const { return m_startFromHead; }
104 inline bool StartFromHeadHasBeenSet() const { return m_startFromHeadHasBeenSet; }
105 inline void SetStartFromHead(bool value) { m_startFromHeadHasBeenSet = true; m_startFromHead = value; }
108
110
117 inline const Aws::String& GetPageToken() const { return m_pageToken; }
118 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
119 template<typename PageTokenT = Aws::String>
120 void SetPageToken(PageTokenT&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::forward<PageTokenT>(value); }
121 template<typename PageTokenT = Aws::String>
122 GetRelationalDatabaseLogEventsRequest& WithPageToken(PageTokenT&& value) { SetPageToken(std::forward<PageTokenT>(value)); return *this;}
124 private:
125
126 Aws::String m_relationalDatabaseName;
127 bool m_relationalDatabaseNameHasBeenSet = false;
128
129 Aws::String m_logStreamName;
130 bool m_logStreamNameHasBeenSet = false;
131
132 Aws::Utils::DateTime m_startTime{};
133 bool m_startTimeHasBeenSet = false;
134
135 Aws::Utils::DateTime m_endTime{};
136 bool m_endTimeHasBeenSet = false;
137
138 bool m_startFromHead{false};
139 bool m_startFromHeadHasBeenSet = false;
140
141 Aws::String m_pageToken;
142 bool m_pageTokenHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace Lightsail
147} // namespace Aws
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetRelationalDatabaseLogEventsRequest & WithEndTime(EndTimeT &&value)
GetRelationalDatabaseLogEventsRequest & WithRelationalDatabaseName(RelationalDatabaseNameT &&value)
GetRelationalDatabaseLogEventsRequest & WithPageToken(PageTokenT &&value)
GetRelationalDatabaseLogEventsRequest & WithLogStreamName(LogStreamNameT &&value)
GetRelationalDatabaseLogEventsRequest & WithStartTime(StartTimeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String