Interface GuardrailContextualGroundingPolicyAssessment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailContextualGroundingPolicyAssessment.Builder,
,GuardrailContextualGroundingPolicyAssessment> SdkBuilder<GuardrailContextualGroundingPolicyAssessment.Builder,
,GuardrailContextualGroundingPolicyAssessment> SdkPojo
- Enclosing class:
GuardrailContextualGroundingPolicyAssessment
public static interface GuardrailContextualGroundingPolicyAssessment.Builder
extends SdkPojo, CopyableBuilder<GuardrailContextualGroundingPolicyAssessment.Builder,GuardrailContextualGroundingPolicyAssessment>
-
Method Summary
Modifier and TypeMethodDescriptionThe filter details for the guardrails contextual grounding filter.filters
(Consumer<GuardrailContextualGroundingFilter.Builder>... filters) The filter details for the guardrails contextual grounding filter.filters
(GuardrailContextualGroundingFilter... filters) The filter details for the guardrails contextual grounding filter.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
GuardrailContextualGroundingPolicyAssessment.Builder filters(Collection<GuardrailContextualGroundingFilter> filters) The filter details for the guardrails contextual grounding filter.
- Parameters:
filters
- The filter details for the guardrails contextual grounding filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
GuardrailContextualGroundingPolicyAssessment.Builder filters(GuardrailContextualGroundingFilter... filters) The filter details for the guardrails contextual grounding filter.
- Parameters:
filters
- The filter details for the guardrails contextual grounding filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
GuardrailContextualGroundingPolicyAssessment.Builder filters(Consumer<GuardrailContextualGroundingFilter.Builder>... filters) The filter details for the guardrails contextual grounding filter.
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:
-