Class CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty>
- Enclosing interface:
CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty>
A builder for
CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.granularity(String granularity) Sets the value ofCfnEndpointConfigPropsMixin.ClarifyTextConfigProperty.getGranularity()Sets the value ofCfnEndpointConfigPropsMixin.ClarifyTextConfigProperty.getLanguage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
granularity
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty.Builder granularity(String granularity) Sets the value ofCfnEndpointConfigPropsMixin.ClarifyTextConfigProperty.getGranularity()- Parameters:
granularity- The unit of granularity for the analysis of text features. For example, if the unit is'token', then each token (like a word in English) of the text is treated as a feature. SHAP values are computed for each unit/feature.- Returns:
this
-
language
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty.Builder language(String language) Sets the value ofCfnEndpointConfigPropsMixin.ClarifyTextConfigProperty.getLanguage()- Parameters:
language- Specifies the language of the text features in [ISO 639-1](https://docs.aws.amazon.com/ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) or ISO 639-3 code of a supported language.For a mix of multiple languages, use code
'xx'.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty>- Returns:
- a new instance of
CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-