AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeEventsRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/SourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_REDSHIFT_API DescribeEventsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
36
37 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
58 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
59 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
60 template<typename SourceIdentifierT = Aws::String>
61 void SetSourceIdentifier(SourceIdentifierT&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
62 template<typename SourceIdentifierT = Aws::String>
63 DescribeEventsRequest& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
65
67
79 inline SourceType GetSourceType() const { return m_sourceType; }
80 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
81 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
82 inline DescribeEventsRequest& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
84
86
92 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
93 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
94 template<typename StartTimeT = Aws::Utils::DateTime>
95 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
96 template<typename StartTimeT = Aws::Utils::DateTime>
97 DescribeEventsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
99
101
107 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
108 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
109 template<typename EndTimeT = Aws::Utils::DateTime>
110 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
111 template<typename EndTimeT = Aws::Utils::DateTime>
112 DescribeEventsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
114
116
122 inline int GetDuration() const { return m_duration; }
123 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
124 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
125 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
127
129
137 inline int GetMaxRecords() const { return m_maxRecords; }
138 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
139 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
140 inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
142
144
152 inline const Aws::String& GetMarker() const { return m_marker; }
153 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
154 template<typename MarkerT = Aws::String>
155 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
156 template<typename MarkerT = Aws::String>
157 DescribeEventsRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
159 private:
160
161 Aws::String m_sourceIdentifier;
162 bool m_sourceIdentifierHasBeenSet = false;
163
164 SourceType m_sourceType{SourceType::NOT_SET};
165 bool m_sourceTypeHasBeenSet = false;
166
167 Aws::Utils::DateTime m_startTime{};
168 bool m_startTimeHasBeenSet = false;
169
170 Aws::Utils::DateTime m_endTime{};
171 bool m_endTimeHasBeenSet = false;
172
173 int m_duration{0};
174 bool m_durationHasBeenSet = false;
175
176 int m_maxRecords{0};
177 bool m_maxRecordsHasBeenSet = false;
178
179 Aws::String m_marker;
180 bool m_markerHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace Redshift
185} // namespace Aws
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & WithSourceType(SourceType value)
DescribeEventsRequest & WithMaxRecords(int value)
DescribeEventsRequest & WithEndTime(EndTimeT &&value)
AWS_REDSHIFT_API DescribeEventsRequest()=default
const Aws::Utils::DateTime & GetEndTime() const
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
void SetSourceIdentifier(SourceIdentifierT &&value)
DescribeEventsRequest & WithMarker(MarkerT &&value)
DescribeEventsRequest & WithDuration(int value)
const Aws::Utils::DateTime & GetStartTime() const
DescribeEventsRequest & WithSourceIdentifier(SourceIdentifierT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String