public final class ScaleAction extends Object
| Constructor and Description |
|---|
ScaleAction() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
cooldown()
Get the cooldown property: the amount of time to wait since the last scaling action before this action occurs.
|
ScaleDirection |
direction()
Get the direction property: the scale direction.
|
ScaleType |
type()
Get the type property: the type of action that should occur when the scale rule fires.
|
void |
validate()
Validates the instance.
|
String |
value()
Get the value property: the number of instances that are involved in the scaling action.
|
ScaleAction |
withCooldown(Duration cooldown)
Set the cooldown property: the amount of time to wait since the last scaling action before this action occurs.
|
ScaleAction |
withDirection(ScaleDirection direction)
Set the direction property: the scale direction.
|
ScaleAction |
withType(ScaleType type)
Set the type property: the type of action that should occur when the scale rule fires.
|
ScaleAction |
withValue(String value)
Set the value property: the number of instances that are involved in the scaling action.
|
public ScaleDirection direction()
public ScaleAction withDirection(ScaleDirection direction)
direction - the direction value to set.public ScaleType type()
public ScaleAction withType(ScaleType type)
type - the type value to set.public String value()
public ScaleAction withValue(String value)
value - the value value to set.public Duration cooldown()
public ScaleAction withCooldown(Duration cooldown)
cooldown - the cooldown value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.