Class CfnInferenceExperimentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnInferenceExperimentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceExperimentMixinProps>
- Enclosing interface:
CfnInferenceExperimentMixinProps
@Stability(Stable)
public static final class CfnInferenceExperimentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceExperimentMixinProps>
A builder for
CfnInferenceExperimentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataStorageConfig(CfnInferenceExperimentPropsMixin.DataStorageConfigProperty dataStorageConfig) Sets the value ofCfnInferenceExperimentMixinProps.getDataStorageConfig()dataStorageConfig(IResolvable dataStorageConfig) Sets the value ofCfnInferenceExperimentMixinProps.getDataStorageConfig()description(String description) Sets the value ofCfnInferenceExperimentMixinProps.getDescription()desiredState(String desiredState) Sets the value ofCfnInferenceExperimentMixinProps.getDesiredState()endpointName(String endpointName) Sets the value ofCfnInferenceExperimentMixinProps.getEndpointName()Sets the value ofCfnInferenceExperimentMixinProps.getKmsKey()modelVariants(List<? extends Object> modelVariants) Sets the value ofCfnInferenceExperimentMixinProps.getModelVariants()modelVariants(IResolvable modelVariants) Sets the value ofCfnInferenceExperimentMixinProps.getModelVariants()Sets the value ofCfnInferenceExperimentMixinProps.getName()Sets the value ofCfnInferenceExperimentMixinProps.getRoleArn()Sets the value ofCfnInferenceExperimentMixinProps.getSchedule()schedule(IResolvable schedule) Sets the value ofCfnInferenceExperimentMixinProps.getSchedule()shadowModeConfig(CfnInferenceExperimentPropsMixin.ShadowModeConfigProperty shadowModeConfig) Sets the value ofCfnInferenceExperimentMixinProps.getShadowModeConfig()shadowModeConfig(IResolvable shadowModeConfig) Sets the value ofCfnInferenceExperimentMixinProps.getShadowModeConfig()statusReason(String statusReason) Sets the value ofCfnInferenceExperimentMixinProps.getStatusReason()Sets the value ofCfnInferenceExperimentMixinProps.getTags()Sets the value ofCfnInferenceExperimentMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataStorageConfig
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder dataStorageConfig(IResolvable dataStorageConfig) Sets the value ofCfnInferenceExperimentMixinProps.getDataStorageConfig()- Parameters:
dataStorageConfig- The Amazon S3 location and configuration for storing inference request and response data.- Returns:
this
-
dataStorageConfig
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder dataStorageConfig(CfnInferenceExperimentPropsMixin.DataStorageConfigProperty dataStorageConfig) Sets the value ofCfnInferenceExperimentMixinProps.getDataStorageConfig()- Parameters:
dataStorageConfig- The Amazon S3 location and configuration for storing inference request and response data.- Returns:
this
-
description
Sets the value ofCfnInferenceExperimentMixinProps.getDescription()- Parameters:
description- The description of the inference experiment.- Returns:
this
-
desiredState
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder desiredState(String desiredState) Sets the value ofCfnInferenceExperimentMixinProps.getDesiredState()- Parameters:
desiredState- The desired state of the experiment after stopping. The possible states are the following:.Completed: The experiment completed successfullyCancelled: The experiment was canceled
- Returns:
this
-
endpointName
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder endpointName(String endpointName) Sets the value ofCfnInferenceExperimentMixinProps.getEndpointName()- Parameters:
endpointName- The name of the endpoint.- Returns:
this
-
kmsKey
Sets the value ofCfnInferenceExperimentMixinProps.getKmsKey()- Parameters:
kmsKey- The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.- Returns:
this
-
modelVariants
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder modelVariants(IResolvable modelVariants) Sets the value ofCfnInferenceExperimentMixinProps.getModelVariants()- Parameters:
modelVariants- An array ofModelVariantConfigSummaryobjects. There is one for each variant in the inference experiment. EachModelVariantConfigSummaryobject in the array describes the infrastructure configuration for deploying the corresponding variant.- Returns:
this
-
modelVariants
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder modelVariants(List<? extends Object> modelVariants) Sets the value ofCfnInferenceExperimentMixinProps.getModelVariants()- Parameters:
modelVariants- An array ofModelVariantConfigSummaryobjects. There is one for each variant in the inference experiment. EachModelVariantConfigSummaryobject in the array describes the infrastructure configuration for deploying the corresponding variant.- Returns:
this
-
name
Sets the value ofCfnInferenceExperimentMixinProps.getName()- Parameters:
name- The name of the inference experiment.- Returns:
this
-
roleArn
Sets the value ofCfnInferenceExperimentMixinProps.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and manage Amazon SageMaker Inference endpoints for model deployment.- Returns:
this
-
schedule
Sets the value ofCfnInferenceExperimentMixinProps.getSchedule()- Parameters:
schedule- The duration for which the inference experiment ran or will run. The maximum duration that you can set for an inference experiment is 30 days.- Returns:
this
-
schedule
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder schedule(CfnInferenceExperimentPropsMixin.InferenceExperimentScheduleProperty schedule) Sets the value ofCfnInferenceExperimentMixinProps.getSchedule()- Parameters:
schedule- The duration for which the inference experiment ran or will run. The maximum duration that you can set for an inference experiment is 30 days.- Returns:
this
-
shadowModeConfig
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder shadowModeConfig(IResolvable shadowModeConfig) Sets the value ofCfnInferenceExperimentMixinProps.getShadowModeConfig()- Parameters:
shadowModeConfig- The configuration ofShadowModeinference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.- Returns:
this
-
shadowModeConfig
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder shadowModeConfig(CfnInferenceExperimentPropsMixin.ShadowModeConfigProperty shadowModeConfig) Sets the value ofCfnInferenceExperimentMixinProps.getShadowModeConfig()- Parameters:
shadowModeConfig- The configuration ofShadowModeinference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.- Returns:
this
-
statusReason
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder statusReason(String statusReason) Sets the value ofCfnInferenceExperimentMixinProps.getStatusReason()- Parameters:
statusReason- The error message for the inference experiment status result.- Returns:
this
-
tags
@Stability(Stable) public CfnInferenceExperimentMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnInferenceExperimentMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
type
Sets the value ofCfnInferenceExperimentMixinProps.getType()- Parameters:
type- The type of the inference experiment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceExperimentMixinProps>- Returns:
- a new instance of
CfnInferenceExperimentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-