Interface GuardrailTraceAssessment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailTraceAssessment.Builder,
,GuardrailTraceAssessment> SdkBuilder<GuardrailTraceAssessment.Builder,
,GuardrailTraceAssessment> SdkPojo
- Enclosing class:
GuardrailTraceAssessment
@Mutable
@NotThreadSafe
public static interface GuardrailTraceAssessment.Builder
extends SdkPojo, CopyableBuilder<GuardrailTraceAssessment.Builder,GuardrailTraceAssessment>
-
Method Summary
Modifier and TypeMethodDescriptionactionReason
(String actionReason) Provides the reason for the action taken when harmful content is detected.inputAssessment
(Map<String, GuardrailAssessment> inputAssessment) The input assessment.modelOutput
(String... modelOutput) The output from the model.modelOutput
(Collection<String> modelOutput) The output from the model.outputAssessments
(Map<String, ? extends Collection<GuardrailAssessment>> outputAssessments) the output assessments.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
-
modelOutput
The output from the model.
- Parameters:
modelOutput
- The output from the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelOutput
The output from the model.
- Parameters:
modelOutput
- The output from the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputAssessment
The input assessment.
- Parameters:
inputAssessment
- The input assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputAssessments
GuardrailTraceAssessment.Builder outputAssessments(Map<String, ? extends Collection<GuardrailAssessment>> outputAssessments) the output assessments.
- Parameters:
outputAssessments
- the output assessments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionReason
Provides the reason for the action taken when harmful content is detected.
- Parameters:
actionReason
- Provides the reason for the action taken when harmful content is detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-