Class CfnGuardrail.ManagedWordsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnGuardrail.ManagedWordsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrail.ManagedWordsConfigProperty>
- Enclosing interface:
CfnGuardrail.ManagedWordsConfigProperty
@Stability(Stable)
public static final class CfnGuardrail.ManagedWordsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrail.ManagedWordsConfigProperty>
A builder for
CfnGuardrail.ManagedWordsConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inputAction(String inputAction) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getInputAction()inputEnabled(Boolean inputEnabled) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getInputEnabled()inputEnabled(IResolvable inputEnabled) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getInputEnabled()outputAction(String outputAction) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getOutputAction()outputEnabled(Boolean outputEnabled) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getOutputEnabled()outputEnabled(IResolvable outputEnabled) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getOutputEnabled()Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getType()- Parameters:
type- The managed word type to configure for the guardrail. This parameter is required.- Returns:
this
-
inputAction
@Stability(Stable) public CfnGuardrail.ManagedWordsConfigProperty.Builder inputAction(String inputAction) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.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 CfnGuardrail.ManagedWordsConfigProperty.Builder inputEnabled(Boolean inputEnabled) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getInputEnabled()- Parameters:
inputEnabled- Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.- Returns:
this
-
inputEnabled
@Stability(Stable) public CfnGuardrail.ManagedWordsConfigProperty.Builder inputEnabled(IResolvable inputEnabled) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.getInputEnabled()- Parameters:
inputEnabled- Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.- Returns:
this
-
outputAction
@Stability(Stable) public CfnGuardrail.ManagedWordsConfigProperty.Builder outputAction(String outputAction) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.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 CfnGuardrail.ManagedWordsConfigProperty.Builder outputEnabled(Boolean outputEnabled) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.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 CfnGuardrail.ManagedWordsConfigProperty.Builder outputEnabled(IResolvable outputEnabled) Sets the value ofCfnGuardrail.ManagedWordsConfigProperty.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardrail.ManagedWordsConfigProperty>- Returns:
- a new instance of
CfnGuardrail.ManagedWordsConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-