Class CfnInferenceComponentProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceComponentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponentProps>
- Enclosing interface:
CfnInferenceComponentProps
@Stability(Stable)
public static final class CfnInferenceComponentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponentProps>
A builder for
CfnInferenceComponentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deploymentConfig(IResolvable deploymentConfig) Sets the value ofCfnInferenceComponentProps.getDeploymentConfig()Sets the value ofCfnInferenceComponentProps.getDeploymentConfig()endpointArn(String endpointArn) Sets the value ofCfnInferenceComponentProps.getEndpointArn()endpointName(String endpointName) Sets the value ofCfnInferenceComponentProps.getEndpointName()inferenceComponentName(String inferenceComponentName) Sets the value ofCfnInferenceComponentProps.getInferenceComponentName()runtimeConfig(IResolvable runtimeConfig) Sets the value ofCfnInferenceComponentProps.getRuntimeConfig()Sets the value ofCfnInferenceComponentProps.getRuntimeConfig()specification(IResolvable specification) Sets the value ofCfnInferenceComponentProps.getSpecification()Sets the value ofCfnInferenceComponentProps.getSpecification()Sets the value ofCfnInferenceComponentProps.getTags()variantName(String variantName) Sets the value ofCfnInferenceComponentProps.getVariantName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpointName
Sets the value ofCfnInferenceComponentProps.getEndpointName()- Parameters:
endpointName- The name of the endpoint that hosts the inference component. This parameter is required.- Returns:
this
-
specification
@Stability(Stable) public CfnInferenceComponentProps.Builder specification(IResolvable specification) Sets the value ofCfnInferenceComponentProps.getSpecification()- Parameters:
specification- The specification for the inference component. This parameter is required.- Returns:
this
-
specification
@Stability(Stable) public CfnInferenceComponentProps.Builder specification(CfnInferenceComponent.InferenceComponentSpecificationProperty specification) Sets the value ofCfnInferenceComponentProps.getSpecification()- Parameters:
specification- The specification for the inference component. This parameter is required.- Returns:
this
-
deploymentConfig
@Stability(Stable) public CfnInferenceComponentProps.Builder deploymentConfig(IResolvable deploymentConfig) Sets the value ofCfnInferenceComponentProps.getDeploymentConfig()- Parameters:
deploymentConfig- The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.- Returns:
this
-
deploymentConfig
@Stability(Stable) public CfnInferenceComponentProps.Builder deploymentConfig(CfnInferenceComponent.InferenceComponentDeploymentConfigProperty deploymentConfig) Sets the value ofCfnInferenceComponentProps.getDeploymentConfig()- Parameters:
deploymentConfig- The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.- Returns:
this
-
endpointArn
Sets the value ofCfnInferenceComponentProps.getEndpointArn()- Parameters:
endpointArn- The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.- Returns:
this
-
inferenceComponentName
@Stability(Stable) public CfnInferenceComponentProps.Builder inferenceComponentName(String inferenceComponentName) Sets the value ofCfnInferenceComponentProps.getInferenceComponentName()- Parameters:
inferenceComponentName- The name of the inference component.- Returns:
this
-
runtimeConfig
@Stability(Stable) public CfnInferenceComponentProps.Builder runtimeConfig(IResolvable runtimeConfig) Sets the value ofCfnInferenceComponentProps.getRuntimeConfig()- Parameters:
runtimeConfig- The runtime config for the inference component.- Returns:
this
-
runtimeConfig
@Stability(Stable) public CfnInferenceComponentProps.Builder runtimeConfig(CfnInferenceComponent.InferenceComponentRuntimeConfigProperty runtimeConfig) Sets the value ofCfnInferenceComponentProps.getRuntimeConfig()- Parameters:
runtimeConfig- The runtime config for the inference component.- Returns:
this
-
tags
Sets the value ofCfnInferenceComponentProps.getTags()- Parameters:
tags- An array of tags to apply to the resource.- Returns:
this
-
variantName
Sets the value ofCfnInferenceComponentProps.getVariantName()- Parameters:
variantName- The name of the production variant that hosts the inference component.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponentProps>- Returns:
- a new instance of
CfnInferenceComponentProps - Throws:
NullPointerException- if any required attribute was not provided
-