public static final class ScalingSchedule.Builder
extends java.lang.Object
ScalingSchedule
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ScalingSchedule |
build()
Builds the configured instance.
|
ScalingSchedule.Builder |
endTime(java.time.Instant endTime)
Sets the value of
ScalingSchedule.getEndTime() |
ScalingSchedule.Builder |
maxCapacity(java.lang.Number maxCapacity)
Sets the value of
ScalingSchedule.getMaxCapacity() |
ScalingSchedule.Builder |
minCapacity(java.lang.Number minCapacity)
Sets the value of
ScalingSchedule.getMinCapacity() |
ScalingSchedule.Builder |
schedule(Schedule schedule)
Sets the value of
ScalingSchedule.getSchedule() |
ScalingSchedule.Builder |
startTime(java.time.Instant startTime)
Sets the value of
ScalingSchedule.getStartTime() |
public ScalingSchedule.Builder schedule(Schedule schedule)
ScalingSchedule.getSchedule()
schedule
- When to perform this action. This parameter is required.this
public ScalingSchedule.Builder endTime(java.time.Instant endTime)
ScalingSchedule.getEndTime()
endTime
- When this scheduled action expires.this
public ScalingSchedule.Builder maxCapacity(java.lang.Number maxCapacity)
ScalingSchedule.getMaxCapacity()
maxCapacity
- The new maximum capacity.
During the scheduled time, the current capacity is above the maximum
capacity, Application Auto Scaling scales in to the maximum capacity.
At least one of maxCapacity and minCapacity must be supplied.
this
public ScalingSchedule.Builder minCapacity(java.lang.Number minCapacity)
ScalingSchedule.getMinCapacity()
minCapacity
- The new minimum capacity.
During the scheduled time, if the current capacity is below the minimum
capacity, Application Auto Scaling scales out to the minimum capacity.
At least one of maxCapacity and minCapacity must be supplied.
this
public ScalingSchedule.Builder startTime(java.time.Instant startTime)
ScalingSchedule.getStartTime()
startTime
- When this scheduled action becomes active.this
public ScalingSchedule build()
ScalingSchedule
java.lang.NullPointerException
- if any required attribute was not provided