Interface GuardrailTopicPolicyConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailTopicPolicyConfig.Builder,
,GuardrailTopicPolicyConfig> SdkBuilder<GuardrailTopicPolicyConfig.Builder,
,GuardrailTopicPolicyConfig> SdkPojo
- Enclosing class:
GuardrailTopicPolicyConfig
@Mutable
@NotThreadSafe
public static interface GuardrailTopicPolicyConfig.Builder
extends SdkPojo, CopyableBuilder<GuardrailTopicPolicyConfig.Builder,GuardrailTopicPolicyConfig>
-
Method Summary
Modifier and TypeMethodDescriptiontierConfig
(Consumer<GuardrailTopicsTierConfig.Builder> tierConfig) The tier that your guardrail uses for denied topic filters.tierConfig
(GuardrailTopicsTierConfig tierConfig) The tier that your guardrail uses for denied topic filters.topicsConfig
(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, sdkFieldNameToField, 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:
-
tierConfig
The tier that your guardrail uses for denied topic filters.
- Parameters:
tierConfig
- 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.
-
tierConfig
default GuardrailTopicPolicyConfig.Builder tierConfig(Consumer<GuardrailTopicsTierConfig.Builder> tierConfig) The tier that your guardrail uses for denied topic filters.
This is a convenience method that creates an instance of theGuardrailTopicsTierConfig.Builder
avoiding the need to create one manually viaGuardrailTopicsTierConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totierConfig(GuardrailTopicsTierConfig)
.- Parameters:
tierConfig
- a consumer that will call methods onGuardrailTopicsTierConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-