Interface AIGuardrailTopicPolicyConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AIGuardrailTopicPolicyConfig.Builder,,AIGuardrailTopicPolicyConfig> SdkBuilder<AIGuardrailTopicPolicyConfig.Builder,,AIGuardrailTopicPolicyConfig> SdkPojo
- Enclosing class:
AIGuardrailTopicPolicyConfig
@Mutable
@NotThreadSafe
public static interface AIGuardrailTopicPolicyConfig.Builder
extends SdkPojo, CopyableBuilder<AIGuardrailTopicPolicyConfig.Builder,AIGuardrailTopicPolicyConfig>
-
Method Summary
Modifier and TypeMethodDescriptiontopicsConfig(Collection<GuardrailTopicConfig> topicsConfig) A list of policies related to topics that the AI Guardrail should deny.topicsConfig(Consumer<GuardrailTopicConfig.Builder>... topicsConfig) A list of policies related to topics that the AI Guardrail should deny.topicsConfig(GuardrailTopicConfig... topicsConfig) A list of policies related to topics that the AI Guardrail should deny.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
topicsConfig
A list of policies related to topics that the AI Guardrail should deny.
- Parameters:
topicsConfig- A list of policies related to topics that the AI 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 AI Guardrail should deny.
- Parameters:
topicsConfig- A list of policies related to topics that the AI Guardrail should deny.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicsConfig
AIGuardrailTopicPolicyConfig.Builder topicsConfig(Consumer<GuardrailTopicConfig.Builder>... topicsConfig) A list of policies related to topics that the AI Guardrail should deny.
This is a convenience method that creates an instance of theGuardrailTopicConfig.Builderavoiding the need to create one manually viaGuardrailTopicConfig.builder().When the
Consumercompletes,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:
-