Class CfnModelCard.IntendedUsesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.IntendedUsesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.IntendedUsesProperty>
- Enclosing interface:
CfnModelCard.IntendedUsesProperty
@Stability(Stable)
public static final class CfnModelCard.IntendedUsesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.IntendedUsesProperty>
A builder for
CfnModelCard.IntendedUsesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.explanationsForRiskRating
(String explanationsForRiskRating) Sets the value ofCfnModelCard.IntendedUsesProperty.getExplanationsForRiskRating()
factorsAffectingModelEfficiency
(String factorsAffectingModelEfficiency) Sets the value ofCfnModelCard.IntendedUsesProperty.getFactorsAffectingModelEfficiency()
intendedUses
(String intendedUses) Sets the value ofCfnModelCard.IntendedUsesProperty.getIntendedUses()
purposeOfModel
(String purposeOfModel) Sets the value ofCfnModelCard.IntendedUsesProperty.getPurposeOfModel()
riskRating
(String riskRating) Sets the value ofCfnModelCard.IntendedUsesProperty.getRiskRating()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
explanationsForRiskRating
@Stability(Stable) public CfnModelCard.IntendedUsesProperty.Builder explanationsForRiskRating(String explanationsForRiskRating) Sets the value ofCfnModelCard.IntendedUsesProperty.getExplanationsForRiskRating()
- Parameters:
explanationsForRiskRating
- An explanation of why your organization categorizes the model with its risk rating.- Returns:
this
-
factorsAffectingModelEfficiency
@Stability(Stable) public CfnModelCard.IntendedUsesProperty.Builder factorsAffectingModelEfficiency(String factorsAffectingModelEfficiency) Sets the value ofCfnModelCard.IntendedUsesProperty.getFactorsAffectingModelEfficiency()
- Parameters:
factorsAffectingModelEfficiency
- Factors affecting model efficacy.- Returns:
this
-
intendedUses
@Stability(Stable) public CfnModelCard.IntendedUsesProperty.Builder intendedUses(String intendedUses) Sets the value ofCfnModelCard.IntendedUsesProperty.getIntendedUses()
- Parameters:
intendedUses
- The intended use cases for the model.- Returns:
this
-
purposeOfModel
@Stability(Stable) public CfnModelCard.IntendedUsesProperty.Builder purposeOfModel(String purposeOfModel) Sets the value ofCfnModelCard.IntendedUsesProperty.getPurposeOfModel()
- Parameters:
purposeOfModel
- The general purpose of the model.- Returns:
this
-
riskRating
Sets the value ofCfnModelCard.IntendedUsesProperty.getRiskRating()
- Parameters:
riskRating
- Your organization's risk rating. You can specify one the following values as the risk rating:.- High
- Medium
- Low
- Unknown
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelCard.IntendedUsesProperty>
- Returns:
- a new instance of
CfnModelCard.IntendedUsesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-