Interface RuleConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RuleConfiguration.Builder,
,RuleConfiguration> SdkBuilder<RuleConfiguration.Builder,
,RuleConfiguration> SdkPojo
- Enclosing class:
RuleConfiguration
@Mutable
@NotThreadSafe
public static interface RuleConfiguration.Builder
extends SdkPojo, CopyableBuilder<RuleConfiguration.Builder,RuleConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuleConfiguration.Builder
contentBlockerRule
(Consumer<ContentBlockerRule.Builder> contentBlockerRule) A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.contentBlockerRule
(ContentBlockerRule contentBlockerRule) A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.default RuleConfiguration.Builder
contentRetrievalRule
(Consumer<ContentRetrievalRule.Builder> contentRetrievalRule) Sets the value of the ContentRetrievalRule property for this object.contentRetrievalRule
(ContentRetrievalRule contentRetrievalRule) Sets the value of the ContentRetrievalRule property for this object.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, sdkFieldNameToField, sdkFields
-
Method Details
-
contentBlockerRule
A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.
- Parameters:
contentBlockerRule
- A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentBlockerRule
default RuleConfiguration.Builder contentBlockerRule(Consumer<ContentBlockerRule.Builder> contentBlockerRule) A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.
This is a convenience method that creates an instance of theContentBlockerRule.Builder
avoiding the need to create one manually viaContentBlockerRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentBlockerRule(ContentBlockerRule)
.- Parameters:
contentBlockerRule
- a consumer that will call methods onContentBlockerRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentRetrievalRule
Sets the value of the ContentRetrievalRule property for this object.- Parameters:
contentRetrievalRule
- The new value for the ContentRetrievalRule property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentRetrievalRule
default RuleConfiguration.Builder contentRetrievalRule(Consumer<ContentRetrievalRule.Builder> contentRetrievalRule) Sets the value of the ContentRetrievalRule property for this object. This is a convenience method that creates an instance of theContentRetrievalRule.Builder
avoiding the need to create one manually viaContentRetrievalRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentRetrievalRule(ContentRetrievalRule)
.- Parameters:
contentRetrievalRule
- a consumer that will call methods onContentRetrievalRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-