AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateScheduledActionRequest.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 CreateScheduledActionRequest();
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 "CreateScheduledAction"; }
34
35 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
36
37 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
47 inline bool GetEnabled() const{ return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline CreateScheduledActionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
52
54
58 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
59 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
60 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
61 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
62 inline CreateScheduledActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
63 inline CreateScheduledActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
71 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
72 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
73 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
74 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
75 inline CreateScheduledActionRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
76 inline CreateScheduledActionRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
77 inline CreateScheduledActionRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
79
81
92 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
93 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
94 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
95 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
96 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
97 inline CreateScheduledActionRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
98 inline CreateScheduledActionRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
99 inline CreateScheduledActionRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
101
103
115 inline const Schedule& GetSchedule() const{ return m_schedule; }
116 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
117 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
118 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
119 inline CreateScheduledActionRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
120 inline CreateScheduledActionRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
122
124
127 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
128 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
129 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = value; }
130 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::move(value); }
131 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription.assign(value); }
136
138
141 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
142 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
143 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
144 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
145 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
148 inline CreateScheduledActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
150
152
156 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
157 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
158 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
159 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
161 inline CreateScheduledActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
163
165
166 inline const TargetAction& GetTargetAction() const{ return m_targetAction; }
167 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
168 inline void SetTargetAction(const TargetAction& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
169 inline void SetTargetAction(TargetAction&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
170 inline CreateScheduledActionRequest& WithTargetAction(const TargetAction& value) { SetTargetAction(value); return *this;}
171 inline CreateScheduledActionRequest& WithTargetAction(TargetAction&& value) { SetTargetAction(std::move(value)); return *this;}
173 private:
174
175 bool m_enabled;
176 bool m_enabledHasBeenSet = false;
177
178 Aws::Utils::DateTime m_endTime;
179 bool m_endTimeHasBeenSet = false;
180
181 Aws::String m_namespaceName;
182 bool m_namespaceNameHasBeenSet = false;
183
184 Aws::String m_roleArn;
185 bool m_roleArnHasBeenSet = false;
186
187 Schedule m_schedule;
188 bool m_scheduleHasBeenSet = false;
189
190 Aws::String m_scheduledActionDescription;
191 bool m_scheduledActionDescriptionHasBeenSet = false;
192
193 Aws::String m_scheduledActionName;
194 bool m_scheduledActionNameHasBeenSet = false;
195
196 Aws::Utils::DateTime m_startTime;
197 bool m_startTimeHasBeenSet = false;
198
199 TargetAction m_targetAction;
200 bool m_targetActionHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace RedshiftServerless
205} // namespace Aws
CreateScheduledActionRequest & WithRoleArn(const Aws::String &value)
CreateScheduledActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
CreateScheduledActionRequest & WithSchedule(Schedule &&value)
CreateScheduledActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
CreateScheduledActionRequest & WithScheduledActionName(const char *value)
CreateScheduledActionRequest & WithTargetAction(TargetAction &&value)
CreateScheduledActionRequest & WithScheduledActionName(Aws::String &&value)
CreateScheduledActionRequest & WithRoleArn(Aws::String &&value)
CreateScheduledActionRequest & WithScheduledActionDescription(const Aws::String &value)
CreateScheduledActionRequest & WithScheduledActionName(const Aws::String &value)
CreateScheduledActionRequest & WithSchedule(const Schedule &value)
CreateScheduledActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
CreateScheduledActionRequest & WithScheduledActionDescription(const char *value)
CreateScheduledActionRequest & WithNamespaceName(Aws::String &&value)
CreateScheduledActionRequest & WithNamespaceName(const char *value)
CreateScheduledActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
CreateScheduledActionRequest & WithTargetAction(const TargetAction &value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
CreateScheduledActionRequest & WithNamespaceName(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateScheduledActionRequest & WithRoleArn(const char *value)
CreateScheduledActionRequest & WithScheduledActionDescription(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String