Class CfnInferenceComponent.InferenceComponentDataCacheConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.InferenceComponentDataCacheConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentDataCacheConfigProperty>
- Enclosing interface:
CfnInferenceComponent.InferenceComponentDataCacheConfigProperty
@Stability(Stable)
public static final class CfnInferenceComponent.InferenceComponentDataCacheConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentDataCacheConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enableCaching(Boolean enableCaching) enableCaching(IResolvable enableCaching)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableCaching
@Stability(Stable) public CfnInferenceComponent.InferenceComponentDataCacheConfigProperty.Builder enableCaching(Boolean enableCaching) Sets the value ofCfnInferenceComponent.InferenceComponentDataCacheConfigProperty.getEnableCaching()- Parameters:
enableCaching- Whether the endpoint caches the model artifacts and container image on each instance it provisions for the inference component. This parameter is required.- Returns:
this
-
enableCaching
@Stability(Stable) public CfnInferenceComponent.InferenceComponentDataCacheConfigProperty.Builder enableCaching(IResolvable enableCaching) Sets the value ofCfnInferenceComponent.InferenceComponentDataCacheConfigProperty.getEnableCaching()- Parameters:
enableCaching- Whether the endpoint caches the model artifacts and container image on each instance it provisions for the inference component. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentDataCacheConfigProperty>- Returns:
- a new instance of
CfnInferenceComponent.InferenceComponentDataCacheConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-