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.contentFiltersTierConfig(IResolvable contentFiltersTierConfig) Sets the value ofCfnGuardrail.ContentPolicyConfigProperty.getContentFiltersTierConfig()contentFiltersTierConfig(CfnGuardrail.ContentFiltersTierConfigProperty contentFiltersTierConfig) Sets the value ofCfnGuardrail.ContentPolicyConfigProperty.getContentFiltersTierConfig()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
-
contentFiltersTierConfig
@Stability(Stable) public CfnGuardrail.ContentPolicyConfigProperty.Builder contentFiltersTierConfig(IResolvable contentFiltersTierConfig) Sets the value ofCfnGuardrail.ContentPolicyConfigProperty.getContentFiltersTierConfig()- Parameters:
contentFiltersTierConfig- The tier that your guardrail uses for content filters. Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.- Returns:
this
-
contentFiltersTierConfig
@Stability(Stable) public CfnGuardrail.ContentPolicyConfigProperty.Builder contentFiltersTierConfig(CfnGuardrail.ContentFiltersTierConfigProperty contentFiltersTierConfig) Sets the value ofCfnGuardrail.ContentPolicyConfigProperty.getContentFiltersTierConfig()- Parameters:
contentFiltersTierConfig- The tier that your guardrail uses for content filters. Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardrail.ContentPolicyConfigProperty>- Returns:
- a new instance of
CfnGuardrail.ContentPolicyConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-