7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/LocationValues.h>
9#include <aws/dlm/model/IntervalUnitValues.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/dlm/model/Script.h>
80 inline void SetInterval(
int value) { m_intervalHasBeenSet =
true; m_interval = value; }
103 template<
typename TimesT = Aws::Vector<Aws::String>>
104 void SetTimes(TimesT&& value) { m_timesHasBeenSet =
true; m_times = std::forward<TimesT>(value); }
105 template<
typename TimesT = Aws::Vector<Aws::String>>
107 template<
typename TimesT = Aws::String>
108 CreateRule&
AddTimes(TimesT&& value) { m_timesHasBeenSet =
true; m_times.emplace_back(std::forward<TimesT>(value));
return *
this; }
120 template<
typename CronExpressionT = Aws::String>
121 void SetCronExpression(CronExpressionT&& value) { m_cronExpressionHasBeenSet =
true; m_cronExpression = std::forward<CronExpressionT>(value); }
122 template<
typename CronExpressionT = Aws::String>
138 template<
typename ScriptsT = Aws::Vector<Script>>
139 void SetScripts(ScriptsT&& value) { m_scriptsHasBeenSet =
true; m_scripts = std::forward<ScriptsT>(value); }
140 template<
typename ScriptsT = Aws::Vector<Script>>
142 template<
typename ScriptsT = Script>
143 CreateRule&
AddScripts(ScriptsT&& value) { m_scriptsHasBeenSet =
true; m_scripts.emplace_back(std::forward<ScriptsT>(value));
return *
this; }
148 bool m_locationHasBeenSet =
false;
151 bool m_intervalHasBeenSet =
false;
154 bool m_intervalUnitHasBeenSet =
false;
157 bool m_timesHasBeenSet =
false;
160 bool m_cronExpressionHasBeenSet =
false;
163 bool m_scriptsHasBeenSet =
false;
LocationValues GetLocation() const
CreateRule & AddScripts(ScriptsT &&value)
CreateRule & WithLocation(LocationValues value)
const Aws::Vector< Aws::String > & GetTimes() const
CreateRule & WithInterval(int value)
CreateRule & WithTimes(TimesT &&value)
bool ScriptsHasBeenSet() const
void SetIntervalUnit(IntervalUnitValues value)
CreateRule & WithCronExpression(CronExpressionT &&value)
bool IntervalUnitHasBeenSet() const
void SetInterval(int value)
CreateRule & AddTimes(TimesT &&value)
void SetCronExpression(CronExpressionT &&value)
bool LocationHasBeenSet() const
AWS_DLM_API CreateRule()=default
void SetScripts(ScriptsT &&value)
CreateRule & WithScripts(ScriptsT &&value)
AWS_DLM_API CreateRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Script > & GetScripts() const
bool CronExpressionHasBeenSet() const
const Aws::String & GetCronExpression() const
bool IntervalHasBeenSet() const
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimes(TimesT &&value)
AWS_DLM_API CreateRule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TimesHasBeenSet() const
void SetLocation(LocationValues value)
IntervalUnitValues GetIntervalUnit() const
CreateRule & WithIntervalUnit(IntervalUnitValues value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue