Interface GuardrailContextualGroundingPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailContextualGroundingPolicy.Builder,
,GuardrailContextualGroundingPolicy> SdkBuilder<GuardrailContextualGroundingPolicy.Builder,
,GuardrailContextualGroundingPolicy> SdkPojo
- Enclosing class:
GuardrailContextualGroundingPolicy
@Mutable
@NotThreadSafe
public static interface GuardrailContextualGroundingPolicy.Builder
extends SdkPojo, CopyableBuilder<GuardrailContextualGroundingPolicy.Builder,GuardrailContextualGroundingPolicy>
-
Method Summary
Modifier and TypeMethodDescriptionThe filter details for the guardrails contextual grounding policy.filters
(Consumer<GuardrailContextualGroundingFilter.Builder>... filters) The filter details for the guardrails contextual grounding policy.filters
(GuardrailContextualGroundingFilter... filters) The filter details for the guardrails contextual grounding policy.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
-
filters
GuardrailContextualGroundingPolicy.Builder filters(Collection<GuardrailContextualGroundingFilter> filters) The filter details for the guardrails contextual grounding policy.
- Parameters:
filters
- The filter details for the guardrails contextual grounding policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
The filter details for the guardrails contextual grounding policy.
- Parameters:
filters
- The filter details for the guardrails contextual grounding policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
GuardrailContextualGroundingPolicy.Builder filters(Consumer<GuardrailContextualGroundingFilter.Builder>... filters) The filter details for the guardrails contextual grounding policy.
This is a convenience method that creates an instance of theGuardrailContextualGroundingFilter.Builder
avoiding the need to create one manually viaGuardrailContextualGroundingFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<GuardrailContextualGroundingFilter>)
.- Parameters:
filters
- a consumer that will call methods onGuardrailContextualGroundingFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-