Interface GuardrailTopicPolicyConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailTopicPolicyConfig.Builder,
,GuardrailTopicPolicyConfig> SdkBuilder<GuardrailTopicPolicyConfig.Builder,
,GuardrailTopicPolicyConfig> SdkPojo
- Enclosing class:
GuardrailTopicPolicyConfig
public static interface GuardrailTopicPolicyConfig.Builder
extends SdkPojo, CopyableBuilder<GuardrailTopicPolicyConfig.Builder,GuardrailTopicPolicyConfig>
-
Method Summary
Modifier and TypeMethodDescriptiontopicsConfig
(Collection<GuardrailTopicConfig> topicsConfig) A list of policies related to topics that the guardrail should deny.topicsConfig
(Consumer<GuardrailTopicConfig.Builder>... topicsConfig) A list of policies related to topics that the guardrail should deny.topicsConfig
(GuardrailTopicConfig... topicsConfig) 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, sdkFields
-
Method Details
-
topicsConfig
A list of policies related to topics that the guardrail should deny.
- Parameters:
topicsConfig
- 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.
-
topicsConfig
A list of policies related to topics that the guardrail should deny.
- Parameters:
topicsConfig
- 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.
-
topicsConfig
GuardrailTopicPolicyConfig.Builder topicsConfig(Consumer<GuardrailTopicConfig.Builder>... topicsConfig) A list of policies related to topics that the guardrail should deny.
This is a convenience method that creates an instance of theGuardrailTopicConfig.Builder
avoiding the need to create one manually viaGuardrailTopicConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totopicsConfig(List<GuardrailTopicConfig>)
.- Parameters:
topicsConfig
- a consumer that will call methods onGuardrailTopicConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-