AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
57 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
58 inline UpdateScheduledActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
59 inline UpdateScheduledActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
61
63
74 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
75 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
76 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
77 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
78 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
79 inline UpdateScheduledActionRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
80 inline UpdateScheduledActionRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
81 inline UpdateScheduledActionRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
83
85
97 inline const Schedule& GetSchedule() const{ return m_schedule; }
98 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
99 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
100 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
101 inline UpdateScheduledActionRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
102 inline UpdateScheduledActionRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
110 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
111 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = value; }
112 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::move(value); }
113 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription.assign(value); }
118
120
123 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
124 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
125 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
126 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
127 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
130 inline UpdateScheduledActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
138 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
139 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
140 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
142 inline UpdateScheduledActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
144
146
147 inline const TargetAction& GetTargetAction() const{ return m_targetAction; }
148 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
149 inline void SetTargetAction(const TargetAction& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
150 inline void SetTargetAction(TargetAction&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
151 inline UpdateScheduledActionRequest& WithTargetAction(const TargetAction& value) { SetTargetAction(value); return *this;}
152 inline UpdateScheduledActionRequest& WithTargetAction(TargetAction&& value) { SetTargetAction(std::move(value)); return *this;}
154 private:
155
156 bool m_enabled;
157 bool m_enabledHasBeenSet = false;
158
159 Aws::Utils::DateTime m_endTime;
160 bool m_endTimeHasBeenSet = false;
161
162 Aws::String m_roleArn;
163 bool m_roleArnHasBeenSet = false;
164
165 Schedule m_schedule;
166 bool m_scheduleHasBeenSet = false;
167
168 Aws::String m_scheduledActionDescription;
169 bool m_scheduledActionDescriptionHasBeenSet = false;
170
171 Aws::String m_scheduledActionName;
172 bool m_scheduledActionNameHasBeenSet = false;
173
174 Aws::Utils::DateTime m_startTime;
175 bool m_startTimeHasBeenSet = false;
176
177 TargetAction m_targetAction;
178 bool m_targetActionHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace RedshiftServerless
183} // namespace Aws
UpdateScheduledActionRequest & WithScheduledActionName(Aws::String &&value)
UpdateScheduledActionRequest & WithTargetAction(const TargetAction &value)
UpdateScheduledActionRequest & WithScheduledActionDescription(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateScheduledActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
UpdateScheduledActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
UpdateScheduledActionRequest & WithRoleArn(const char *value)
UpdateScheduledActionRequest & WithScheduledActionName(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
UpdateScheduledActionRequest & WithSchedule(Schedule &&value)
UpdateScheduledActionRequest & WithScheduledActionDescription(Aws::String &&value)
UpdateScheduledActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
UpdateScheduledActionRequest & WithSchedule(const Schedule &value)
UpdateScheduledActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
UpdateScheduledActionRequest & WithScheduledActionDescription(const Aws::String &value)
UpdateScheduledActionRequest & WithRoleArn(const Aws::String &value)
UpdateScheduledActionRequest & WithRoleArn(Aws::String &&value)
UpdateScheduledActionRequest & WithScheduledActionName(const Aws::String &value)
UpdateScheduledActionRequest & WithTargetAction(TargetAction &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String