AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeScheduledActionsRequest.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/ScheduledActionTypeValues.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/redshift/model/ScheduledActionFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Redshift
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_REDSHIFT_API DescribeScheduledActionsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DescribeScheduledActions"; }
35
36 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
48 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
49 template<typename ScheduledActionNameT = Aws::String>
50 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
51 template<typename ScheduledActionNameT = Aws::String>
52 DescribeScheduledActionsRequest& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
54
56
59 inline ScheduledActionTypeValues GetTargetActionType() const { return m_targetActionType; }
60 inline bool TargetActionTypeHasBeenSet() const { return m_targetActionTypeHasBeenSet; }
61 inline void SetTargetActionType(ScheduledActionTypeValues value) { m_targetActionTypeHasBeenSet = true; m_targetActionType = value; }
64
66
70 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
71 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
72 template<typename StartTimeT = Aws::Utils::DateTime>
73 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
74 template<typename StartTimeT = Aws::Utils::DateTime>
75 DescribeScheduledActionsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
77
79
83 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
84 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
85 template<typename EndTimeT = Aws::Utils::DateTime>
86 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
87 template<typename EndTimeT = Aws::Utils::DateTime>
88 DescribeScheduledActionsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
90
92
96 inline bool GetActive() const { return m_active; }
97 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
98 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
99 inline DescribeScheduledActionsRequest& WithActive(bool value) { SetActive(value); return *this;}
101
103
106 inline const Aws::Vector<ScheduledActionFilter>& GetFilters() const { return m_filters; }
107 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
108 template<typename FiltersT = Aws::Vector<ScheduledActionFilter>>
109 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
110 template<typename FiltersT = Aws::Vector<ScheduledActionFilter>>
111 DescribeScheduledActionsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
112 template<typename FiltersT = ScheduledActionFilter>
113 DescribeScheduledActionsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
115
117
125 inline const Aws::String& GetMarker() const { return m_marker; }
126 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
127 template<typename MarkerT = Aws::String>
128 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
129 template<typename MarkerT = Aws::String>
130 DescribeScheduledActionsRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
132
134
142 inline int GetMaxRecords() const { return m_maxRecords; }
143 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
144 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
145 inline DescribeScheduledActionsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
147 private:
148
149 Aws::String m_scheduledActionName;
150 bool m_scheduledActionNameHasBeenSet = false;
151
153 bool m_targetActionTypeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_startTime{};
156 bool m_startTimeHasBeenSet = false;
157
158 Aws::Utils::DateTime m_endTime{};
159 bool m_endTimeHasBeenSet = false;
160
161 bool m_active{false};
162 bool m_activeHasBeenSet = false;
163
165 bool m_filtersHasBeenSet = false;
166
167 Aws::String m_marker;
168 bool m_markerHasBeenSet = false;
169
170 int m_maxRecords{0};
171 bool m_maxRecordsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace Redshift
176} // 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