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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GuardrailContentPolicy.Builderfilters(Collection<GuardrailContentFilter> filters)Contains the type of the content filter and how strongly it should apply to prompts and model responses.GuardrailContentPolicy.Builderfilters(Consumer<GuardrailContentFilter.Builder>... filters)Contains the type of the content filter and how strongly it should apply to prompts and model responses.GuardrailContentPolicy.Builderfilters(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 Detail
-
filters
GuardrailContentPolicy.Builder filters(Collection<GuardrailContentFilter> 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
GuardrailContentPolicy.Builder filters(GuardrailContentFilter... 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
GuardrailContentPolicy.Builder filters(Consumer<GuardrailContentFilter.Builder>... 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.Builderavoiding the need to create one manually viaGuardrailContentFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#filters(List.) - 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:
#filters(java.util.Collection)
-
-