@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 service. This is used
when a service uses the CODE_DEPLOY
deployment controller type.
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; useful for testing and debugging.
|
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.
value
- The value, specified as a percent total of a service's desiredCount
, to scale the task set.public Double getValue()
The value, specified as a percent total of a service's desiredCount
, to scale the task set.
desiredCount
, to scale the task set.public Scale withValue(Double value)
The value, specified as a percent total of a service's desiredCount
, to scale the task set.
value
- The value, specified as a percent total of a service's desiredCount
, to scale the task set.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.