@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WeeklyAutoScalingSchedule extends Object implements Serializable, Cloneable, StructuredPojo
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() |
Modifier and Type | Method and Description |
---|---|
WeeklyAutoScalingSchedule |
addFridayEntry(String key,
String value) |
WeeklyAutoScalingSchedule |
addMondayEntry(String key,
String value) |
WeeklyAutoScalingSchedule |
addSaturdayEntry(String key,
String value) |
WeeklyAutoScalingSchedule |
addSundayEntry(String key,
String value) |
WeeklyAutoScalingSchedule |
addThursdayEntry(String key,
String value) |
WeeklyAutoScalingSchedule |
addTuesdayEntry(String key,
String value) |
WeeklyAutoScalingSchedule |
addWednesdayEntry(String key,
String value) |
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.
|
WeeklyAutoScalingSchedule |
clone() |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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()
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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.