AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DescribeScheduledActionsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/RedshiftRequest.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/ScheduledActionFilter.h>
13#include <aws/redshift/model/ScheduledActionTypeValues.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Redshift {
19namespace Model {
20
24 public:
25 AWS_REDSHIFT_API DescribeScheduledActionsRequest() = 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 "DescribeScheduledActions"; }
32
33 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
43 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
44 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
45 template <typename ScheduledActionNameT = Aws::String>
46 void SetScheduledActionName(ScheduledActionNameT&& value) {
47 m_scheduledActionNameHasBeenSet = true;
48 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
49 }
50 template <typename ScheduledActionNameT = Aws::String>
52 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
53 return *this;
54 }
56
58
61 inline ScheduledActionTypeValues GetTargetActionType() const { return m_targetActionType; }
62 inline bool TargetActionTypeHasBeenSet() const { return m_targetActionTypeHasBeenSet; }
64 m_targetActionTypeHasBeenSet = true;
65 m_targetActionType = value;
66 }
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
79 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
80 template <typename StartTimeT = Aws::Utils::DateTime>
81 void SetStartTime(StartTimeT&& value) {
82 m_startTimeHasBeenSet = true;
83 m_startTime = std::forward<StartTimeT>(value);
84 }
85 template <typename StartTimeT = Aws::Utils::DateTime>
87 SetStartTime(std::forward<StartTimeT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
98 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
99 template <typename EndTimeT = Aws::Utils::DateTime>
100 void SetEndTime(EndTimeT&& value) {
101 m_endTimeHasBeenSet = true;
102 m_endTime = std::forward<EndTimeT>(value);
103 }
104 template <typename EndTimeT = Aws::Utils::DateTime>
106 SetEndTime(std::forward<EndTimeT>(value));
107 return *this;
108 }
110
112
116 inline bool GetActive() const { return m_active; }
117 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
118 inline void SetActive(bool value) {
119 m_activeHasBeenSet = true;
120 m_active = value;
121 }
123 SetActive(value);
124 return *this;
125 }
127
129
132 inline const Aws::Vector<ScheduledActionFilter>& GetFilters() const { return m_filters; }
133 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
134 template <typename FiltersT = Aws::Vector<ScheduledActionFilter>>
135 void SetFilters(FiltersT&& value) {
136 m_filtersHasBeenSet = true;
137 m_filters = std::forward<FiltersT>(value);
138 }
139 template <typename FiltersT = Aws::Vector<ScheduledActionFilter>>
141 SetFilters(std::forward<FiltersT>(value));
142 return *this;
143 }
144 template <typename FiltersT = ScheduledActionFilter>
146 m_filtersHasBeenSet = true;
147 m_filters.emplace_back(std::forward<FiltersT>(value));
148 return *this;
149 }
151
153
161 inline const Aws::String& GetMarker() const { return m_marker; }
162 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
163 template <typename MarkerT = Aws::String>
164 void SetMarker(MarkerT&& value) {
165 m_markerHasBeenSet = true;
166 m_marker = std::forward<MarkerT>(value);
167 }
168 template <typename MarkerT = Aws::String>
170 SetMarker(std::forward<MarkerT>(value));
171 return *this;
172 }
174
176
184 inline int GetMaxRecords() const { return m_maxRecords; }
185 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
186 inline void SetMaxRecords(int value) {
187 m_maxRecordsHasBeenSet = true;
188 m_maxRecords = value;
189 }
191 SetMaxRecords(value);
192 return *this;
193 }
195 private:
196 Aws::String m_scheduledActionName;
197
199
200 Aws::Utils::DateTime m_startTime{};
201
202 Aws::Utils::DateTime m_endTime{};
203
204 bool m_active{false};
205
207
208 Aws::String m_marker;
209
210 int m_maxRecords{0};
211 bool m_scheduledActionNameHasBeenSet = false;
212 bool m_targetActionTypeHasBeenSet = false;
213 bool m_startTimeHasBeenSet = false;
214 bool m_endTimeHasBeenSet = false;
215 bool m_activeHasBeenSet = false;
216 bool m_filtersHasBeenSet = false;
217 bool m_markerHasBeenSet = false;
218 bool m_maxRecordsHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace Redshift
223} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
DescribeScheduledActionsRequest & AddFilters(FiltersT &&value)
DescribeScheduledActionsRequest & WithEndTime(EndTimeT &&value)
const Aws::Vector< ScheduledActionFilter > & GetFilters() const
DescribeScheduledActionsRequest & WithScheduledActionName(ScheduledActionNameT &&value)
DescribeScheduledActionsRequest & WithTargetActionType(ScheduledActionTypeValues value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeScheduledActionsRequest & WithMarker(MarkerT &&value)
DescribeScheduledActionsRequest & WithFilters(FiltersT &&value)
DescribeScheduledActionsRequest & WithStartTime(StartTimeT &&value)
AWS_REDSHIFT_API DescribeScheduledActionsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector