@Generated(value="software.amazon.awssdk:codegen") public class ProductionVariant extends Object implements StructuredPojo, ToCopyableBuilder<ProductionVariant.Builder,ProductionVariant>
Identifies a model that you want to host and the resources to deploy for hosting it. If you are deploying multiple models, tell Amazon SageMaker how to distribute traffic among the models by specifying variant weights.
Modifier and Type | Class and Description |
---|---|
static interface |
ProductionVariant.Builder |
Modifier and Type | Method and Description |
---|---|
static ProductionVariant.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
initialInstanceCount()
Number of instances to launch initially.
|
Float |
initialVariantWeight()
Determines initial traffic distribution among all of the models that you specify in the endpoint configuration.
|
ProductionVariantInstanceType |
instanceType()
The ML compute instance type.
|
String |
instanceTypeString()
The ML compute instance type.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
modelName()
The name of the model that you want to host.
|
static Class<? extends ProductionVariant.Builder> |
serializableBuilderClass() |
ProductionVariant.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 production variant.
|
copy
public String variantName()
The name of the production variant.
public String modelName()
The name of the model that you want to host. This is the name that you specified when creating the model.
public Integer initialInstanceCount()
Number of instances to launch initially.
public ProductionVariantInstanceType instanceType()
The ML compute instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return ProductionVariantInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from instanceTypeString()
.
ProductionVariantInstanceType
public String instanceTypeString()
The ML compute instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return ProductionVariantInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from instanceTypeString()
.
ProductionVariantInstanceType
public Float initialVariantWeight()
Determines initial traffic distribution among all of the models that you specify in the endpoint configuration.
The traffic to a production variant is determined by the ratio of the VariantWeight
to the sum of
all VariantWeight
values across all ProductionVariants. If unspecified, it defaults to 1.0.
VariantWeight
to the sum of all VariantWeight
values across all
ProductionVariants. If unspecified, it defaults to 1.0.public ProductionVariant.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ProductionVariant.Builder,ProductionVariant>
public static ProductionVariant.Builder builder()
public static Class<? extends ProductionVariant.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.