Class CfnGuardrail.ContextualGroundingFilterConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrail.ContextualGroundingFilterConfigProperty>
- Enclosing interface:
CfnGuardrail.ContextualGroundingFilterConfigProperty
@Stability(Stable)
public static final class CfnGuardrail.ContextualGroundingFilterConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrail.ContextualGroundingFilterConfigProperty>
A builder for
CfnGuardrail.ContextualGroundingFilterConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getAction()build()Builds the configured instance.Sets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getEnabled()Sets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getThreshold()Sets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
threshold
@Stability(Stable) public CfnGuardrail.ContextualGroundingFilterConfigProperty.Builder threshold(Number threshold) Sets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getThreshold()- Parameters:
threshold- The threshold details for the guardrails contextual grounding filter. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public CfnGuardrail.ContextualGroundingFilterConfigProperty.Builder type(String type) Sets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getType()- Parameters:
type- The filter details for the guardrails contextual grounding filter. This parameter is required.- Returns:
this
-
action
@Stability(Stable) public CfnGuardrail.ContextualGroundingFilterConfigProperty.Builder action(String action) Sets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getAction()- Parameters:
action- the value to be set.- Returns:
this
-
enabled
@Stability(Stable) public CfnGuardrail.ContextualGroundingFilterConfigProperty.Builder enabled(Boolean enabled) Sets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getEnabled()- Parameters:
enabled- the value to be set.- Returns:
this
-
enabled
@Stability(Stable) public CfnGuardrail.ContextualGroundingFilterConfigProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnGuardrail.ContextualGroundingFilterConfigProperty.getEnabled()- Parameters:
enabled- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardrail.ContextualGroundingFilterConfigProperty>- Returns:
- a new instance of
CfnGuardrail.ContextualGroundingFilterConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-