Interface GuardrailTrace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailTrace.Builder,
,GuardrailTrace> SdkBuilder<GuardrailTrace.Builder,
,GuardrailTrace> SdkPojo
- Enclosing class:
GuardrailTrace
-
Method Summary
Modifier and TypeMethodDescriptionThe trace action details used with the Guardrail.action
(GuardrailAction action) The trace action details used with the Guardrail.inputAssessments
(Collection<GuardrailAssessment> inputAssessments) The details of the input assessments used in the Guardrail Trace.inputAssessments
(Consumer<GuardrailAssessment.Builder>... inputAssessments) The details of the input assessments used in the Guardrail Trace.inputAssessments
(GuardrailAssessment... inputAssessments) The details of the input assessments used in the Guardrail Trace.default GuardrailTrace.Builder
metadata
(Consumer<Metadata.Builder> metadata) Contains information about the Guardrail output.Contains information about the Guardrail output.outputAssessments
(Collection<GuardrailAssessment> outputAssessments) The details of the output assessments used in the Guardrail Trace.outputAssessments
(Consumer<GuardrailAssessment.Builder>... outputAssessments) The details of the output assessments used in the Guardrail Trace.outputAssessments
(GuardrailAssessment... outputAssessments) The details of the output assessments used in the Guardrail Trace.The details of the trace Id used in the Guardrail Trace.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
-
action
The trace action details used with the Guardrail.
- Parameters:
action
- The trace action details used with the Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
The trace action details used with the Guardrail.
- Parameters:
action
- The trace action details used with the Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inputAssessments
The details of the input assessments used in the Guardrail Trace.
- Parameters:
inputAssessments
- The details of the input assessments used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputAssessments
The details of the input assessments used in the Guardrail Trace.
- Parameters:
inputAssessments
- The details of the input assessments used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputAssessments
The details of the input assessments used in the Guardrail Trace.
This is a convenience method that creates an instance of theGuardrailAssessment.Builder
avoiding the need to create one manually viaGuardrailAssessment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinputAssessments(List<GuardrailAssessment>)
.- Parameters:
inputAssessments
- a consumer that will call methods onGuardrailAssessment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Contains information about the Guardrail output.
- Parameters:
metadata
- Contains information about the Guardrail output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Contains information about the Guardrail output.
This is a convenience method that creates an instance of theMetadata.Builder
avoiding the need to create one manually viaMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadata(Metadata)
.- Parameters:
metadata
- a consumer that will call methods onMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputAssessments
The details of the output assessments used in the Guardrail Trace.
- Parameters:
outputAssessments
- The details of the output assessments used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputAssessments
The details of the output assessments used in the Guardrail Trace.
- Parameters:
outputAssessments
- The details of the output assessments used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputAssessments
GuardrailTrace.Builder outputAssessments(Consumer<GuardrailAssessment.Builder>... outputAssessments) The details of the output assessments used in the Guardrail Trace.
This is a convenience method that creates an instance of theGuardrailAssessment.Builder
avoiding the need to create one manually viaGuardrailAssessment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputAssessments(List<GuardrailAssessment>)
.- Parameters:
outputAssessments
- a consumer that will call methods onGuardrailAssessment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
traceId
The details of the trace Id used in the Guardrail Trace.
- Parameters:
traceId
- The details of the trace Id used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-