@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Scale extends Object implements Serializable, Cloneable, StructuredPojo
A floating-point percentage of the desired number of tasks to place and keep running in the task set.
Constructor and Description |
---|
Scale() |
Modifier and Type | Method and Description |
---|---|
Scale |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
The unit of measure for the scale value.
|
Double |
getValue()
The value, specified as a percent total of a service's
desiredCount , to scale the task set. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setUnit(String unit)
The unit of measure for the scale value.
|
void |
setValue(Double value)
The value, specified as a percent total of a service's
desiredCount , to scale the task set. |
String |
toString()
Returns a string representation of this object.
|
Scale |
withUnit(ScaleUnit unit)
The unit of measure for the scale value.
|
Scale |
withUnit(String unit)
The unit of measure for the scale value.
|
Scale |
withValue(Double value)
The value, specified as a percent total of a service's
desiredCount , to scale the task set. |
public void setValue(Double value)
The value, specified as a percent total of a service's desiredCount
, to scale the task set. Accepted
values are numbers between 0 and 100.
value
- The value, specified as a percent total of a service's desiredCount
, to scale the task set.
Accepted values are numbers between 0 and 100.public Double getValue()
The value, specified as a percent total of a service's desiredCount
, to scale the task set. Accepted
values are numbers between 0 and 100.
desiredCount
, to scale the task set.
Accepted values are numbers between 0 and 100.public Scale withValue(Double value)
The value, specified as a percent total of a service's desiredCount
, to scale the task set. Accepted
values are numbers between 0 and 100.
value
- The value, specified as a percent total of a service's desiredCount
, to scale the task set.
Accepted values are numbers between 0 and 100.public void setUnit(String unit)
The unit of measure for the scale value.
unit
- The unit of measure for the scale value.ScaleUnit
public String getUnit()
The unit of measure for the scale value.
ScaleUnit
public Scale withUnit(String unit)
The unit of measure for the scale value.
unit
- The unit of measure for the scale value.ScaleUnit
public Scale withUnit(ScaleUnit unit)
The unit of measure for the scale value.
unit
- The unit of measure for the scale value.ScaleUnit
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.