|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.opsworks.model.WeeklyAutoScalingSchedule
public class WeeklyAutoScalingSchedule
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 Summary | |
---|---|
WeeklyAutoScalingSchedule()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WeeklyAutoScalingSchedule()
Method Detail |
---|
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 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 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 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 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 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 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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |