Interface RuleConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RuleConfiguration.Builder,RuleConfiguration>,SdkBuilder<RuleConfiguration.Builder,RuleConfiguration>,SdkPojo
- Enclosing class:
- RuleConfiguration
public static interface RuleConfiguration.Builder extends SdkPojo, CopyableBuilder<RuleConfiguration.Builder,RuleConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RuleConfiguration.BuildercontentBlockerRule(Consumer<ContentBlockerRule.Builder> contentBlockerRule)A rule for configuring how Amazon Q responds when it encounters a a blocked topic.RuleConfiguration.BuildercontentBlockerRule(ContentBlockerRule contentBlockerRule)A rule for configuring how Amazon Q responds when it encounters a a blocked topic.default RuleConfiguration.BuildercontentRetrievalRule(Consumer<ContentRetrievalRule.Builder> contentRetrievalRule)Sets the value of the ContentRetrievalRule property for this object.RuleConfiguration.BuildercontentRetrievalRule(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, sdkFields
-
-
-
-
Method Detail
-
contentBlockerRule
RuleConfiguration.Builder contentBlockerRule(ContentBlockerRule contentBlockerRule)
A rule for configuring how Amazon Q responds when it encounters a a blocked topic.
- Parameters:
contentBlockerRule- A rule for configuring how Amazon Q 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 responds when it encounters a a blocked topic.
This is a convenience method that creates an instance of theContentBlockerRule.Builderavoiding the need to create one manually viaContentBlockerRule.builder().When the
Consumercompletes,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:
contentBlockerRule(ContentBlockerRule)
-
contentRetrievalRule
RuleConfiguration.Builder contentRetrievalRule(ContentRetrievalRule 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.Builderavoiding the need to create one manually viaContentRetrievalRule.builder().When the
Consumercompletes,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:
contentRetrievalRule(ContentRetrievalRule)
-
-