@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DesiredWeightAndCapacity extends Object implements Serializable, Cloneable, StructuredPojo
Specifies weight and capacity values for a production variant.
Constructor and Description |
---|
DesiredWeightAndCapacity() |
Modifier and Type | Method and Description |
---|---|
DesiredWeightAndCapacity |
clone() |
boolean |
equals(Object obj) |
Integer |
getDesiredInstanceCount()
The variant's capacity.
|
Float |
getDesiredWeight()
The variant's weight.
|
String |
getVariantName()
The name of the variant to update.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDesiredInstanceCount(Integer desiredInstanceCount)
The variant's capacity.
|
void |
setDesiredWeight(Float desiredWeight)
The variant's weight.
|
void |
setVariantName(String variantName)
The name of the variant to update.
|
String |
toString()
Returns a string representation of this object.
|
DesiredWeightAndCapacity |
withDesiredInstanceCount(Integer desiredInstanceCount)
The variant's capacity.
|
DesiredWeightAndCapacity |
withDesiredWeight(Float desiredWeight)
The variant's weight.
|
DesiredWeightAndCapacity |
withVariantName(String variantName)
The name of the variant to update.
|
public void setVariantName(String variantName)
The name of the variant to update.
variantName
- The name of the variant to update.public String getVariantName()
The name of the variant to update.
public DesiredWeightAndCapacity withVariantName(String variantName)
The name of the variant to update.
variantName
- The name of the variant to update.public void setDesiredWeight(Float desiredWeight)
The variant's weight.
desiredWeight
- The variant's weight.public Float getDesiredWeight()
The variant's weight.
public DesiredWeightAndCapacity withDesiredWeight(Float desiredWeight)
The variant's weight.
desiredWeight
- The variant's weight.public void setDesiredInstanceCount(Integer desiredInstanceCount)
The variant's capacity.
desiredInstanceCount
- The variant's capacity.public Integer getDesiredInstanceCount()
The variant's capacity.
public DesiredWeightAndCapacity withDesiredInstanceCount(Integer desiredInstanceCount)
The variant's capacity.
desiredInstanceCount
- The variant's capacity.public String toString()
toString
in class Object
Object.toString()
public DesiredWeightAndCapacity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.