Interface GuardrailAssessment.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailAssessment.Builder,GuardrailAssessment>,SdkBuilder<GuardrailAssessment.Builder,GuardrailAssessment>,SdkPojo
- Enclosing class:
- GuardrailAssessment
public static interface GuardrailAssessment.Builder extends SdkPojo, CopyableBuilder<GuardrailAssessment.Builder,GuardrailAssessment>
-
-
Method Summary
-
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
-
topicPolicy
GuardrailAssessment.Builder topicPolicy(GuardrailTopicPolicyAssessment 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.Builderavoiding the need to create one manually viaGuardrailTopicPolicyAssessment.builder().When the
Consumercompletes,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:
topicPolicy(GuardrailTopicPolicyAssessment)
-
contentPolicy
GuardrailAssessment.Builder contentPolicy(GuardrailContentPolicyAssessment 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.Builderavoiding the need to create one manually viaGuardrailContentPolicyAssessment.builder().When the
Consumercompletes,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:
contentPolicy(GuardrailContentPolicyAssessment)
-
wordPolicy
GuardrailAssessment.Builder wordPolicy(GuardrailWordPolicyAssessment 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.Builderavoiding the need to create one manually viaGuardrailWordPolicyAssessment.builder().When the
Consumercompletes,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:
wordPolicy(GuardrailWordPolicyAssessment)
-
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.Builderavoiding the need to create one manually viaGuardrailSensitiveInformationPolicyAssessment.builder().When the
Consumercompletes,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:
sensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment)
-
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.Builderavoiding the need to create one manually viaGuardrailContextualGroundingPolicyAssessment.builder().When the
Consumercompletes,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:
contextualGroundingPolicy(GuardrailContextualGroundingPolicyAssessment)
-
-