AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateScheduledActionRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/redshift-serverless/model/Schedule.h>
12#include <aws/redshift-serverless/model/TargetAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace RedshiftServerless
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_REDSHIFTSERVERLESS_API UpdateScheduledActionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateScheduledAction"; }
34
35 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
36
37 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline bool GetEnabled() const { return m_enabled; }
45 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
46 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
47 inline UpdateScheduledActionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
49
51
54 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
55 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
56 template<typename EndTimeT = Aws::Utils::DateTime>
57 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
58 template<typename EndTimeT = Aws::Utils::DateTime>
59 UpdateScheduledActionRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
61
63
74 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
75 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
76 template<typename RoleArnT = Aws::String>
77 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
78 template<typename RoleArnT = Aws::String>
79 UpdateScheduledActionRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
81
83
95 inline const Schedule& GetSchedule() const { return m_schedule; }
96 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
97 template<typename ScheduleT = Schedule>
98 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
99 template<typename ScheduleT = Schedule>
100 UpdateScheduledActionRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
102
104
107 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
108 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
109 template<typename ScheduledActionDescriptionT = Aws::String>
110 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value); }
111 template<typename ScheduledActionDescriptionT = Aws::String>
112 UpdateScheduledActionRequest& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) { SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value)); return *this;}
114
116
119 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
120 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
121 template<typename ScheduledActionNameT = Aws::String>
122 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
123 template<typename ScheduledActionNameT = Aws::String>
124 UpdateScheduledActionRequest& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
132 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
133 template<typename StartTimeT = Aws::Utils::DateTime>
134 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
135 template<typename StartTimeT = Aws::Utils::DateTime>
136 UpdateScheduledActionRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
138
140
141 inline const TargetAction& GetTargetAction() const { return m_targetAction; }
142 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
143 template<typename TargetActionT = TargetAction>
144 void SetTargetAction(TargetActionT&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::forward<TargetActionT>(value); }
145 template<typename TargetActionT = TargetAction>
146 UpdateScheduledActionRequest& WithTargetAction(TargetActionT&& value) { SetTargetAction(std::forward<TargetActionT>(value)); return *this;}
148 private:
149
150 bool m_enabled{false};
151 bool m_enabledHasBeenSet = false;
152
153 Aws::Utils::DateTime m_endTime{};
154 bool m_endTimeHasBeenSet = false;
155
156 Aws::String m_roleArn;
157 bool m_roleArnHasBeenSet = false;
158
159 Schedule m_schedule;
160 bool m_scheduleHasBeenSet = false;
161
162 Aws::String m_scheduledActionDescription;
163 bool m_scheduledActionDescriptionHasBeenSet = false;
164
165 Aws::String m_scheduledActionName;
166 bool m_scheduledActionNameHasBeenSet = false;
167
168 Aws::Utils::DateTime m_startTime{};
169 bool m_startTimeHasBeenSet = false;
170
171 TargetAction m_targetAction;
172 bool m_targetActionHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace RedshiftServerless
177} // namespace Aws
UpdateScheduledActionRequest & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateScheduledActionRequest & WithEndTime(EndTimeT &&value)
UpdateScheduledActionRequest & WithSchedule(ScheduleT &&value)
UpdateScheduledActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
AWS_REDSHIFTSERVERLESS_API UpdateScheduledActionRequest()=default
UpdateScheduledActionRequest & WithTargetAction(TargetActionT &&value)
UpdateScheduledActionRequest & WithRoleArn(RoleArnT &&value)
UpdateScheduledActionRequest & WithStartTime(StartTimeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String