@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.
|
ProductionVariantServerlessConfig |
getCurrentServerlessConfig()
The serverless configuration for the endpoint.
|
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. |
ProductionVariantServerlessConfig |
getDesiredServerlessConfig()
The serverless configuration requested for the endpoint update.
|
Float |
getDesiredWeight()
The requested weight, as specified in the
UpdateEndpointWeightsAndCapacities request. |
ProductionVariantManagedInstanceScaling |
getManagedInstanceScaling()
Settings that control the range in the number of instances that the endpoint provisions as it scales up or down
to accommodate traffic.
|
ProductionVariantRoutingConfig |
getRoutingConfig()
Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.
|
String |
getVariantName()
The name of the variant.
|
List<ProductionVariantStatus> |
getVariantStatus()
The endpoint variant status which describes the current deployment stage status or operational status.
|
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 |
setCurrentServerlessConfig(ProductionVariantServerlessConfig currentServerlessConfig)
The serverless configuration for the endpoint.
|
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 |
setDesiredServerlessConfig(ProductionVariantServerlessConfig desiredServerlessConfig)
The serverless configuration requested for the endpoint update.
|
void |
setDesiredWeight(Float desiredWeight)
The requested weight, as specified in the
UpdateEndpointWeightsAndCapacities request. |
void |
setManagedInstanceScaling(ProductionVariantManagedInstanceScaling managedInstanceScaling)
Settings that control the range in the number of instances that the endpoint provisions as it scales up or down
to accommodate traffic.
|
void |
setRoutingConfig(ProductionVariantRoutingConfig routingConfig)
Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.
|
void |
setVariantName(String variantName)
The name of the variant.
|
void |
setVariantStatus(Collection<ProductionVariantStatus> variantStatus)
The endpoint variant status which describes the current deployment stage status or operational status.
|
String |
toString()
Returns a string representation of this object.
|
ProductionVariantSummary |
withCurrentInstanceCount(Integer currentInstanceCount)
The number of instances associated with the variant.
|
ProductionVariantSummary |
withCurrentServerlessConfig(ProductionVariantServerlessConfig currentServerlessConfig)
The serverless configuration for the endpoint.
|
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 |
withDesiredServerlessConfig(ProductionVariantServerlessConfig desiredServerlessConfig)
The serverless configuration requested for the endpoint update.
|
ProductionVariantSummary |
withDesiredWeight(Float desiredWeight)
The requested weight, as specified in the
UpdateEndpointWeightsAndCapacities request. |
ProductionVariantSummary |
withManagedInstanceScaling(ProductionVariantManagedInstanceScaling managedInstanceScaling)
Settings that control the range in the number of instances that the endpoint provisions as it scales up or down
to accommodate traffic.
|
ProductionVariantSummary |
withRoutingConfig(ProductionVariantRoutingConfig routingConfig)
Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.
|
ProductionVariantSummary |
withVariantName(String variantName)
The name of the variant.
|
ProductionVariantSummary |
withVariantStatus(Collection<ProductionVariantStatus> variantStatus)
The endpoint variant status which describes the current deployment stage status or operational status.
|
ProductionVariantSummary |
withVariantStatus(ProductionVariantStatus... variantStatus)
The endpoint variant status which describes the current deployment stage status or operational status.
|
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 List<ProductionVariantStatus> getVariantStatus()
The endpoint variant status which describes the current deployment stage status or operational status.
public void setVariantStatus(Collection<ProductionVariantStatus> variantStatus)
The endpoint variant status which describes the current deployment stage status or operational status.
variantStatus
- The endpoint variant status which describes the current deployment stage status or operational status.public ProductionVariantSummary withVariantStatus(ProductionVariantStatus... variantStatus)
The endpoint variant status which describes the current deployment stage status or operational status.
NOTE: This method appends the values to the existing list (if any). Use
setVariantStatus(java.util.Collection)
or withVariantStatus(java.util.Collection)
if you want
to override the existing values.
variantStatus
- The endpoint variant status which describes the current deployment stage status or operational status.public ProductionVariantSummary withVariantStatus(Collection<ProductionVariantStatus> variantStatus)
The endpoint variant status which describes the current deployment stage status or operational status.
variantStatus
- The endpoint variant status which describes the current deployment stage status or operational status.public void setCurrentServerlessConfig(ProductionVariantServerlessConfig currentServerlessConfig)
The serverless configuration for the endpoint.
currentServerlessConfig
- The serverless configuration for the endpoint.public ProductionVariantServerlessConfig getCurrentServerlessConfig()
The serverless configuration for the endpoint.
public ProductionVariantSummary withCurrentServerlessConfig(ProductionVariantServerlessConfig currentServerlessConfig)
The serverless configuration for the endpoint.
currentServerlessConfig
- The serverless configuration for the endpoint.public void setDesiredServerlessConfig(ProductionVariantServerlessConfig desiredServerlessConfig)
The serverless configuration requested for the endpoint update.
desiredServerlessConfig
- The serverless configuration requested for the endpoint update.public ProductionVariantServerlessConfig getDesiredServerlessConfig()
The serverless configuration requested for the endpoint update.
public ProductionVariantSummary withDesiredServerlessConfig(ProductionVariantServerlessConfig desiredServerlessConfig)
The serverless configuration requested for the endpoint update.
desiredServerlessConfig
- The serverless configuration requested for the endpoint update.public void setManagedInstanceScaling(ProductionVariantManagedInstanceScaling managedInstanceScaling)
Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.
managedInstanceScaling
- Settings that control the range in the number of instances that the endpoint provisions as it scales up or
down to accommodate traffic.public ProductionVariantManagedInstanceScaling getManagedInstanceScaling()
Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.
public ProductionVariantSummary withManagedInstanceScaling(ProductionVariantManagedInstanceScaling managedInstanceScaling)
Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.
managedInstanceScaling
- Settings that control the range in the number of instances that the endpoint provisions as it scales up or
down to accommodate traffic.public void setRoutingConfig(ProductionVariantRoutingConfig routingConfig)
Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.
routingConfig
- Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.public ProductionVariantRoutingConfig getRoutingConfig()
Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.
public ProductionVariantSummary withRoutingConfig(ProductionVariantRoutingConfig routingConfig)
Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.
routingConfig
- Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.public String toString()
toString
in class Object
Object.toString()
public ProductionVariantSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.