public class TimeBasedAutoScalingConfiguration
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an instance's time-based auto scaling configuration.
Modifier and Type | Field and Description |
---|---|
private WeeklyAutoScalingSchedule |
autoScalingSchedule
A
WeeklyAutoScalingSchedule object with the instance
schedule. |
private java.lang.String |
instanceId
The instance ID.
|
Constructor and Description |
---|
TimeBasedAutoScalingConfiguration() |
Modifier and Type | Method and Description |
---|---|
TimeBasedAutoScalingConfiguration |
clone() |
boolean |
equals(java.lang.Object obj) |
WeeklyAutoScalingSchedule |
getAutoScalingSchedule()
A
WeeklyAutoScalingSchedule object with the instance
schedule. |
java.lang.String |
getInstanceId()
The instance ID.
|
int |
hashCode() |
void |
setAutoScalingSchedule(WeeklyAutoScalingSchedule autoScalingSchedule)
A
WeeklyAutoScalingSchedule object with the instance
schedule. |
void |
setInstanceId(java.lang.String instanceId)
The instance ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TimeBasedAutoScalingConfiguration |
withAutoScalingSchedule(WeeklyAutoScalingSchedule autoScalingSchedule)
A
WeeklyAutoScalingSchedule object with the instance
schedule. |
TimeBasedAutoScalingConfiguration |
withInstanceId(java.lang.String instanceId)
The instance ID.
|
private java.lang.String instanceId
The instance ID.
private WeeklyAutoScalingSchedule autoScalingSchedule
A WeeklyAutoScalingSchedule
object with the instance
schedule.
public void setInstanceId(java.lang.String instanceId)
The instance ID.
instanceId
- The instance ID.public java.lang.String getInstanceId()
The instance ID.
public TimeBasedAutoScalingConfiguration withInstanceId(java.lang.String instanceId)
The instance ID.
instanceId
- The instance ID.public void setAutoScalingSchedule(WeeklyAutoScalingSchedule autoScalingSchedule)
A WeeklyAutoScalingSchedule
object with the instance
schedule.
autoScalingSchedule
- A WeeklyAutoScalingSchedule
object with the instance
schedule.public WeeklyAutoScalingSchedule getAutoScalingSchedule()
A WeeklyAutoScalingSchedule
object with the instance
schedule.
WeeklyAutoScalingSchedule
object with the instance
schedule.public TimeBasedAutoScalingConfiguration withAutoScalingSchedule(WeeklyAutoScalingSchedule autoScalingSchedule)
A WeeklyAutoScalingSchedule
object with the instance
schedule.
autoScalingSchedule
- A WeeklyAutoScalingSchedule
object with the instance
schedule.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TimeBasedAutoScalingConfiguration clone()
clone
in class java.lang.Object