Class CfnGuardrailPropsMixin.WordConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnGuardrailPropsMixin.WordConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrailPropsMixin.WordConfigProperty>
- Enclosing interface:
CfnGuardrailPropsMixin.WordConfigProperty
@Stability(Stable)
public static final class CfnGuardrailPropsMixin.WordConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrailPropsMixin.WordConfigProperty>
A builder for
CfnGuardrailPropsMixin.WordConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inputAction(String inputAction) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getInputAction()inputEnabled(Boolean inputEnabled) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getInputEnabled()inputEnabled(IResolvable inputEnabled) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getInputEnabled()outputAction(String outputAction) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getOutputAction()outputEnabled(Boolean outputEnabled) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getOutputEnabled()outputEnabled(IResolvable outputEnabled) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getOutputEnabled()Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inputAction
@Stability(Stable) public CfnGuardrailPropsMixin.WordConfigProperty.Builder inputAction(String inputAction) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getInputAction()- Parameters:
inputAction- Specifies the action to take when harmful content is detected in the input. Supported values include:.BLOCK– Block the content and replace it with blocked messaging.NONE– Take no action but return detection information in the trace response.
- Returns:
this
-
inputEnabled
@Stability(Stable) public CfnGuardrailPropsMixin.WordConfigProperty.Builder inputEnabled(Boolean inputEnabled) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getInputEnabled()- Parameters:
inputEnabled- Specifies whether to enable guardrail evaluation on the intput. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.- Returns:
this
-
inputEnabled
@Stability(Stable) public CfnGuardrailPropsMixin.WordConfigProperty.Builder inputEnabled(IResolvable inputEnabled) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getInputEnabled()- Parameters:
inputEnabled- Specifies whether to enable guardrail evaluation on the intput. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.- Returns:
this
-
outputAction
@Stability(Stable) public CfnGuardrailPropsMixin.WordConfigProperty.Builder outputAction(String outputAction) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getOutputAction()- Parameters:
outputAction- Specifies the action to take when harmful content is detected in the output. Supported values include:.BLOCK– Block the content and replace it with blocked messaging.NONE– Take no action but return detection information in the trace response.
- Returns:
this
-
outputEnabled
@Stability(Stable) public CfnGuardrailPropsMixin.WordConfigProperty.Builder outputEnabled(Boolean outputEnabled) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getOutputEnabled()- Parameters:
outputEnabled- Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.- Returns:
this
-
outputEnabled
@Stability(Stable) public CfnGuardrailPropsMixin.WordConfigProperty.Builder outputEnabled(IResolvable outputEnabled) Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getOutputEnabled()- Parameters:
outputEnabled- Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.- Returns:
this
-
text
Sets the value ofCfnGuardrailPropsMixin.WordConfigProperty.getText()- Parameters:
text- Text of the word configured for the guardrail to block.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardrailPropsMixin.WordConfigProperty>- Returns:
- a new instance of
CfnGuardrailPropsMixin.WordConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-