Interface GuardrailAssessment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailAssessment.Builder,,GuardrailAssessment> SdkBuilder<GuardrailAssessment.Builder,,GuardrailAssessment> SdkPojo
- Enclosing class:
GuardrailAssessment
-
Method Summary
Modifier and TypeMethodDescriptiondefault GuardrailAssessment.BuildercontentPolicy(Consumer<GuardrailContentPolicyAssessment.Builder> contentPolicy) Content policy details of the Guardrail.contentPolicy(GuardrailContentPolicyAssessment contentPolicy) Content policy details of the Guardrail.default GuardrailAssessment.BuildersensitiveInformationPolicy(Consumer<GuardrailSensitiveInformationPolicyAssessment.Builder> sensitiveInformationPolicy) Sensitive Information policy details of Guardrail.sensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment sensitiveInformationPolicy) Sensitive Information policy details of Guardrail.default GuardrailAssessment.BuildertopicPolicy(Consumer<GuardrailTopicPolicyAssessment.Builder> topicPolicy) Topic policy details of the Guardrail.topicPolicy(GuardrailTopicPolicyAssessment topicPolicy) Topic policy details of the Guardrail.default GuardrailAssessment.BuilderwordPolicy(Consumer<GuardrailWordPolicyAssessment.Builder> wordPolicy) Word policy details of the Guardrail.wordPolicy(GuardrailWordPolicyAssessment wordPolicy) Word policy details of the Guardrail.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
contentPolicy
Content policy details of the Guardrail.
- Parameters:
contentPolicy- Content policy details of the Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentPolicy
default GuardrailAssessment.Builder contentPolicy(Consumer<GuardrailContentPolicyAssessment.Builder> contentPolicy) Content policy details of the Guardrail.
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:
-
sensitiveInformationPolicy
GuardrailAssessment.Builder sensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment sensitiveInformationPolicy) Sensitive Information policy details of Guardrail.
- Parameters:
sensitiveInformationPolicy- Sensitive Information policy details of Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sensitiveInformationPolicy
default GuardrailAssessment.Builder sensitiveInformationPolicy(Consumer<GuardrailSensitiveInformationPolicyAssessment.Builder> sensitiveInformationPolicy) Sensitive Information policy details of Guardrail.
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:
-
topicPolicy
Topic policy details of the Guardrail.
- Parameters:
topicPolicy- Topic policy details of the Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPolicy
default GuardrailAssessment.Builder topicPolicy(Consumer<GuardrailTopicPolicyAssessment.Builder> topicPolicy) Topic policy details of the Guardrail.
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:
-
wordPolicy
Word policy details of the Guardrail.
- Parameters:
wordPolicy- Word policy details of the Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordPolicy
default GuardrailAssessment.Builder wordPolicy(Consumer<GuardrailWordPolicyAssessment.Builder> wordPolicy) Word policy details of the Guardrail.
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:
-