@Generated(value="software.amazon.awssdk:codegen") public final class MultiModelConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MultiModelConfig.Builder,MultiModelConfig>
Specifies additional configuration for hosting multi-model endpoints.
Modifier and Type | Class and Description |
---|---|
static interface |
MultiModelConfig.Builder |
Modifier and Type | Method and Description |
---|---|
static MultiModelConfig.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ModelCacheSetting |
modelCacheSetting()
Whether to cache models for a multi-model endpoint.
|
String |
modelCacheSettingAsString()
Whether to cache models for a multi-model endpoint.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MultiModelConfig.Builder> |
serializableBuilderClass() |
MultiModelConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final ModelCacheSetting modelCacheSetting()
Whether to cache models for a multi-model endpoint. By default, multi-model endpoints cache models so that a
model does not have to be loaded into memory each time it is invoked. Some use cases do not benefit from model
caching. For example, if an endpoint hosts a large number of models that are each invoked infrequently, the
endpoint might perform better if you disable model caching. To disable model caching, set the value of this
parameter to Disabled
.
If the service returns an enum value that is not available in the current SDK version, modelCacheSetting
will return ModelCacheSetting.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from modelCacheSettingAsString()
.
Disabled
.ModelCacheSetting
public final String modelCacheSettingAsString()
Whether to cache models for a multi-model endpoint. By default, multi-model endpoints cache models so that a
model does not have to be loaded into memory each time it is invoked. Some use cases do not benefit from model
caching. For example, if an endpoint hosts a large number of models that are each invoked infrequently, the
endpoint might perform better if you disable model caching. To disable model caching, set the value of this
parameter to Disabled
.
If the service returns an enum value that is not available in the current SDK version, modelCacheSetting
will return ModelCacheSetting.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from modelCacheSettingAsString()
.
Disabled
.ModelCacheSetting
public MultiModelConfig.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<MultiModelConfig.Builder,MultiModelConfig>
public static MultiModelConfig.Builder builder()
public static Class<? extends MultiModelConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.