@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
UpdateEndpointWeightsAndCapacities 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.
|
List<DeployedImage> |
getDeployedImages()
An array of
DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant. |
Integer |
getDesiredInstanceCount()
The number of instances requested in the
UpdateEndpointWeightsAndCapacities request. |
Float |
getDesiredWeight()
The requested weight, as specified in the
UpdateEndpointWeightsAndCapacities request. |
String |
getVariantName()
The name of the variant.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCurrentInstanceCount(Integer currentInstanceCount)
The number of instances associated with the variant.
|
void |
setCurrentWeight(Float currentWeight)
The weight associated with the variant.
|
void |
setDeployedImages(Collection<DeployedImage> deployedImages)
An array of
DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant. |
void |
setDesiredInstanceCount(Integer desiredInstanceCount)
The number of instances requested in the
UpdateEndpointWeightsAndCapacities request. |
void |
setDesiredWeight(Float desiredWeight)
The requested weight, as specified in the
UpdateEndpointWeightsAndCapacities request. |
void |
setVariantName(String variantName)
The name of the variant.
|
String |
toString()
Returns a string representation of this object.
|
ProductionVariantSummary |
withCurrentInstanceCount(Integer currentInstanceCount)
The number of instances associated with the variant.
|
ProductionVariantSummary |
withCurrentWeight(Float currentWeight)
The weight associated with the variant.
|
ProductionVariantSummary |
withDeployedImages(Collection<DeployedImage> deployedImages)
An array of
DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant. |
ProductionVariantSummary |
withDeployedImages(DeployedImage... deployedImages)
An array of
DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant. |
ProductionVariantSummary |
withDesiredInstanceCount(Integer desiredInstanceCount)
The number of instances requested in the
UpdateEndpointWeightsAndCapacities request. |
ProductionVariantSummary |
withDesiredWeight(Float desiredWeight)
The requested weight, as specified in the
UpdateEndpointWeightsAndCapacities 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 List<DeployedImage> getDeployedImages()
An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant.
DeployedImage objects that specify the Amazon EC2 Container Registry paths of
the inference images deployed on instances of this ProductionVariant.public void setDeployedImages(Collection<DeployedImage> deployedImages)
An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant.
deployedImages - An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant.public ProductionVariantSummary withDeployedImages(DeployedImage... deployedImages)
An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant.
NOTE: This method appends the values to the existing list (if any). Use
setDeployedImages(java.util.Collection) or withDeployedImages(java.util.Collection) if you want
to override the existing values.
deployedImages - An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant.public ProductionVariantSummary withDeployedImages(Collection<DeployedImage> deployedImages)
An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant.
deployedImages - An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the
inference images deployed on instances of this ProductionVariant.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 UpdateEndpointWeightsAndCapacities request.
desiredWeight - The requested weight, as specified in the UpdateEndpointWeightsAndCapacities request.public Float getDesiredWeight()
The requested weight, as specified in the UpdateEndpointWeightsAndCapacities request.
UpdateEndpointWeightsAndCapacities request.public ProductionVariantSummary withDesiredWeight(Float desiredWeight)
The requested weight, as specified in the UpdateEndpointWeightsAndCapacities request.
desiredWeight - The requested weight, as specified in the UpdateEndpointWeightsAndCapacities 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 UpdateEndpointWeightsAndCapacities request.
desiredInstanceCount - The number of instances requested in the UpdateEndpointWeightsAndCapacities request.public Integer getDesiredInstanceCount()
The number of instances requested in the UpdateEndpointWeightsAndCapacities request.
UpdateEndpointWeightsAndCapacities request.public ProductionVariantSummary withDesiredInstanceCount(Integer desiredInstanceCount)
The number of instances requested in the UpdateEndpointWeightsAndCapacities request.
desiredInstanceCount - The number of instances requested in the UpdateEndpointWeightsAndCapacities request.public String toString()
toString in class ObjectObject.toString()public ProductionVariantSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.