/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a time-based instance's auto scaling schedule. The schedule
* consists of a set of key-value pairs. The key is the time
* period (a UTC hour) and must be an integer from 0 - 23. The
* value indicates whether the instance should be online or offline for the
* specified period, and must be set to "on" or "off" The
* default setting for all time periods is off, so you use the following parameters
* primarily to specify the online periods. You don't have to explicitly specify
* offline periods unless you want to change an online period to an offline
* period. The following example specifies that the instance should be
* online for four hours, from UTC 1200 - 1600. It will be off for the remainder of
* the day.
{ "12":"on", "13":"on", "14":"on", "15":"on" }
* See Also:
AWS
* API Reference
The schedule for Monday.
*/ inline const Aws::MapThe schedule for Monday.
*/ inline bool MondayHasBeenSet() const { return m_mondayHasBeenSet; } /** *The schedule for Monday.
*/ inline void SetMonday(const Aws::MapThe schedule for Monday.
*/ inline void SetMonday(Aws::MapThe schedule for Monday.
*/ inline WeeklyAutoScalingSchedule& WithMonday(const Aws::MapThe schedule for Monday.
*/ inline WeeklyAutoScalingSchedule& WithMonday(Aws::MapThe schedule for Monday.
*/ inline WeeklyAutoScalingSchedule& AddMonday(const Aws::String& key, const Aws::String& value) { m_mondayHasBeenSet = true; m_monday.emplace(key, value); return *this; } /** *The schedule for Monday.
*/ inline WeeklyAutoScalingSchedule& AddMonday(Aws::String&& key, const Aws::String& value) { m_mondayHasBeenSet = true; m_monday.emplace(std::move(key), value); return *this; } /** *The schedule for Monday.
*/ inline WeeklyAutoScalingSchedule& AddMonday(const Aws::String& key, Aws::String&& value) { m_mondayHasBeenSet = true; m_monday.emplace(key, std::move(value)); return *this; } /** *The schedule for Monday.
*/ inline WeeklyAutoScalingSchedule& AddMonday(Aws::String&& key, Aws::String&& value) { m_mondayHasBeenSet = true; m_monday.emplace(std::move(key), std::move(value)); return *this; } /** *The schedule for Monday.
*/ inline WeeklyAutoScalingSchedule& AddMonday(const char* key, Aws::String&& value) { m_mondayHasBeenSet = true; m_monday.emplace(key, std::move(value)); return *this; } /** *The schedule for Monday.
*/ inline WeeklyAutoScalingSchedule& AddMonday(Aws::String&& key, const char* value) { m_mondayHasBeenSet = true; m_monday.emplace(std::move(key), value); return *this; } /** *The schedule for Monday.
*/ inline WeeklyAutoScalingSchedule& AddMonday(const char* key, const char* value) { m_mondayHasBeenSet = true; m_monday.emplace(key, value); return *this; } /** *The schedule for Tuesday.
*/ inline const Aws::MapThe schedule for Tuesday.
*/ inline bool TuesdayHasBeenSet() const { return m_tuesdayHasBeenSet; } /** *The schedule for Tuesday.
*/ inline void SetTuesday(const Aws::MapThe schedule for Tuesday.
*/ inline void SetTuesday(Aws::MapThe schedule for Tuesday.
*/ inline WeeklyAutoScalingSchedule& WithTuesday(const Aws::MapThe schedule for Tuesday.
*/ inline WeeklyAutoScalingSchedule& WithTuesday(Aws::MapThe schedule for Tuesday.
*/ inline WeeklyAutoScalingSchedule& AddTuesday(const Aws::String& key, const Aws::String& value) { m_tuesdayHasBeenSet = true; m_tuesday.emplace(key, value); return *this; } /** *The schedule for Tuesday.
*/ inline WeeklyAutoScalingSchedule& AddTuesday(Aws::String&& key, const Aws::String& value) { m_tuesdayHasBeenSet = true; m_tuesday.emplace(std::move(key), value); return *this; } /** *The schedule for Tuesday.
*/ inline WeeklyAutoScalingSchedule& AddTuesday(const Aws::String& key, Aws::String&& value) { m_tuesdayHasBeenSet = true; m_tuesday.emplace(key, std::move(value)); return *this; } /** *The schedule for Tuesday.
*/ inline WeeklyAutoScalingSchedule& AddTuesday(Aws::String&& key, Aws::String&& value) { m_tuesdayHasBeenSet = true; m_tuesday.emplace(std::move(key), std::move(value)); return *this; } /** *The schedule for Tuesday.
*/ inline WeeklyAutoScalingSchedule& AddTuesday(const char* key, Aws::String&& value) { m_tuesdayHasBeenSet = true; m_tuesday.emplace(key, std::move(value)); return *this; } /** *The schedule for Tuesday.
*/ inline WeeklyAutoScalingSchedule& AddTuesday(Aws::String&& key, const char* value) { m_tuesdayHasBeenSet = true; m_tuesday.emplace(std::move(key), value); return *this; } /** *The schedule for Tuesday.
*/ inline WeeklyAutoScalingSchedule& AddTuesday(const char* key, const char* value) { m_tuesdayHasBeenSet = true; m_tuesday.emplace(key, value); return *this; } /** *The schedule for Wednesday.
*/ inline const Aws::MapThe schedule for Wednesday.
*/ inline bool WednesdayHasBeenSet() const { return m_wednesdayHasBeenSet; } /** *The schedule for Wednesday.
*/ inline void SetWednesday(const Aws::MapThe schedule for Wednesday.
*/ inline void SetWednesday(Aws::MapThe schedule for Wednesday.
*/ inline WeeklyAutoScalingSchedule& WithWednesday(const Aws::MapThe schedule for Wednesday.
*/ inline WeeklyAutoScalingSchedule& WithWednesday(Aws::MapThe schedule for Wednesday.
*/ inline WeeklyAutoScalingSchedule& AddWednesday(const Aws::String& key, const Aws::String& value) { m_wednesdayHasBeenSet = true; m_wednesday.emplace(key, value); return *this; } /** *The schedule for Wednesday.
*/ inline WeeklyAutoScalingSchedule& AddWednesday(Aws::String&& key, const Aws::String& value) { m_wednesdayHasBeenSet = true; m_wednesday.emplace(std::move(key), value); return *this; } /** *The schedule for Wednesday.
*/ inline WeeklyAutoScalingSchedule& AddWednesday(const Aws::String& key, Aws::String&& value) { m_wednesdayHasBeenSet = true; m_wednesday.emplace(key, std::move(value)); return *this; } /** *The schedule for Wednesday.
*/ inline WeeklyAutoScalingSchedule& AddWednesday(Aws::String&& key, Aws::String&& value) { m_wednesdayHasBeenSet = true; m_wednesday.emplace(std::move(key), std::move(value)); return *this; } /** *The schedule for Wednesday.
*/ inline WeeklyAutoScalingSchedule& AddWednesday(const char* key, Aws::String&& value) { m_wednesdayHasBeenSet = true; m_wednesday.emplace(key, std::move(value)); return *this; } /** *The schedule for Wednesday.
*/ inline WeeklyAutoScalingSchedule& AddWednesday(Aws::String&& key, const char* value) { m_wednesdayHasBeenSet = true; m_wednesday.emplace(std::move(key), value); return *this; } /** *The schedule for Wednesday.
*/ inline WeeklyAutoScalingSchedule& AddWednesday(const char* key, const char* value) { m_wednesdayHasBeenSet = true; m_wednesday.emplace(key, value); return *this; } /** *The schedule for Thursday.
*/ inline const Aws::MapThe schedule for Thursday.
*/ inline bool ThursdayHasBeenSet() const { return m_thursdayHasBeenSet; } /** *The schedule for Thursday.
*/ inline void SetThursday(const Aws::MapThe schedule for Thursday.
*/ inline void SetThursday(Aws::MapThe schedule for Thursday.
*/ inline WeeklyAutoScalingSchedule& WithThursday(const Aws::MapThe schedule for Thursday.
*/ inline WeeklyAutoScalingSchedule& WithThursday(Aws::MapThe schedule for Thursday.
*/ inline WeeklyAutoScalingSchedule& AddThursday(const Aws::String& key, const Aws::String& value) { m_thursdayHasBeenSet = true; m_thursday.emplace(key, value); return *this; } /** *The schedule for Thursday.
*/ inline WeeklyAutoScalingSchedule& AddThursday(Aws::String&& key, const Aws::String& value) { m_thursdayHasBeenSet = true; m_thursday.emplace(std::move(key), value); return *this; } /** *The schedule for Thursday.
*/ inline WeeklyAutoScalingSchedule& AddThursday(const Aws::String& key, Aws::String&& value) { m_thursdayHasBeenSet = true; m_thursday.emplace(key, std::move(value)); return *this; } /** *The schedule for Thursday.
*/ inline WeeklyAutoScalingSchedule& AddThursday(Aws::String&& key, Aws::String&& value) { m_thursdayHasBeenSet = true; m_thursday.emplace(std::move(key), std::move(value)); return *this; } /** *The schedule for Thursday.
*/ inline WeeklyAutoScalingSchedule& AddThursday(const char* key, Aws::String&& value) { m_thursdayHasBeenSet = true; m_thursday.emplace(key, std::move(value)); return *this; } /** *The schedule for Thursday.
*/ inline WeeklyAutoScalingSchedule& AddThursday(Aws::String&& key, const char* value) { m_thursdayHasBeenSet = true; m_thursday.emplace(std::move(key), value); return *this; } /** *The schedule for Thursday.
*/ inline WeeklyAutoScalingSchedule& AddThursday(const char* key, const char* value) { m_thursdayHasBeenSet = true; m_thursday.emplace(key, value); return *this; } /** *The schedule for Friday.
*/ inline const Aws::MapThe schedule for Friday.
*/ inline bool FridayHasBeenSet() const { return m_fridayHasBeenSet; } /** *The schedule for Friday.
*/ inline void SetFriday(const Aws::MapThe schedule for Friday.
*/ inline void SetFriday(Aws::MapThe schedule for Friday.
*/ inline WeeklyAutoScalingSchedule& WithFriday(const Aws::MapThe schedule for Friday.
*/ inline WeeklyAutoScalingSchedule& WithFriday(Aws::MapThe schedule for Friday.
*/ inline WeeklyAutoScalingSchedule& AddFriday(const Aws::String& key, const Aws::String& value) { m_fridayHasBeenSet = true; m_friday.emplace(key, value); return *this; } /** *The schedule for Friday.
*/ inline WeeklyAutoScalingSchedule& AddFriday(Aws::String&& key, const Aws::String& value) { m_fridayHasBeenSet = true; m_friday.emplace(std::move(key), value); return *this; } /** *The schedule for Friday.
*/ inline WeeklyAutoScalingSchedule& AddFriday(const Aws::String& key, Aws::String&& value) { m_fridayHasBeenSet = true; m_friday.emplace(key, std::move(value)); return *this; } /** *The schedule for Friday.
*/ inline WeeklyAutoScalingSchedule& AddFriday(Aws::String&& key, Aws::String&& value) { m_fridayHasBeenSet = true; m_friday.emplace(std::move(key), std::move(value)); return *this; } /** *The schedule for Friday.
*/ inline WeeklyAutoScalingSchedule& AddFriday(const char* key, Aws::String&& value) { m_fridayHasBeenSet = true; m_friday.emplace(key, std::move(value)); return *this; } /** *The schedule for Friday.
*/ inline WeeklyAutoScalingSchedule& AddFriday(Aws::String&& key, const char* value) { m_fridayHasBeenSet = true; m_friday.emplace(std::move(key), value); return *this; } /** *The schedule for Friday.
*/ inline WeeklyAutoScalingSchedule& AddFriday(const char* key, const char* value) { m_fridayHasBeenSet = true; m_friday.emplace(key, value); return *this; } /** *The schedule for Saturday.
*/ inline const Aws::MapThe schedule for Saturday.
*/ inline bool SaturdayHasBeenSet() const { return m_saturdayHasBeenSet; } /** *The schedule for Saturday.
*/ inline void SetSaturday(const Aws::MapThe schedule for Saturday.
*/ inline void SetSaturday(Aws::MapThe schedule for Saturday.
*/ inline WeeklyAutoScalingSchedule& WithSaturday(const Aws::MapThe schedule for Saturday.
*/ inline WeeklyAutoScalingSchedule& WithSaturday(Aws::MapThe schedule for Saturday.
*/ inline WeeklyAutoScalingSchedule& AddSaturday(const Aws::String& key, const Aws::String& value) { m_saturdayHasBeenSet = true; m_saturday.emplace(key, value); return *this; } /** *The schedule for Saturday.
*/ inline WeeklyAutoScalingSchedule& AddSaturday(Aws::String&& key, const Aws::String& value) { m_saturdayHasBeenSet = true; m_saturday.emplace(std::move(key), value); return *this; } /** *The schedule for Saturday.
*/ inline WeeklyAutoScalingSchedule& AddSaturday(const Aws::String& key, Aws::String&& value) { m_saturdayHasBeenSet = true; m_saturday.emplace(key, std::move(value)); return *this; } /** *The schedule for Saturday.
*/ inline WeeklyAutoScalingSchedule& AddSaturday(Aws::String&& key, Aws::String&& value) { m_saturdayHasBeenSet = true; m_saturday.emplace(std::move(key), std::move(value)); return *this; } /** *The schedule for Saturday.
*/ inline WeeklyAutoScalingSchedule& AddSaturday(const char* key, Aws::String&& value) { m_saturdayHasBeenSet = true; m_saturday.emplace(key, std::move(value)); return *this; } /** *The schedule for Saturday.
*/ inline WeeklyAutoScalingSchedule& AddSaturday(Aws::String&& key, const char* value) { m_saturdayHasBeenSet = true; m_saturday.emplace(std::move(key), value); return *this; } /** *The schedule for Saturday.
*/ inline WeeklyAutoScalingSchedule& AddSaturday(const char* key, const char* value) { m_saturdayHasBeenSet = true; m_saturday.emplace(key, value); return *this; } /** *The schedule for Sunday.
*/ inline const Aws::MapThe schedule for Sunday.
*/ inline bool SundayHasBeenSet() const { return m_sundayHasBeenSet; } /** *The schedule for Sunday.
*/ inline void SetSunday(const Aws::MapThe schedule for Sunday.
*/ inline void SetSunday(Aws::MapThe schedule for Sunday.
*/ inline WeeklyAutoScalingSchedule& WithSunday(const Aws::MapThe schedule for Sunday.
*/ inline WeeklyAutoScalingSchedule& WithSunday(Aws::MapThe schedule for Sunday.
*/ inline WeeklyAutoScalingSchedule& AddSunday(const Aws::String& key, const Aws::String& value) { m_sundayHasBeenSet = true; m_sunday.emplace(key, value); return *this; } /** *The schedule for Sunday.
*/ inline WeeklyAutoScalingSchedule& AddSunday(Aws::String&& key, const Aws::String& value) { m_sundayHasBeenSet = true; m_sunday.emplace(std::move(key), value); return *this; } /** *The schedule for Sunday.
*/ inline WeeklyAutoScalingSchedule& AddSunday(const Aws::String& key, Aws::String&& value) { m_sundayHasBeenSet = true; m_sunday.emplace(key, std::move(value)); return *this; } /** *The schedule for Sunday.
*/ inline WeeklyAutoScalingSchedule& AddSunday(Aws::String&& key, Aws::String&& value) { m_sundayHasBeenSet = true; m_sunday.emplace(std::move(key), std::move(value)); return *this; } /** *The schedule for Sunday.
*/ inline WeeklyAutoScalingSchedule& AddSunday(const char* key, Aws::String&& value) { m_sundayHasBeenSet = true; m_sunday.emplace(key, std::move(value)); return *this; } /** *The schedule for Sunday.
*/ inline WeeklyAutoScalingSchedule& AddSunday(Aws::String&& key, const char* value) { m_sundayHasBeenSet = true; m_sunday.emplace(std::move(key), value); return *this; } /** *The schedule for Sunday.
*/ inline WeeklyAutoScalingSchedule& AddSunday(const char* key, const char* value) { m_sundayHasBeenSet = true; m_sunday.emplace(key, value); return *this; } private: Aws::Map