7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/odb/Odb_EXPORTS.h>
9#include <aws/odb/model/DayOfWeek.h>
10#include <aws/odb/model/Month.h>
11#include <aws/odb/model/PatchingModeType.h>
12#include <aws/odb/model/PreferenceType.h>
46 m_customActionTimeoutInMinsHasBeenSet =
true;
47 m_customActionTimeoutInMins = value;
61 template <
typename DaysOfWeekT = Aws::Vector<DayOfWeek>>
63 m_daysOfWeekHasBeenSet =
true;
64 m_daysOfWeek = std::forward<DaysOfWeekT>(value);
66 template <
typename DaysOfWeekT = Aws::Vector<DayOfWeek>>
71 template <
typename DaysOfWeekT = DayOfWeek>
73 m_daysOfWeekHasBeenSet =
true;
74 m_daysOfWeek.emplace_back(std::forward<DaysOfWeekT>(value));
85 template <
typename HoursOfDayT = Aws::Vector<
int>>
87 m_hoursOfDayHasBeenSet =
true;
88 m_hoursOfDay = std::forward<HoursOfDayT>(value);
90 template <
typename HoursOfDayT = Aws::Vector<
int>>
96 m_hoursOfDayHasBeenSet =
true;
97 m_hoursOfDay.push_back(value);
110 m_isCustomActionTimeoutEnabledHasBeenSet =
true;
111 m_isCustomActionTimeoutEnabled = value;
126 m_leadTimeInWeeksHasBeenSet =
true;
127 m_leadTimeInWeeks = value;
141 template <
typename MonthsT = Aws::Vector<Month>>
143 m_monthsHasBeenSet =
true;
144 m_months = std::forward<MonthsT>(value);
146 template <
typename MonthsT = Aws::Vector<Month>>
151 template <
typename MonthsT = Month>
153 m_monthsHasBeenSet =
true;
154 m_months.emplace_back(std::forward<MonthsT>(value));
166 m_patchingModeHasBeenSet =
true;
167 m_patchingMode = value;
182 m_preferenceHasBeenSet =
true;
183 m_preference = value;
198 m_skipRuHasBeenSet =
true;
213 template <
typename WeeksOfMonthT = Aws::Vector<
int>>
215 m_weeksOfMonthHasBeenSet =
true;
216 m_weeksOfMonth = std::forward<WeeksOfMonthT>(value);
218 template <
typename WeeksOfMonthT = Aws::Vector<
int>>
224 m_weeksOfMonthHasBeenSet =
true;
225 m_weeksOfMonth.push_back(value);
230 int m_customActionTimeoutInMins{0};
236 bool m_isCustomActionTimeoutEnabled{
false};
238 int m_leadTimeInWeeks{0};
246 bool m_skipRu{
false};
249 bool m_customActionTimeoutInMinsHasBeenSet =
false;
250 bool m_daysOfWeekHasBeenSet =
false;
251 bool m_hoursOfDayHasBeenSet =
false;
252 bool m_isCustomActionTimeoutEnabledHasBeenSet =
false;
253 bool m_leadTimeInWeeksHasBeenSet =
false;
254 bool m_monthsHasBeenSet =
false;
255 bool m_patchingModeHasBeenSet =
false;
256 bool m_preferenceHasBeenSet =
false;
257 bool m_skipRuHasBeenSet =
false;
258 bool m_weeksOfMonthHasBeenSet =
false;
MaintenanceWindow & WithSkipRu(bool value)
const Aws::Vector< DayOfWeek > & GetDaysOfWeek() const
const Aws::Vector< int > & GetHoursOfDay() const
bool MonthsHasBeenSet() const
bool WeeksOfMonthHasBeenSet() const
PreferenceType GetPreference() const
bool GetIsCustomActionTimeoutEnabled() const
const Aws::Vector< int > & GetWeeksOfMonth() const
void SetHoursOfDay(HoursOfDayT &&value)
int GetLeadTimeInWeeks() const
MaintenanceWindow & WithLeadTimeInWeeks(int value)
void SetIsCustomActionTimeoutEnabled(bool value)
PatchingModeType GetPatchingMode() const
MaintenanceWindow & WithPatchingMode(PatchingModeType value)
MaintenanceWindow & WithPreference(PreferenceType value)
bool HoursOfDayHasBeenSet() const
MaintenanceWindow & WithDaysOfWeek(DaysOfWeekT &&value)
MaintenanceWindow & WithHoursOfDay(HoursOfDayT &&value)
MaintenanceWindow & WithIsCustomActionTimeoutEnabled(bool value)
int GetCustomActionTimeoutInMins() const
void SetCustomActionTimeoutInMins(int value)
bool PatchingModeHasBeenSet() const
bool DaysOfWeekHasBeenSet() const
AWS_ODB_API MaintenanceWindow(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Month > & GetMonths() const
void SetPatchingMode(PatchingModeType value)
void SetDaysOfWeek(DaysOfWeekT &&value)
void SetLeadTimeInWeeks(int value)
void SetWeeksOfMonth(WeeksOfMonthT &&value)
AWS_ODB_API MaintenanceWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IsCustomActionTimeoutEnabledHasBeenSet() const
void SetSkipRu(bool value)
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
MaintenanceWindow & WithMonths(MonthsT &&value)
void SetPreference(PreferenceType value)
bool SkipRuHasBeenSet() const
MaintenanceWindow & AddDaysOfWeek(DaysOfWeekT &&value)
void SetMonths(MonthsT &&value)
MaintenanceWindow & WithCustomActionTimeoutInMins(int value)
MaintenanceWindow & AddWeeksOfMonth(int value)
AWS_ODB_API MaintenanceWindow()=default
bool LeadTimeInWeeksHasBeenSet() const
MaintenanceWindow & AddHoursOfDay(int value)
bool PreferenceHasBeenSet() const
bool CustomActionTimeoutInMinsHasBeenSet() const
MaintenanceWindow & AddMonths(MonthsT &&value)
MaintenanceWindow & WithWeeksOfMonth(WeeksOfMonthT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue