@Generated(value="software.amazon.awssdk:codegen") public final class ProductionVariantSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ProductionVariantSummary.Builder,ProductionVariantSummary>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
ProductionVariantSummary.Builder |
Modifier and Type | Method and Description |
---|---|
static ProductionVariantSummary.Builder |
builder() |
Integer |
currentInstanceCount()
The number of instances associated with the variant.
|
Float |
currentWeight()
The weight associated with the variant.
|
List<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 . |
Integer |
desiredInstanceCount()
The number of instances requested in the
UpdateEndpointWeightsAndCapacities request. |
Float |
desiredWeight()
The requested weight, as specified in the
UpdateEndpointWeightsAndCapacities request. |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ProductionVariantSummary.Builder> |
serializableBuilderClass() |
ProductionVariantSummary.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
variantName()
The name of the variant.
|
copy
public String variantName()
The name of the variant.
public List<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
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
DeployedImage
objects that specify the Amazon EC2 Container Registry paths of
the inference images deployed on instances of this ProductionVariant
.public Float currentWeight()
The weight associated with the variant.
public Float desiredWeight()
The requested weight, as specified in the UpdateEndpointWeightsAndCapacities
request.
UpdateEndpointWeightsAndCapacities
request.public Integer currentInstanceCount()
The number of instances associated with the variant.
public Integer desiredInstanceCount()
The number of instances requested in the UpdateEndpointWeightsAndCapacities
request.
UpdateEndpointWeightsAndCapacities
request.public ProductionVariantSummary.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ProductionVariantSummary.Builder,ProductionVariantSummary>
public static ProductionVariantSummary.Builder builder()
public static Class<? extends ProductionVariantSummary.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.