Interface GuardrailTopicPolicy.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailTopicPolicy.Builder,GuardrailTopicPolicy>,SdkBuilder<GuardrailTopicPolicy.Builder,GuardrailTopicPolicy>,SdkPojo
- Enclosing class:
- GuardrailTopicPolicy
@Mutable @NotThreadSafe public static interface GuardrailTopicPolicy.Builder extends SdkPojo, CopyableBuilder<GuardrailTopicPolicy.Builder,GuardrailTopicPolicy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GuardrailTopicPolicy.Buildertier(Consumer<GuardrailTopicsTier.Builder> tier)The tier that your guardrail uses for denied topic filters.GuardrailTopicPolicy.Buildertier(GuardrailTopicsTier tier)The tier that your guardrail uses for denied topic filters.GuardrailTopicPolicy.Buildertopics(Collection<GuardrailTopic> topics)A list of policies related to topics that the guardrail should deny.GuardrailTopicPolicy.Buildertopics(Consumer<GuardrailTopic.Builder>... topics)A list of policies related to topics that the guardrail should deny.GuardrailTopicPolicy.Buildertopics(GuardrailTopic... topics)A list of policies related to topics that the guardrail should deny.-
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 Detail
-
topics
GuardrailTopicPolicy.Builder topics(Collection<GuardrailTopic> topics)
A list of policies related to topics that the guardrail should deny.
- Parameters:
topics- A list of policies related to topics that the guardrail should deny.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topics
GuardrailTopicPolicy.Builder topics(GuardrailTopic... topics)
A list of policies related to topics that the guardrail should deny.
- Parameters:
topics- A list of policies related to topics that the guardrail should deny.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topics
GuardrailTopicPolicy.Builder topics(Consumer<GuardrailTopic.Builder>... topics)
A list of policies related to topics that the guardrail should deny.
This is a convenience method that creates an instance of theGuardrailTopic.Builderavoiding the need to create one manually viaGuardrailTopic.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#topics(List.) - Parameters:
topics- a consumer that will call methods onGuardrailTopic.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#topics(java.util.Collection)
-
tier
GuardrailTopicPolicy.Builder tier(GuardrailTopicsTier tier)
The tier that your guardrail uses for denied topic filters.
- Parameters:
tier- The tier that your guardrail uses for denied topic filters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tier
default GuardrailTopicPolicy.Builder tier(Consumer<GuardrailTopicsTier.Builder> tier)
The tier that your guardrail uses for denied topic filters.
This is a convenience method that creates an instance of theGuardrailTopicsTier.Builderavoiding the need to create one manually viaGuardrailTopicsTier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totier(GuardrailTopicsTier).- Parameters:
tier- a consumer that will call methods onGuardrailTopicsTier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
tier(GuardrailTopicsTier)
-
-