Class WeeklyAutoScalingSchedule
java.lang.Object
com.amazonaws.services.opsworks.model.WeeklyAutoScalingSchedule
- All Implemented Interfaces:
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" }
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFridayEntry(String key, String value) addMondayEntry(String key, String value) addSaturdayEntry(String key, String value) addSundayEntry(String key, String value) addThursdayEntry(String key, String value) addTuesdayEntry(String key, String value) addWednesdayEntry(String key, String value) Removes all the entries added into Friday.Removes all the entries added into Monday.Removes all the entries added into Saturday.Removes all the entries added into Sunday.Removes all the entries added into Thursday.Removes all the entries added into Tuesday.Removes all the entries added into Wednesday.clone()booleanThe schedule for Friday.The schedule for Monday.The schedule for Saturday.The schedule for Sunday.The schedule for Thursday.The schedule for Tuesday.The schedule for Wednesday.inthashCode()voidThe schedule for Friday.voidThe schedule for Monday.voidsetSaturday(Map<String, String> saturday) The schedule for Saturday.voidThe schedule for Sunday.voidsetThursday(Map<String, String> thursday) The schedule for Thursday.voidsetTuesday(Map<String, String> tuesday) The schedule for Tuesday.voidsetWednesday(Map<String, String> wednesday) The schedule for Wednesday.toString()Returns a string representation of this object; useful for testing and debugging.withFriday(Map<String, String> friday) The schedule for Friday.withMonday(Map<String, String> monday) The schedule for Monday.withSaturday(Map<String, String> saturday) The schedule for Saturday.withSunday(Map<String, String> sunday) The schedule for Sunday.withThursday(Map<String, String> thursday) The schedule for Thursday.withTuesday(Map<String, String> tuesday) The schedule for Tuesday.withWednesday(Map<String, String> wednesday) The schedule for Wednesday.
-
Constructor Details
-
WeeklyAutoScalingSchedule
public WeeklyAutoScalingSchedule()
-
-
Method Details
-
getMonday
-
setMonday
-
withMonday
The schedule for Monday.
- Parameters:
monday- The schedule for Monday.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addMondayEntry
-
clearMondayEntries
Removes all the entries added into Monday. <p> Returns a reference to this object so that method calls can be chained together. -
getTuesday
-
setTuesday
-
withTuesday
The schedule for Tuesday.
- Parameters:
tuesday- The schedule for Tuesday.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addTuesdayEntry
-
clearTuesdayEntries
Removes all the entries added into Tuesday. <p> Returns a reference to this object so that method calls can be chained together. -
getWednesday
-
setWednesday
-
withWednesday
The schedule for Wednesday.
- Parameters:
wednesday- The schedule for Wednesday.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addWednesdayEntry
-
clearWednesdayEntries
Removes all the entries added into Wednesday. <p> Returns a reference to this object so that method calls can be chained together. -
getThursday
-
setThursday
-
withThursday
The schedule for Thursday.
- Parameters:
thursday- The schedule for Thursday.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addThursdayEntry
-
clearThursdayEntries
Removes all the entries added into Thursday. <p> Returns a reference to this object so that method calls can be chained together. -
getFriday
-
setFriday
-
withFriday
The schedule for Friday.
- Parameters:
friday- The schedule for Friday.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addFridayEntry
-
clearFridayEntries
Removes all the entries added into Friday. <p> Returns a reference to this object so that method calls can be chained together. -
getSaturday
-
setSaturday
-
withSaturday
The schedule for Saturday.
- Parameters:
saturday- The schedule for Saturday.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addSaturdayEntry
-
clearSaturdayEntries
Removes all the entries added into Saturday. <p> Returns a reference to this object so that method calls can be chained together. -
getSunday
-
setSunday
-
withSunday
The schedule for Sunday.
- Parameters:
sunday- The schedule for Sunday.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addSundayEntry
-
clearSundayEntries
Removes all the entries added into Sunday. <p> Returns a reference to this object so that method calls can be chained together. -
toString
-
equals
-
hashCode
-
clone
-