Interface GuardrailAssessment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailAssessment.Builder,
,GuardrailAssessment> SdkBuilder<GuardrailAssessment.Builder,
,GuardrailAssessment> SdkPojo
- Enclosing class:
GuardrailAssessment
-
Method Summary
Modifier and TypeMethodDescriptiondefault GuardrailAssessment.Builder
contentPolicy
(Consumer<GuardrailContentPolicyAssessment.Builder> contentPolicy) The content policy.contentPolicy
(GuardrailContentPolicyAssessment contentPolicy) The content policy.default GuardrailAssessment.Builder
contextualGroundingPolicy
(Consumer<GuardrailContextualGroundingPolicyAssessment.Builder> contextualGroundingPolicy) The contextual grounding policy used for the guardrail assessment.contextualGroundingPolicy
(GuardrailContextualGroundingPolicyAssessment contextualGroundingPolicy) The contextual grounding policy used for the guardrail assessment.default GuardrailAssessment.Builder
invocationMetrics
(Consumer<GuardrailInvocationMetrics.Builder> invocationMetrics) The invocation metrics for the guardrail assessment.invocationMetrics
(GuardrailInvocationMetrics invocationMetrics) The invocation metrics for the guardrail assessment.default GuardrailAssessment.Builder
sensitiveInformationPolicy
(Consumer<GuardrailSensitiveInformationPolicyAssessment.Builder> sensitiveInformationPolicy) The sensitive information policy.sensitiveInformationPolicy
(GuardrailSensitiveInformationPolicyAssessment sensitiveInformationPolicy) The sensitive information policy.default GuardrailAssessment.Builder
topicPolicy
(Consumer<GuardrailTopicPolicyAssessment.Builder> topicPolicy) The topic policy.topicPolicy
(GuardrailTopicPolicyAssessment topicPolicy) The topic policy.default GuardrailAssessment.Builder
wordPolicy
(Consumer<GuardrailWordPolicyAssessment.Builder> wordPolicy) The word policy.wordPolicy
(GuardrailWordPolicyAssessment wordPolicy) The word 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
-
topicPolicy
The topic policy.
- Parameters:
topicPolicy
- The topic policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPolicy
default GuardrailAssessment.Builder topicPolicy(Consumer<GuardrailTopicPolicyAssessment.Builder> topicPolicy) The topic policy.
This is a convenience method that creates an instance of theGuardrailTopicPolicyAssessment.Builder
avoiding the need to create one manually viaGuardrailTopicPolicyAssessment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totopicPolicy(GuardrailTopicPolicyAssessment)
.- Parameters:
topicPolicy
- a consumer that will call methods onGuardrailTopicPolicyAssessment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentPolicy
The content policy.
- Parameters:
contentPolicy
- The content policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentPolicy
default GuardrailAssessment.Builder contentPolicy(Consumer<GuardrailContentPolicyAssessment.Builder> contentPolicy) The content policy.
This is a convenience method that creates an instance of theGuardrailContentPolicyAssessment.Builder
avoiding the need to create one manually viaGuardrailContentPolicyAssessment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentPolicy(GuardrailContentPolicyAssessment)
.- Parameters:
contentPolicy
- a consumer that will call methods onGuardrailContentPolicyAssessment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
wordPolicy
The word policy.
- Parameters:
wordPolicy
- The word policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordPolicy
default GuardrailAssessment.Builder wordPolicy(Consumer<GuardrailWordPolicyAssessment.Builder> wordPolicy) The word policy.
This is a convenience method that creates an instance of theGuardrailWordPolicyAssessment.Builder
avoiding the need to create one manually viaGuardrailWordPolicyAssessment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towordPolicy(GuardrailWordPolicyAssessment)
.- Parameters:
wordPolicy
- a consumer that will call methods onGuardrailWordPolicyAssessment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sensitiveInformationPolicy
GuardrailAssessment.Builder sensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment sensitiveInformationPolicy) The sensitive information policy.
- Parameters:
sensitiveInformationPolicy
- The sensitive information policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sensitiveInformationPolicy
default GuardrailAssessment.Builder sensitiveInformationPolicy(Consumer<GuardrailSensitiveInformationPolicyAssessment.Builder> sensitiveInformationPolicy) The sensitive information policy.
This is a convenience method that creates an instance of theGuardrailSensitiveInformationPolicyAssessment.Builder
avoiding the need to create one manually viaGuardrailSensitiveInformationPolicyAssessment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment)
.- Parameters:
sensitiveInformationPolicy
- a consumer that will call methods onGuardrailSensitiveInformationPolicyAssessment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contextualGroundingPolicy
GuardrailAssessment.Builder contextualGroundingPolicy(GuardrailContextualGroundingPolicyAssessment contextualGroundingPolicy) The contextual grounding policy used for the guardrail assessment.
- Parameters:
contextualGroundingPolicy
- The contextual grounding policy used for the guardrail assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contextualGroundingPolicy
default GuardrailAssessment.Builder contextualGroundingPolicy(Consumer<GuardrailContextualGroundingPolicyAssessment.Builder> contextualGroundingPolicy) The contextual grounding policy used for the guardrail assessment.
This is a convenience method that creates an instance of theGuardrailContextualGroundingPolicyAssessment.Builder
avoiding the need to create one manually viaGuardrailContextualGroundingPolicyAssessment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontextualGroundingPolicy(GuardrailContextualGroundingPolicyAssessment)
.- Parameters:
contextualGroundingPolicy
- a consumer that will call methods onGuardrailContextualGroundingPolicyAssessment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
invocationMetrics
The invocation metrics for the guardrail assessment.
- Parameters:
invocationMetrics
- The invocation metrics for the guardrail assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invocationMetrics
default GuardrailAssessment.Builder invocationMetrics(Consumer<GuardrailInvocationMetrics.Builder> invocationMetrics) The invocation metrics for the guardrail assessment.
This is a convenience method that creates an instance of theGuardrailInvocationMetrics.Builder
avoiding the need to create one manually viaGuardrailInvocationMetrics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinvocationMetrics(GuardrailInvocationMetrics)
.- Parameters:
invocationMetrics
- a consumer that will call methods onGuardrailInvocationMetrics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-