Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class WeeklyAutoScalingSchedule

java.lang.Object
  extended by com.amazonaws.services.opsworks.model.WeeklyAutoScalingSchedule
All Implemented Interfaces:
Serializable

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" }

See Also:
Serialized Form

Constructor Summary
WeeklyAutoScalingSchedule()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeeklyAutoScalingSchedule

public WeeklyAutoScalingSchedule()
Method Detail

getMonday

public Map<String,String> getMonday()
The schedule for Monday.

Returns:
The schedule for Monday.

setMonday

public void setMonday(Map<String,String> monday)
The schedule for Monday.

Parameters:
monday - The schedule for Monday.

withMonday

public WeeklyAutoScalingSchedule withMonday(Map<String,String> monday)
The schedule for Monday.

Returns a reference to this object so that method calls can be chained together.

Parameters:
monday - The schedule for Monday.
Returns:
A reference to this updated object so that method calls can be chained together.

addMondayEntry

public WeeklyAutoScalingSchedule addMondayEntry(String key,
                                                String value)
The schedule for Monday.

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.

Parameters:
key - The key of the entry to be added into Monday.
value - The corresponding value of the entry to be added into Monday.

clearMondayEntries

public WeeklyAutoScalingSchedule clearMondayEntries()
Removes all the entries added into Monday.

Returns a reference to this object so that method calls can be chained together.


getTuesday

public Map<String,String> getTuesday()
The schedule for Tuesday.

Returns:
The schedule for Tuesday.

setTuesday

public void setTuesday(Map<String,String> tuesday)
The schedule for Tuesday.

Parameters:
tuesday - The schedule for Tuesday.

withTuesday

public WeeklyAutoScalingSchedule withTuesday(Map<String,String> tuesday)
The schedule for Tuesday.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tuesday - The schedule for Tuesday.
Returns:
A reference to this updated object so that method calls can be chained together.

addTuesdayEntry

public WeeklyAutoScalingSchedule addTuesdayEntry(String key,
                                                 String value)
The schedule for Tuesday.

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.

Parameters:
key - The key of the entry to be added into Tuesday.
value - The corresponding value of the entry to be added into Tuesday.

clearTuesdayEntries

public WeeklyAutoScalingSchedule clearTuesdayEntries()
Removes all the entries added into Tuesday.

Returns a reference to this object so that method calls can be chained together.


getWednesday

public Map<String,String> getWednesday()
The schedule for Wednesday.

Returns:
The schedule for Wednesday.

setWednesday

public void setWednesday(Map<String,String> wednesday)
The schedule for Wednesday.

Parameters:
wednesday - The schedule for Wednesday.

withWednesday

public WeeklyAutoScalingSchedule withWednesday(Map<String,String> wednesday)
The schedule for Wednesday.

Returns a reference to this object so that method calls can be chained together.

Parameters:
wednesday - The schedule for Wednesday.
Returns:
A reference to this updated object so that method calls can be chained together.

addWednesdayEntry

public WeeklyAutoScalingSchedule addWednesdayEntry(String key,
                                                   String value)
The schedule for Wednesday.

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.

Parameters:
key - The key of the entry to be added into Wednesday.
value - The corresponding value of the entry to be added into Wednesday.

clearWednesdayEntries

public WeeklyAutoScalingSchedule clearWednesdayEntries()
Removes all the entries added into Wednesday.

Returns a reference to this object so that method calls can be chained together.


getThursday

public Map<String,String> getThursday()
The schedule for Thursday.

Returns:
The schedule for Thursday.

setThursday

public void setThursday(Map<String,String> thursday)
The schedule for Thursday.

Parameters:
thursday - The schedule for Thursday.

withThursday

public WeeklyAutoScalingSchedule withThursday(Map<String,String> thursday)
The schedule for Thursday.

Returns a reference to this object so that method calls can be chained together.

Parameters:
thursday - The schedule for Thursday.
Returns:
A reference to this updated object so that method calls can be chained together.

addThursdayEntry

public WeeklyAutoScalingSchedule addThursdayEntry(String key,
                                                  String value)
The schedule for Thursday.

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.

Parameters:
key - The key of the entry to be added into Thursday.
value - The corresponding value of the entry to be added into Thursday.

clearThursdayEntries

public WeeklyAutoScalingSchedule clearThursdayEntries()
Removes all the entries added into Thursday.

Returns a reference to this object so that method calls can be chained together.


getFriday

public Map<String,String> getFriday()
The schedule for Friday.

Returns:
The schedule for Friday.

setFriday

public void setFriday(Map<String,String> friday)
The schedule for Friday.

Parameters:
friday - The schedule for Friday.

withFriday

public WeeklyAutoScalingSchedule withFriday(Map<String,String> friday)
The schedule for Friday.

Returns a reference to this object so that method calls can be chained together.

Parameters:
friday - The schedule for Friday.
Returns:
A reference to this updated object so that method calls can be chained together.

addFridayEntry

public WeeklyAutoScalingSchedule addFridayEntry(String key,
                                                String value)
The schedule for Friday.

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.

Parameters:
key - The key of the entry to be added into Friday.
value - The corresponding value of the entry to be added into Friday.

clearFridayEntries

public WeeklyAutoScalingSchedule clearFridayEntries()
Removes all the entries added into Friday.

Returns a reference to this object so that method calls can be chained together.


getSaturday

public Map<String,String> getSaturday()
The schedule for Saturday.

Returns:
The schedule for Saturday.

setSaturday

public void setSaturday(Map<String,String> saturday)
The schedule for Saturday.

Parameters:
saturday - The schedule for Saturday.

withSaturday

public WeeklyAutoScalingSchedule withSaturday(Map<String,String> saturday)
The schedule for Saturday.

Returns a reference to this object so that method calls can be chained together.

Parameters:
saturday - The schedule for Saturday.
Returns:
A reference to this updated object so that method calls can be chained together.

addSaturdayEntry

public WeeklyAutoScalingSchedule addSaturdayEntry(String key,
                                                  String value)
The schedule for Saturday.

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.

Parameters:
key - The key of the entry to be added into Saturday.
value - The corresponding value of the entry to be added into Saturday.

clearSaturdayEntries

public WeeklyAutoScalingSchedule clearSaturdayEntries()
Removes all the entries added into Saturday.

Returns a reference to this object so that method calls can be chained together.


getSunday

public Map<String,String> getSunday()
The schedule for Sunday.

Returns:
The schedule for Sunday.

setSunday

public void setSunday(Map<String,String> sunday)
The schedule for Sunday.

Parameters:
sunday - The schedule for Sunday.

withSunday

public WeeklyAutoScalingSchedule withSunday(Map<String,String> sunday)
The schedule for Sunday.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sunday - The schedule for Sunday.
Returns:
A reference to this updated object so that method calls can be chained together.

addSundayEntry

public WeeklyAutoScalingSchedule addSundayEntry(String key,
                                                String value)
The schedule for Sunday.

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.

Parameters:
key - The key of the entry to be added into Sunday.
value - The corresponding value of the entry to be added into Sunday.

clearSundayEntries

public WeeklyAutoScalingSchedule clearSundayEntries()
Removes all the entries added into Sunday.

Returns a reference to this object so that method calls can be chained together.


toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.