Interface TopicConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TopicConfiguration.Builder,TopicConfiguration>,SdkBuilder<TopicConfiguration.Builder,TopicConfiguration>,SdkPojo
- Enclosing class:
- TopicConfiguration
public static interface TopicConfiguration.Builder extends SdkPojo, CopyableBuilder<TopicConfiguration.Builder,TopicConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TopicConfiguration.Builderdescription(String description)A description for your topic control configuration.TopicConfiguration.BuilderexampleChatMessages(String... exampleChatMessages)A list of example phrases that you expect the end user to use in relation to the topic.TopicConfiguration.BuilderexampleChatMessages(Collection<String> exampleChatMessages)A list of example phrases that you expect the end user to use in relation to the topic.TopicConfiguration.Buildername(String name)A name for your topic control configuration.TopicConfiguration.Builderrules(Collection<Rule> rules)Rules defined for a topic configuration.TopicConfiguration.Builderrules(Consumer<Rule.Builder>... rules)Rules defined for a topic configuration.TopicConfiguration.Builderrules(Rule... rules)Rules defined for a topic configuration.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
TopicConfiguration.Builder name(String name)
A name for your topic control configuration.
- Parameters:
name- A name for your topic control configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
TopicConfiguration.Builder description(String description)
A description for your topic control configuration. Use this to outline how the large language model (LLM) should use this topic control configuration.
- Parameters:
description- A description for your topic control configuration. Use this to outline how the large language model (LLM) should use this topic control configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exampleChatMessages
TopicConfiguration.Builder exampleChatMessages(Collection<String> exampleChatMessages)
A list of example phrases that you expect the end user to use in relation to the topic.
- Parameters:
exampleChatMessages- A list of example phrases that you expect the end user to use in relation to the topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exampleChatMessages
TopicConfiguration.Builder exampleChatMessages(String... exampleChatMessages)
A list of example phrases that you expect the end user to use in relation to the topic.
- Parameters:
exampleChatMessages- A list of example phrases that you expect the end user to use in relation to the topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
TopicConfiguration.Builder rules(Collection<Rule> rules)
Rules defined for a topic configuration.
- Parameters:
rules- Rules defined for a topic configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
TopicConfiguration.Builder rules(Rule... rules)
Rules defined for a topic configuration.
- Parameters:
rules- Rules defined for a topic configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
TopicConfiguration.Builder rules(Consumer<Rule.Builder>... rules)
Rules defined for a topic configuration.
This is a convenience method that creates an instance of theRule.Builderavoiding the need to create one manually viaRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rules(List.) - Parameters:
rules- a consumer that will call methods onRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#rules(java.util.Collection)
-
-