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