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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
contentPolicy
GuardrailAssessment.Builder contentPolicy(GuardrailContentPolicyAssessment 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.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:
contentPolicy(GuardrailContentPolicyAssessment)
-
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.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:
sensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment)
-
topicPolicy
GuardrailAssessment.Builder topicPolicy(GuardrailTopicPolicyAssessment 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.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:
topicPolicy(GuardrailTopicPolicyAssessment)
-
wordPolicy
GuardrailAssessment.Builder wordPolicy(GuardrailWordPolicyAssessment 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.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:
wordPolicy(GuardrailWordPolicyAssessment)
-
-