@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScalingConfigurationInfo extends Object implements Serializable, Cloneable
The scaling configuration for an Aurora DB cluster in serverless
DB engine mode.
For more information, see Using Amazon Aurora Serverless v1 in the Amazon Aurora User Guide.
Constructor and Description |
---|
ScalingConfigurationInfo() |
Modifier and Type | Method and Description |
---|---|
ScalingConfigurationInfo |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAutoPause()
Indicates whether automatic pause is allowed for the Aurora DB cluster in
serverless DB engine mode. |
Integer |
getMaxCapacity()
The maximum capacity for an Aurora DB cluster in
serverless DB engine mode. |
Integer |
getMinCapacity()
The minimum capacity for an Aurora DB cluster in
serverless DB engine mode. |
Integer |
getSecondsBeforeTimeout()
The number of seconds before scaling times out.
|
Integer |
getSecondsUntilAutoPause()
The remaining amount of time, in seconds, before the Aurora DB cluster in
serverless mode is paused. |
String |
getTimeoutAction()
The action that occurs when Aurora times out while attempting to change the capacity of an Aurora Serverless v1
cluster.
|
int |
hashCode() |
Boolean |
isAutoPause()
Indicates whether automatic pause is allowed for the Aurora DB cluster in
serverless DB engine mode. |
void |
setAutoPause(Boolean autoPause)
Indicates whether automatic pause is allowed for the Aurora DB cluster in
serverless DB engine mode. |
void |
setMaxCapacity(Integer maxCapacity)
The maximum capacity for an Aurora DB cluster in
serverless DB engine mode. |
void |
setMinCapacity(Integer minCapacity)
The minimum capacity for an Aurora DB cluster in
serverless DB engine mode. |
void |
setSecondsBeforeTimeout(Integer secondsBeforeTimeout)
The number of seconds before scaling times out.
|
void |
setSecondsUntilAutoPause(Integer secondsUntilAutoPause)
The remaining amount of time, in seconds, before the Aurora DB cluster in
serverless mode is paused. |
void |
setTimeoutAction(String timeoutAction)
The action that occurs when Aurora times out while attempting to change the capacity of an Aurora Serverless v1
cluster.
|
String |
toString()
Returns a string representation of this object.
|
ScalingConfigurationInfo |
withAutoPause(Boolean autoPause)
Indicates whether automatic pause is allowed for the Aurora DB cluster in
serverless DB engine mode. |
ScalingConfigurationInfo |
withMaxCapacity(Integer maxCapacity)
The maximum capacity for an Aurora DB cluster in
serverless DB engine mode. |
ScalingConfigurationInfo |
withMinCapacity(Integer minCapacity)
The minimum capacity for an Aurora DB cluster in
serverless DB engine mode. |
ScalingConfigurationInfo |
withSecondsBeforeTimeout(Integer secondsBeforeTimeout)
The number of seconds before scaling times out.
|
ScalingConfigurationInfo |
withSecondsUntilAutoPause(Integer secondsUntilAutoPause)
The remaining amount of time, in seconds, before the Aurora DB cluster in
serverless mode is paused. |
ScalingConfigurationInfo |
withTimeoutAction(String timeoutAction)
The action that occurs when Aurora times out while attempting to change the capacity of an Aurora Serverless v1
cluster.
|
public void setMinCapacity(Integer minCapacity)
The minimum capacity for an Aurora DB cluster in serverless
DB engine mode.
minCapacity
- The minimum capacity for an Aurora DB cluster in serverless
DB engine mode.public Integer getMinCapacity()
The minimum capacity for an Aurora DB cluster in serverless
DB engine mode.
serverless
DB engine mode.public ScalingConfigurationInfo withMinCapacity(Integer minCapacity)
The minimum capacity for an Aurora DB cluster in serverless
DB engine mode.
minCapacity
- The minimum capacity for an Aurora DB cluster in serverless
DB engine mode.public void setMaxCapacity(Integer maxCapacity)
The maximum capacity for an Aurora DB cluster in serverless
DB engine mode.
maxCapacity
- The maximum capacity for an Aurora DB cluster in serverless
DB engine mode.public Integer getMaxCapacity()
The maximum capacity for an Aurora DB cluster in serverless
DB engine mode.
serverless
DB engine mode.public ScalingConfigurationInfo withMaxCapacity(Integer maxCapacity)
The maximum capacity for an Aurora DB cluster in serverless
DB engine mode.
maxCapacity
- The maximum capacity for an Aurora DB cluster in serverless
DB engine mode.public void setAutoPause(Boolean autoPause)
Indicates whether automatic pause is allowed for the Aurora DB cluster in serverless
DB engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
autoPause
- Indicates whether automatic pause is allowed for the Aurora DB cluster in serverless
DB
engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
public Boolean getAutoPause()
Indicates whether automatic pause is allowed for the Aurora DB cluster in serverless
DB engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
serverless
DB
engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
public ScalingConfigurationInfo withAutoPause(Boolean autoPause)
Indicates whether automatic pause is allowed for the Aurora DB cluster in serverless
DB engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
autoPause
- Indicates whether automatic pause is allowed for the Aurora DB cluster in serverless
DB
engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
public Boolean isAutoPause()
Indicates whether automatic pause is allowed for the Aurora DB cluster in serverless
DB engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
serverless
DB
engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
public void setSecondsUntilAutoPause(Integer secondsUntilAutoPause)
The remaining amount of time, in seconds, before the Aurora DB cluster in serverless
mode is paused.
A DB cluster can be paused only when it's idle (it has no connections).
secondsUntilAutoPause
- The remaining amount of time, in seconds, before the Aurora DB cluster in serverless
mode is
paused. A DB cluster can be paused only when it's idle (it has no connections).public Integer getSecondsUntilAutoPause()
The remaining amount of time, in seconds, before the Aurora DB cluster in serverless
mode is paused.
A DB cluster can be paused only when it's idle (it has no connections).
serverless
mode is
paused. A DB cluster can be paused only when it's idle (it has no connections).public ScalingConfigurationInfo withSecondsUntilAutoPause(Integer secondsUntilAutoPause)
The remaining amount of time, in seconds, before the Aurora DB cluster in serverless
mode is paused.
A DB cluster can be paused only when it's idle (it has no connections).
secondsUntilAutoPause
- The remaining amount of time, in seconds, before the Aurora DB cluster in serverless
mode is
paused. A DB cluster can be paused only when it's idle (it has no connections).public void setTimeoutAction(String timeoutAction)
The action that occurs when Aurora times out while attempting to change the capacity of an Aurora Serverless v1
cluster. The value is either ForceApplyCapacityChange
or RollbackCapacityChange
.
ForceApplyCapacityChange
, the default, sets the capacity to the specified value as soon as possible.
RollbackCapacityChange
ignores the capacity change if a scaling point isn't found in the timeout
period.
timeoutAction
- The action that occurs when Aurora times out while attempting to change the capacity of an Aurora
Serverless v1 cluster. The value is either ForceApplyCapacityChange
or
RollbackCapacityChange
.
ForceApplyCapacityChange
, the default, sets the capacity to the specified value as soon as
possible.
RollbackCapacityChange
ignores the capacity change if a scaling point isn't found in the
timeout period.
public String getTimeoutAction()
The action that occurs when Aurora times out while attempting to change the capacity of an Aurora Serverless v1
cluster. The value is either ForceApplyCapacityChange
or RollbackCapacityChange
.
ForceApplyCapacityChange
, the default, sets the capacity to the specified value as soon as possible.
RollbackCapacityChange
ignores the capacity change if a scaling point isn't found in the timeout
period.
ForceApplyCapacityChange
or
RollbackCapacityChange
.
ForceApplyCapacityChange
, the default, sets the capacity to the specified value as soon as
possible.
RollbackCapacityChange
ignores the capacity change if a scaling point isn't found in the
timeout period.
public ScalingConfigurationInfo withTimeoutAction(String timeoutAction)
The action that occurs when Aurora times out while attempting to change the capacity of an Aurora Serverless v1
cluster. The value is either ForceApplyCapacityChange
or RollbackCapacityChange
.
ForceApplyCapacityChange
, the default, sets the capacity to the specified value as soon as possible.
RollbackCapacityChange
ignores the capacity change if a scaling point isn't found in the timeout
period.
timeoutAction
- The action that occurs when Aurora times out while attempting to change the capacity of an Aurora
Serverless v1 cluster. The value is either ForceApplyCapacityChange
or
RollbackCapacityChange
.
ForceApplyCapacityChange
, the default, sets the capacity to the specified value as soon as
possible.
RollbackCapacityChange
ignores the capacity change if a scaling point isn't found in the
timeout period.
public void setSecondsBeforeTimeout(Integer secondsBeforeTimeout)
The number of seconds before scaling times out. What happens when an attempted scaling action times out is
determined by the TimeoutAction
setting.
secondsBeforeTimeout
- The number of seconds before scaling times out. What happens when an attempted scaling action times out is
determined by the TimeoutAction
setting.public Integer getSecondsBeforeTimeout()
The number of seconds before scaling times out. What happens when an attempted scaling action times out is
determined by the TimeoutAction
setting.
TimeoutAction
setting.public ScalingConfigurationInfo withSecondsBeforeTimeout(Integer secondsBeforeTimeout)
The number of seconds before scaling times out. What happens when an attempted scaling action times out is
determined by the TimeoutAction
setting.
secondsBeforeTimeout
- The number of seconds before scaling times out. What happens when an attempted scaling action times out is
determined by the TimeoutAction
setting.public String toString()
toString
in class Object
Object.toString()
public ScalingConfigurationInfo clone()