Class CfnAIGuardrail.GuardrailContentFilterConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnAIGuardrail.GuardrailContentFilterConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAIGuardrail.GuardrailContentFilterConfigProperty>
- Enclosing interface:
CfnAIGuardrail.GuardrailContentFilterConfigProperty
@Stability(Stable)
public static final class CfnAIGuardrail.GuardrailContentFilterConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAIGuardrail.GuardrailContentFilterConfigProperty>
A builder for
CfnAIGuardrail.GuardrailContentFilterConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inputStrength(String inputStrength) Sets the value ofCfnAIGuardrail.GuardrailContentFilterConfigProperty.getInputStrength()outputStrength(String outputStrength) Sets the value ofCfnAIGuardrail.GuardrailContentFilterConfigProperty.getOutputStrength()Sets the value ofCfnAIGuardrail.GuardrailContentFilterConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inputStrength
@Stability(Stable) public CfnAIGuardrail.GuardrailContentFilterConfigProperty.Builder inputStrength(String inputStrength) Sets the value ofCfnAIGuardrail.GuardrailContentFilterConfigProperty.getInputStrength()- Parameters:
inputStrength- The strength of the input for the guardrail content filter. This parameter is required.- Returns:
this
-
outputStrength
@Stability(Stable) public CfnAIGuardrail.GuardrailContentFilterConfigProperty.Builder outputStrength(String outputStrength) Sets the value ofCfnAIGuardrail.GuardrailContentFilterConfigProperty.getOutputStrength()- Parameters:
outputStrength- The output strength of the guardrail content filter. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public CfnAIGuardrail.GuardrailContentFilterConfigProperty.Builder type(String type) Sets the value ofCfnAIGuardrail.GuardrailContentFilterConfigProperty.getType()- Parameters:
type- The type of the guardrail content filter. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAIGuardrail.GuardrailContentFilterConfigProperty>- Returns:
- a new instance of
CfnAIGuardrail.GuardrailContentFilterConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-