public class WeeklyAutoScalingSchedule extends Object implements Serializable
Describes a time-based instance's auto scaling schedule. The schedule consists of a set of key-value pairs.
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() |
Modifier and Type | Method and Description |
---|---|
WeeklyAutoScalingSchedule |
addFridayEntry(String key,
String value)
The schedule for Friday.
|
WeeklyAutoScalingSchedule |
addMondayEntry(String key,
String value)
The schedule for Monday.
|
WeeklyAutoScalingSchedule |
addSaturdayEntry(String key,
String value)
The schedule for Saturday.
|
WeeklyAutoScalingSchedule |
addSundayEntry(String key,
String value)
The schedule for Sunday.
|
WeeklyAutoScalingSchedule |
addThursdayEntry(String key,
String value)
The schedule for Thursday.
|
WeeklyAutoScalingSchedule |
addTuesdayEntry(String key,
String value)
The schedule for Tuesday.
|
WeeklyAutoScalingSchedule |
addWednesdayEntry(String key,
String value)
The schedule for Wednesday.
|
WeeklyAutoScalingSchedule |
clearFridayEntries()
Removes all the entries added into Friday.
|
WeeklyAutoScalingSchedule |
clearMondayEntries()
Removes all the entries added into Monday.
|
WeeklyAutoScalingSchedule |
clearSaturdayEntries()
Removes all the entries added into Saturday.
|
WeeklyAutoScalingSchedule |
clearSundayEntries()
Removes all the entries added into Sunday.
|
WeeklyAutoScalingSchedule |
clearThursdayEntries()
Removes all the entries added into Thursday.
|
WeeklyAutoScalingSchedule |
clearTuesdayEntries()
Removes all the entries added into Tuesday.
|
WeeklyAutoScalingSchedule |
clearWednesdayEntries()
Removes all the entries added into Wednesday.
|
boolean |
equals(Object obj) |
Map<String,String> |
getFriday()
The schedule for Friday.
|
Map<String,String> |
getMonday()
The schedule for Monday.
|
Map<String,String> |
getSaturday()
The schedule for Saturday.
|
Map<String,String> |
getSunday()
The schedule for Sunday.
|
Map<String,String> |
getThursday()
The schedule for Thursday.
|
Map<String,String> |
getTuesday()
The schedule for Tuesday.
|
Map<String,String> |
getWednesday()
The schedule for Wednesday.
|
int |
hashCode() |
void |
setFriday(Map<String,String> friday)
The schedule for Friday.
|
void |
setMonday(Map<String,String> monday)
The schedule for Monday.
|
void |
setSaturday(Map<String,String> saturday)
The schedule for Saturday.
|
void |
setSunday(Map<String,String> sunday)
The schedule for Sunday.
|
void |
setThursday(Map<String,String> thursday)
The schedule for Thursday.
|
void |
setTuesday(Map<String,String> tuesday)
The schedule for Tuesday.
|
void |
setWednesday(Map<String,String> wednesday)
The schedule for Wednesday.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
WeeklyAutoScalingSchedule |
withFriday(Map<String,String> friday)
The schedule for Friday.
|
WeeklyAutoScalingSchedule |
withMonday(Map<String,String> monday)
The schedule for Monday.
|
WeeklyAutoScalingSchedule |
withSaturday(Map<String,String> saturday)
The schedule for Saturday.
|
WeeklyAutoScalingSchedule |
withSunday(Map<String,String> sunday)
The schedule for Sunday.
|
WeeklyAutoScalingSchedule |
withThursday(Map<String,String> thursday)
The schedule for Thursday.
|
WeeklyAutoScalingSchedule |
withTuesday(Map<String,String> tuesday)
The schedule for Tuesday.
|
WeeklyAutoScalingSchedule |
withWednesday(Map<String,String> wednesday)
The schedule for Wednesday.
|
public Map<String,String> getMonday()
public void setMonday(Map<String,String> monday)
monday
- The schedule for Monday.public WeeklyAutoScalingSchedule withMonday(Map<String,String> monday)
Returns a reference to this object so that method calls can be chained together.
monday
- The schedule for Monday.public WeeklyAutoScalingSchedule addMondayEntry(String key, String value)
The method adds a new key-value pair into Monday parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Monday.value
- The corresponding value of the entry to be added into Monday.public WeeklyAutoScalingSchedule clearMondayEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,String> getTuesday()
public void setTuesday(Map<String,String> tuesday)
tuesday
- The schedule for Tuesday.public WeeklyAutoScalingSchedule withTuesday(Map<String,String> tuesday)
Returns a reference to this object so that method calls can be chained together.
tuesday
- The schedule for Tuesday.public WeeklyAutoScalingSchedule addTuesdayEntry(String key, String value)
The method adds a new key-value pair into Tuesday parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Tuesday.value
- The corresponding value of the entry to be added into Tuesday.public WeeklyAutoScalingSchedule clearTuesdayEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,String> getWednesday()
public void setWednesday(Map<String,String> wednesday)
wednesday
- The schedule for Wednesday.public WeeklyAutoScalingSchedule withWednesday(Map<String,String> wednesday)
Returns a reference to this object so that method calls can be chained together.
wednesday
- The schedule for Wednesday.public WeeklyAutoScalingSchedule addWednesdayEntry(String key, String value)
The method adds a new key-value pair into Wednesday parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Wednesday.value
- The corresponding value of the entry to be added into Wednesday.public WeeklyAutoScalingSchedule clearWednesdayEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,String> getThursday()
public void setThursday(Map<String,String> thursday)
thursday
- The schedule for Thursday.public WeeklyAutoScalingSchedule withThursday(Map<String,String> thursday)
Returns a reference to this object so that method calls can be chained together.
thursday
- The schedule for Thursday.public WeeklyAutoScalingSchedule addThursdayEntry(String key, String value)
The method adds a new key-value pair into Thursday parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Thursday.value
- The corresponding value of the entry to be added into Thursday.public WeeklyAutoScalingSchedule clearThursdayEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,String> getFriday()
public void setFriday(Map<String,String> friday)
friday
- The schedule for Friday.public WeeklyAutoScalingSchedule withFriday(Map<String,String> friday)
Returns a reference to this object so that method calls can be chained together.
friday
- The schedule for Friday.public WeeklyAutoScalingSchedule addFridayEntry(String key, String value)
The method adds a new key-value pair into Friday parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Friday.value
- The corresponding value of the entry to be added into Friday.public WeeklyAutoScalingSchedule clearFridayEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,String> getSaturday()
public void setSaturday(Map<String,String> saturday)
saturday
- The schedule for Saturday.public WeeklyAutoScalingSchedule withSaturday(Map<String,String> saturday)
Returns a reference to this object so that method calls can be chained together.
saturday
- The schedule for Saturday.public WeeklyAutoScalingSchedule addSaturdayEntry(String key, String value)
The method adds a new key-value pair into Saturday parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Saturday.value
- The corresponding value of the entry to be added into Saturday.public WeeklyAutoScalingSchedule clearSaturdayEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,String> getSunday()
public void setSunday(Map<String,String> sunday)
sunday
- The schedule for Sunday.public WeeklyAutoScalingSchedule withSunday(Map<String,String> sunday)
Returns a reference to this object so that method calls can be chained together.
sunday
- The schedule for Sunday.public WeeklyAutoScalingSchedule addSundayEntry(String key, String value)
The method adds a new key-value pair into Sunday parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Sunday.value
- The corresponding value of the entry to be added into Sunday.public WeeklyAutoScalingSchedule clearSundayEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.