Class CfnAIGuardrail.GuardrailTopicConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnAIGuardrail.GuardrailTopicConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAIGuardrail.GuardrailTopicConfigProperty>
- Enclosing interface:
CfnAIGuardrail.GuardrailTopicConfigProperty
@Stability(Stable)
public static final class CfnAIGuardrail.GuardrailTopicConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAIGuardrail.GuardrailTopicConfigProperty>
A builder for
CfnAIGuardrail.GuardrailTopicConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.definition(String definition) Sets the value ofCfnAIGuardrail.GuardrailTopicConfigProperty.getDefinition()Sets the value ofCfnAIGuardrail.GuardrailTopicConfigProperty.getExamples()Sets the value ofCfnAIGuardrail.GuardrailTopicConfigProperty.getName()Sets the value ofCfnAIGuardrail.GuardrailTopicConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
definition
@Stability(Stable) public CfnAIGuardrail.GuardrailTopicConfigProperty.Builder definition(String definition) Sets the value ofCfnAIGuardrail.GuardrailTopicConfigProperty.getDefinition()- Parameters:
definition- Definition of topic in topic policy. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnAIGuardrail.GuardrailTopicConfigProperty.getName()- Parameters:
name- Name of topic in topic policy. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnAIGuardrail.GuardrailTopicConfigProperty.getType()- Parameters:
type- Type of topic in a policy. This parameter is required.- Returns:
this
-
examples
@Stability(Stable) public CfnAIGuardrail.GuardrailTopicConfigProperty.Builder examples(List<String> examples) Sets the value ofCfnAIGuardrail.GuardrailTopicConfigProperty.getExamples()- Parameters:
examples- Text example in topic policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAIGuardrail.GuardrailTopicConfigProperty>- Returns:
- a new instance of
CfnAIGuardrail.GuardrailTopicConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-