Class CfnModelCard.ModelOverviewProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.ModelOverviewProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.ModelOverviewProperty>
- Enclosing interface:
CfnModelCard.ModelOverviewProperty
@Stability(Stable)
public static final class CfnModelCard.ModelOverviewProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.ModelOverviewProperty>
A builder for
CfnModelCard.ModelOverviewProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalgorithmType
(String algorithmType) Sets the value ofCfnModelCard.ModelOverviewProperty.getAlgorithmType()
build()
Builds the configured instance.inferenceEnvironment
(IResolvable inferenceEnvironment) Sets the value ofCfnModelCard.ModelOverviewProperty.getInferenceEnvironment()
inferenceEnvironment
(CfnModelCard.InferenceEnvironmentProperty inferenceEnvironment) Sets the value ofCfnModelCard.ModelOverviewProperty.getInferenceEnvironment()
modelArtifact
(List<String> modelArtifact) Sets the value ofCfnModelCard.ModelOverviewProperty.getModelArtifact()
modelCreator
(String modelCreator) Sets the value ofCfnModelCard.ModelOverviewProperty.getModelCreator()
modelDescription
(String modelDescription) Sets the value ofCfnModelCard.ModelOverviewProperty.getModelDescription()
Sets the value ofCfnModelCard.ModelOverviewProperty.getModelId()
Sets the value ofCfnModelCard.ModelOverviewProperty.getModelName()
modelOwner
(String modelOwner) Sets the value ofCfnModelCard.ModelOverviewProperty.getModelOwner()
modelVersion
(Number modelVersion) Sets the value ofCfnModelCard.ModelOverviewProperty.getModelVersion()
problemType
(String problemType) Sets the value ofCfnModelCard.ModelOverviewProperty.getProblemType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
algorithmType
@Stability(Stable) public CfnModelCard.ModelOverviewProperty.Builder algorithmType(String algorithmType) Sets the value ofCfnModelCard.ModelOverviewProperty.getAlgorithmType()
- Parameters:
algorithmType
- The algorithm used to solve the problem.- Returns:
this
-
inferenceEnvironment
@Stability(Stable) public CfnModelCard.ModelOverviewProperty.Builder inferenceEnvironment(IResolvable inferenceEnvironment) Sets the value ofCfnModelCard.ModelOverviewProperty.getInferenceEnvironment()
- Parameters:
inferenceEnvironment
- An overview about model inference.- Returns:
this
-
inferenceEnvironment
@Stability(Stable) public CfnModelCard.ModelOverviewProperty.Builder inferenceEnvironment(CfnModelCard.InferenceEnvironmentProperty inferenceEnvironment) Sets the value ofCfnModelCard.ModelOverviewProperty.getInferenceEnvironment()
- Parameters:
inferenceEnvironment
- An overview about model inference.- Returns:
this
-
modelArtifact
@Stability(Stable) public CfnModelCard.ModelOverviewProperty.Builder modelArtifact(List<String> modelArtifact) Sets the value ofCfnModelCard.ModelOverviewProperty.getModelArtifact()
- Parameters:
modelArtifact
- The location of the model artifact.- Returns:
this
-
modelCreator
@Stability(Stable) public CfnModelCard.ModelOverviewProperty.Builder modelCreator(String modelCreator) Sets the value ofCfnModelCard.ModelOverviewProperty.getModelCreator()
- Parameters:
modelCreator
- The creator of the model.- Returns:
this
-
modelDescription
@Stability(Stable) public CfnModelCard.ModelOverviewProperty.Builder modelDescription(String modelDescription) Sets the value ofCfnModelCard.ModelOverviewProperty.getModelDescription()
- Parameters:
modelDescription
- A description of the model.- Returns:
this
-
modelId
Sets the value ofCfnModelCard.ModelOverviewProperty.getModelId()
- Parameters:
modelId
- The SageMaker Model ARN or non- SageMaker Model ID.- Returns:
this
-
modelName
Sets the value ofCfnModelCard.ModelOverviewProperty.getModelName()
- Parameters:
modelName
- The name of the model.- Returns:
this
-
modelOwner
Sets the value ofCfnModelCard.ModelOverviewProperty.getModelOwner()
- Parameters:
modelOwner
- The owner of the model.- Returns:
this
-
modelVersion
@Stability(Stable) public CfnModelCard.ModelOverviewProperty.Builder modelVersion(Number modelVersion) Sets the value ofCfnModelCard.ModelOverviewProperty.getModelVersion()
- Parameters:
modelVersion
- The version of the model.- Returns:
this
-
problemType
@Stability(Stable) public CfnModelCard.ModelOverviewProperty.Builder problemType(String problemType) Sets the value ofCfnModelCard.ModelOverviewProperty.getProblemType()
- Parameters:
problemType
- The problem being solved with the model.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelCard.ModelOverviewProperty>
- Returns:
- a new instance of
CfnModelCard.ModelOverviewProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-