Class CfnGuardrail.TopicConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnGuardrail.TopicConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrail.TopicConfigProperty>
- Enclosing interface:
CfnGuardrail.TopicConfigProperty
@Stability(Stable)
public static final class CfnGuardrail.TopicConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrail.TopicConfigProperty>
A builder for
CfnGuardrail.TopicConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.definition
(String definition) Sets the value ofCfnGuardrail.TopicConfigProperty.getDefinition()
Sets the value ofCfnGuardrail.TopicConfigProperty.getExamples()
Sets the value ofCfnGuardrail.TopicConfigProperty.getName()
Sets the value ofCfnGuardrail.TopicConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
definition
Sets the value ofCfnGuardrail.TopicConfigProperty.getDefinition()
- Parameters:
definition
- A definition of the topic to deny. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnGuardrail.TopicConfigProperty.getName()
- Parameters:
name
- The name of the topic to deny. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnGuardrail.TopicConfigProperty.getType()
- Parameters:
type
- Specifies to deny the topic. This parameter is required.- Returns:
this
-
examples
Sets the value ofCfnGuardrail.TopicConfigProperty.getExamples()
- Parameters:
examples
- A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGuardrail.TopicConfigProperty>
- Returns:
- a new instance of
CfnGuardrail.TopicConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-