public class WeeklyAutoScalingSchedule extends Object implements Serializable, Cloneable
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" }
Constructor and Description |
---|
WeeklyAutoScalingSchedule() |
public Map<String,String> getMonday()
The schedule for Monday.
public void setMonday(Map<String,String> monday)
The schedule for Monday.
monday
- The schedule for Monday.public WeeklyAutoScalingSchedule withMonday(Map<String,String> monday)
The schedule for Monday.
monday
- The schedule for Monday.public WeeklyAutoScalingSchedule addMondayEntry(String key, String value)
public WeeklyAutoScalingSchedule clearMondayEntries()
public Map<String,String> getTuesday()
The schedule for Tuesday.
public void setTuesday(Map<String,String> tuesday)
The schedule for Tuesday.
tuesday
- The schedule for Tuesday.public WeeklyAutoScalingSchedule withTuesday(Map<String,String> tuesday)
The schedule for Tuesday.
tuesday
- The schedule for Tuesday.public WeeklyAutoScalingSchedule addTuesdayEntry(String key, String value)
public WeeklyAutoScalingSchedule clearTuesdayEntries()
public Map<String,String> getWednesday()
The schedule for Wednesday.
public void setWednesday(Map<String,String> wednesday)
The schedule for Wednesday.
wednesday
- The schedule for Wednesday.public WeeklyAutoScalingSchedule withWednesday(Map<String,String> wednesday)
The schedule for Wednesday.
wednesday
- The schedule for Wednesday.public WeeklyAutoScalingSchedule addWednesdayEntry(String key, String value)
public WeeklyAutoScalingSchedule clearWednesdayEntries()
public Map<String,String> getThursday()
The schedule for Thursday.
public void setThursday(Map<String,String> thursday)
The schedule for Thursday.
thursday
- The schedule for Thursday.public WeeklyAutoScalingSchedule withThursday(Map<String,String> thursday)
The schedule for Thursday.
thursday
- The schedule for Thursday.public WeeklyAutoScalingSchedule addThursdayEntry(String key, String value)
public WeeklyAutoScalingSchedule clearThursdayEntries()
public Map<String,String> getFriday()
The schedule for Friday.
public void setFriday(Map<String,String> friday)
The schedule for Friday.
friday
- The schedule for Friday.public WeeklyAutoScalingSchedule withFriday(Map<String,String> friday)
The schedule for Friday.
friday
- The schedule for Friday.public WeeklyAutoScalingSchedule addFridayEntry(String key, String value)
public WeeklyAutoScalingSchedule clearFridayEntries()
public Map<String,String> getSaturday()
The schedule for Saturday.
public void setSaturday(Map<String,String> saturday)
The schedule for Saturday.
saturday
- The schedule for Saturday.public WeeklyAutoScalingSchedule withSaturday(Map<String,String> saturday)
The schedule for Saturday.
saturday
- The schedule for Saturday.public WeeklyAutoScalingSchedule addSaturdayEntry(String key, String value)
public WeeklyAutoScalingSchedule clearSaturdayEntries()
public Map<String,String> getSunday()
The schedule for Sunday.
public void setSunday(Map<String,String> sunday)
The schedule for Sunday.
sunday
- The schedule for Sunday.public WeeklyAutoScalingSchedule withSunday(Map<String,String> sunday)
The schedule for Sunday.
sunday
- The schedule for Sunday.public WeeklyAutoScalingSchedule addSundayEntry(String key, String value)
public WeeklyAutoScalingSchedule clearSundayEntries()
public String toString()
toString
in class Object
Object.toString()
public WeeklyAutoScalingSchedule clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.