Class CfnGuardrail.ContentPolicyConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnGuardrail.ContentPolicyConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrail.ContentPolicyConfigProperty>
- Enclosing interface:
CfnGuardrail.ContentPolicyConfigProperty
@Stability(Stable)
public static final class CfnGuardrail.ContentPolicyConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrail.ContentPolicyConfigProperty>
A builder for
CfnGuardrail.ContentPolicyConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.filtersConfig
(List<? extends Object> filtersConfig) Sets the value ofCfnGuardrail.ContentPolicyConfigProperty.getFiltersConfig()
filtersConfig
(IResolvable filtersConfig) Sets the value ofCfnGuardrail.ContentPolicyConfigProperty.getFiltersConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filtersConfig
@Stability(Stable) public CfnGuardrail.ContentPolicyConfigProperty.Builder filtersConfig(IResolvable filtersConfig) Sets the value ofCfnGuardrail.ContentPolicyConfigProperty.getFiltersConfig()
- Parameters:
filtersConfig
- Contains the type of the content filter and how strongly it should apply to prompts and model responses. This parameter is required.- Returns:
this
-
filtersConfig
@Stability(Stable) public CfnGuardrail.ContentPolicyConfigProperty.Builder filtersConfig(List<? extends Object> filtersConfig) Sets the value ofCfnGuardrail.ContentPolicyConfigProperty.getFiltersConfig()
- Parameters:
filtersConfig
- Contains the type of the content filter and how strongly it should apply to prompts and model responses. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGuardrail.ContentPolicyConfigProperty>
- Returns:
- a new instance of
CfnGuardrail.ContentPolicyConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-