Class CfnModelPropsMixin.MultiModelConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnModelPropsMixin.MultiModelConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPropsMixin.MultiModelConfigProperty>
- Enclosing interface:
CfnModelPropsMixin.MultiModelConfigProperty
@Stability(Stable)
public static final class CfnModelPropsMixin.MultiModelConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPropsMixin.MultiModelConfigProperty>
A builder for
CfnModelPropsMixin.MultiModelConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.modelCacheSetting(String modelCacheSetting) Sets the value ofCfnModelPropsMixin.MultiModelConfigProperty.getModelCacheSetting()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelCacheSetting
@Stability(Stable) public CfnModelPropsMixin.MultiModelConfigProperty.Builder modelCacheSetting(String modelCacheSetting) Sets the value ofCfnModelPropsMixin.MultiModelConfigProperty.getModelCacheSetting()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelPropsMixin.MultiModelConfigProperty>- Returns:
- a new instance of
CfnModelPropsMixin.MultiModelConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-