@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProductionVariantSummary extends Object implements Serializable, Cloneable, StructuredPojo
Describes weight and capacities for a production variant associated with an endpoint. If you sent a request to the
UpdateWeightAndCapacities API and the endpoint status is Updating, you get different
desired and current values.
| Constructor and Description |
|---|
ProductionVariantSummary() |
| Modifier and Type | Method and Description |
|---|---|
ProductionVariantSummary |
clone() |
boolean |
equals(Object obj) |
Integer |
getCurrentInstanceCount()
The number of instances associated with the variant.
|
Float |
getCurrentWeight()
The weight associated with the variant.
|
Integer |
getDesiredInstanceCount()
The number of instances requested in the
UpdateWeightAndCapacities request. |
Float |
getDesiredWeight()
The requested weight, as specified in the
UpdateWeightAndCapacities request. |
String |
getVariantName()
The name of the variant.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCurrentInstanceCount(Integer currentInstanceCount)
The number of instances associated with the variant.
|
void |
setCurrentWeight(Float currentWeight)
The weight associated with the variant.
|
void |
setDesiredInstanceCount(Integer desiredInstanceCount)
The number of instances requested in the
UpdateWeightAndCapacities request. |
void |
setDesiredWeight(Float desiredWeight)
The requested weight, as specified in the
UpdateWeightAndCapacities request. |
void |
setVariantName(String variantName)
The name of the variant.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ProductionVariantSummary |
withCurrentInstanceCount(Integer currentInstanceCount)
The number of instances associated with the variant.
|
ProductionVariantSummary |
withCurrentWeight(Float currentWeight)
The weight associated with the variant.
|
ProductionVariantSummary |
withDesiredInstanceCount(Integer desiredInstanceCount)
The number of instances requested in the
UpdateWeightAndCapacities request. |
ProductionVariantSummary |
withDesiredWeight(Float desiredWeight)
The requested weight, as specified in the
UpdateWeightAndCapacities request. |
ProductionVariantSummary |
withVariantName(String variantName)
The name of the variant.
|
public void setVariantName(String variantName)
The name of the variant.
variantName - The name of the variant.public String getVariantName()
The name of the variant.
public ProductionVariantSummary withVariantName(String variantName)
The name of the variant.
variantName - The name of the variant.public void setCurrentWeight(Float currentWeight)
The weight associated with the variant.
currentWeight - The weight associated with the variant.public Float getCurrentWeight()
The weight associated with the variant.
public ProductionVariantSummary withCurrentWeight(Float currentWeight)
The weight associated with the variant.
currentWeight - The weight associated with the variant.public void setDesiredWeight(Float desiredWeight)
The requested weight, as specified in the UpdateWeightAndCapacities request.
desiredWeight - The requested weight, as specified in the UpdateWeightAndCapacities request.public Float getDesiredWeight()
The requested weight, as specified in the UpdateWeightAndCapacities request.
UpdateWeightAndCapacities request.public ProductionVariantSummary withDesiredWeight(Float desiredWeight)
The requested weight, as specified in the UpdateWeightAndCapacities request.
desiredWeight - The requested weight, as specified in the UpdateWeightAndCapacities request.public void setCurrentInstanceCount(Integer currentInstanceCount)
The number of instances associated with the variant.
currentInstanceCount - The number of instances associated with the variant.public Integer getCurrentInstanceCount()
The number of instances associated with the variant.
public ProductionVariantSummary withCurrentInstanceCount(Integer currentInstanceCount)
The number of instances associated with the variant.
currentInstanceCount - The number of instances associated with the variant.public void setDesiredInstanceCount(Integer desiredInstanceCount)
The number of instances requested in the UpdateWeightAndCapacities request.
desiredInstanceCount - The number of instances requested in the UpdateWeightAndCapacities request.public Integer getDesiredInstanceCount()
The number of instances requested in the UpdateWeightAndCapacities request.
UpdateWeightAndCapacities request.public ProductionVariantSummary withDesiredInstanceCount(Integer desiredInstanceCount)
The number of instances requested in the UpdateWeightAndCapacities request.
desiredInstanceCount - The number of instances requested in the UpdateWeightAndCapacities request.public String toString()
toString in class ObjectObject.toString()public ProductionVariantSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.