Class CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrailPropsMixin.ManagedWordsConfigProperty>
- Enclosing interface:
CfnGuardrailPropsMixin.ManagedWordsConfigProperty
@Stability(Stable)
public static final class CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrailPropsMixin.ManagedWordsConfigProperty>
A builder for
CfnGuardrailPropsMixin.ManagedWordsConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inputAction(String inputAction) Sets the value ofCfnGuardrailPropsMixin.ManagedWordsConfigProperty.getInputAction()inputEnabled(Boolean inputEnabled) Sets the value ofCfnGuardrailPropsMixin.ManagedWordsConfigProperty.getInputEnabled()inputEnabled(IResolvable inputEnabled) Sets the value ofCfnGuardrailPropsMixin.ManagedWordsConfigProperty.getInputEnabled()outputAction(String outputAction) Sets the value ofCfnGuardrailPropsMixin.ManagedWordsConfigProperty.getOutputAction()outputEnabled(Boolean outputEnabled) Sets the value ofCfnGuardrailPropsMixin.ManagedWordsConfigProperty.getOutputEnabled()outputEnabled(IResolvable outputEnabled) Sets the value ofCfnGuardrailPropsMixin.ManagedWordsConfigProperty.getOutputEnabled()Sets the value ofCfnGuardrailPropsMixin.ManagedWordsConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inputAction
@Stability(Stable) public CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder inputAction(String inputAction) Sets the value ofCfnGuardrailPropsMixin.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 CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder inputEnabled(Boolean inputEnabled) Sets the value ofCfnGuardrailPropsMixin.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 CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder inputEnabled(IResolvable inputEnabled) Sets the value ofCfnGuardrailPropsMixin.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 CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder outputAction(String outputAction) Sets the value ofCfnGuardrailPropsMixin.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 CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder outputEnabled(Boolean outputEnabled) Sets the value ofCfnGuardrailPropsMixin.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 CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder outputEnabled(IResolvable outputEnabled) Sets the value ofCfnGuardrailPropsMixin.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
-
type
@Stability(Stable) public CfnGuardrailPropsMixin.ManagedWordsConfigProperty.Builder type(String type) Sets the value ofCfnGuardrailPropsMixin.ManagedWordsConfigProperty.getType()- Parameters:
type- The managed word type to configure for the guardrail.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardrailPropsMixin.ManagedWordsConfigProperty>- Returns:
- a new instance of
CfnGuardrailPropsMixin.ManagedWordsConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-