Interface GuardrailContentPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailContentPolicy.Builder,
,GuardrailContentPolicy> SdkBuilder<GuardrailContentPolicy.Builder,
,GuardrailContentPolicy> SdkPojo
- Enclosing class:
GuardrailContentPolicy
public static interface GuardrailContentPolicy.Builder
extends SdkPojo, CopyableBuilder<GuardrailContentPolicy.Builder,GuardrailContentPolicy>
-
Method Summary
Modifier and TypeMethodDescriptionfilters
(Collection<GuardrailContentFilter> filters) Contains the type of the content filter and how strongly it should apply to prompts and model responses.filters
(Consumer<GuardrailContentFilter.Builder>... filters) Contains the type of the content filter and how strongly it should apply to prompts and model responses.filters
(GuardrailContentFilter... filters) Contains the type of the content filter and how strongly it should apply to prompts and model responses.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
-
filters
Contains the type of the content filter and how strongly it should apply to prompts and model responses.
- Parameters:
filters
- Contains the type of the content filter and how strongly it should apply to prompts and model responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
Contains the type of the content filter and how strongly it should apply to prompts and model responses.
- Parameters:
filters
- Contains the type of the content filter and how strongly it should apply to prompts and model responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
Contains the type of the content filter and how strongly it should apply to prompts and model responses.
This is a convenience method that creates an instance of theGuardrailContentFilter.Builder
avoiding the need to create one manually viaGuardrailContentFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<GuardrailContentFilter>)
.- Parameters:
filters
- a consumer that will call methods onGuardrailContentFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-