7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/ScheduledActionType.h>
11#include <aws/redshift/model/ScheduledActionState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/redshift/model/ResponseMetadata.h>
56 template<
typename ScheduledActionNameT = Aws::String>
57 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet =
true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
58 template<
typename ScheduledActionNameT = Aws::String>
71 template<
typename TargetActionT = ScheduledActionType>
72 void SetTargetAction(TargetActionT&& value) { m_targetActionHasBeenSet =
true; m_targetAction = std::forward<TargetActionT>(value); }
73 template<
typename TargetActionT = ScheduledActionType>
91 template<
typename ScheduleT = Aws::String>
92 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
93 template<
typename ScheduleT = Aws::String>
110 template<
typename IamRoleT = Aws::String>
111 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet =
true; m_iamRole = std::forward<IamRoleT>(value); }
112 template<
typename IamRoleT = Aws::String>
122 template<
typename ScheduledActionDescriptionT = Aws::String>
123 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) { m_scheduledActionDescriptionHasBeenSet =
true; m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value); }
124 template<
typename ScheduledActionDescriptionT = Aws::String>
144 template<
typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
145 void SetNextInvocations(NextInvocationsT&& value) { m_nextInvocationsHasBeenSet =
true; m_nextInvocations = std::forward<NextInvocationsT>(value); }
146 template<
typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
148 template<
typename NextInvocationsT = Aws::Utils::DateTime>
149 ScheduledAction&
AddNextInvocations(NextInvocationsT&& value) { m_nextInvocationsHasBeenSet =
true; m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value));
return *
this; }
159 template<
typename StartTimeT = Aws::Utils::DateTime>
160 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
161 template<
typename StartTimeT = Aws::Utils::DateTime>
172 template<
typename EndTimeT = Aws::Utils::DateTime>
173 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet =
true; m_endTime = std::forward<EndTimeT>(value); }
174 template<
typename EndTimeT = Aws::Utils::DateTime>
181 template<
typename ResponseMetadataT = ResponseMetadata>
182 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet =
true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
183 template<
typename ResponseMetadataT = ResponseMetadata>
189 bool m_scheduledActionNameHasBeenSet =
false;
192 bool m_targetActionHasBeenSet =
false;
195 bool m_scheduleHasBeenSet =
false;
198 bool m_iamRoleHasBeenSet =
false;
201 bool m_scheduledActionDescriptionHasBeenSet =
false;
204 bool m_stateHasBeenSet =
false;
207 bool m_nextInvocationsHasBeenSet =
false;
210 bool m_startTimeHasBeenSet =
false;
213 bool m_endTimeHasBeenSet =
false;
215 ResponseMetadata m_responseMetadata;
216 bool m_responseMetadataHasBeenSet =
true;
bool ScheduledActionDescriptionHasBeenSet() const
void SetResponseMetadata(ResponseMetadataT &&value)
AWS_REDSHIFT_API ScheduledAction()=default
bool NextInvocationsHasBeenSet() const
bool IamRoleHasBeenSet() const
void SetEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
bool EndTimeHasBeenSet() const
ScheduledAction & WithStartTime(StartTimeT &&value)
const Aws::String & GetSchedule() const
ScheduledAction & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
bool ScheduleHasBeenSet() const
ScheduledAction & WithEndTime(EndTimeT &&value)
ScheduledAction & AddNextInvocations(NextInvocationsT &&value)
AWS_REDSHIFT_API ScheduledAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const ScheduledActionType & GetTargetAction() const
ScheduledAction & WithIamRole(IamRoleT &&value)
void SetState(ScheduledActionState value)
void SetScheduledActionName(ScheduledActionNameT &&value)
void SetStartTime(StartTimeT &&value)
ScheduledAction & WithState(ScheduledActionState value)
bool StartTimeHasBeenSet() const
const Aws::String & GetIamRole() const
void SetScheduledActionDescription(ScheduledActionDescriptionT &&value)
bool StateHasBeenSet() const
bool ScheduledActionNameHasBeenSet() const
void SetTargetAction(TargetActionT &&value)
ScheduledAction & WithResponseMetadata(ResponseMetadataT &&value)
void SetNextInvocations(NextInvocationsT &&value)
bool TargetActionHasBeenSet() const
ScheduledAction & WithSchedule(ScheduleT &&value)
void SetSchedule(ScheduleT &&value)
AWS_REDSHIFT_API ScheduledAction(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledAction & WithTargetAction(TargetActionT &&value)
const Aws::String & GetScheduledActionDescription() const
const Aws::String & GetScheduledActionName() const
ScheduledActionState GetState() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const ResponseMetadata & GetResponseMetadata() const
ScheduledAction & WithNextInvocations(NextInvocationsT &&value)
const Aws::Utils::DateTime & GetEndTime() const
ScheduledAction & WithScheduledActionName(ScheduledActionNameT &&value)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
void SetIamRole(IamRoleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream