Interface GuardrailTrace.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailTrace.Builder,GuardrailTrace>,SdkBuilder<GuardrailTrace.Builder,GuardrailTrace>,SdkPojo
- Enclosing class:
- GuardrailTrace
@Mutable @NotThreadSafe public static interface GuardrailTrace.Builder extends SdkPojo, CopyableBuilder<GuardrailTrace.Builder,GuardrailTrace>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GuardrailTrace.Builderaction(String action)The trace action details used with the Guardrail.GuardrailTrace.Builderaction(GuardrailAction action)The trace action details used with the Guardrail.GuardrailTrace.BuilderinputAssessments(Collection<GuardrailAssessment> inputAssessments)The details of the input assessments used in the Guardrail Trace.GuardrailTrace.BuilderinputAssessments(Consumer<GuardrailAssessment.Builder>... inputAssessments)The details of the input assessments used in the Guardrail Trace.GuardrailTrace.BuilderinputAssessments(GuardrailAssessment... inputAssessments)The details of the input assessments used in the Guardrail Trace.default GuardrailTrace.Buildermetadata(Consumer<Metadata.Builder> metadata)Contains information about the Guardrail output.GuardrailTrace.Buildermetadata(Metadata metadata)Contains information about the Guardrail output.GuardrailTrace.BuilderoutputAssessments(Collection<GuardrailAssessment> outputAssessments)The details of the output assessments used in the Guardrail Trace.GuardrailTrace.BuilderoutputAssessments(Consumer<GuardrailAssessment.Builder>... outputAssessments)The details of the output assessments used in the Guardrail Trace.GuardrailTrace.BuilderoutputAssessments(GuardrailAssessment... outputAssessments)The details of the output assessments used in the Guardrail Trace.GuardrailTrace.BuildertraceId(String traceId)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 Detail
-
action
GuardrailTrace.Builder action(String 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:
GuardrailAction,GuardrailAction
-
action
GuardrailTrace.Builder action(GuardrailAction 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:
GuardrailAction,GuardrailAction
-
inputAssessments
GuardrailTrace.Builder inputAssessments(Collection<GuardrailAssessment> 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
GuardrailTrace.Builder inputAssessments(GuardrailAssessment... 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
GuardrailTrace.Builder inputAssessments(Consumer<GuardrailAssessment.Builder>... inputAssessments)
The details of the input assessments used in the Guardrail Trace.
This is a convenience method that creates an instance of theGuardrailAssessment.Builderavoiding the need to create one manually viaGuardrailAssessment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#inputAssessments(List.) - 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:
#inputAssessments(java.util.Collection)
-
metadata
GuardrailTrace.Builder metadata(Metadata 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
default GuardrailTrace.Builder metadata(Consumer<Metadata.Builder> metadata)
Contains information about the Guardrail output.
This is a convenience method that creates an instance of theMetadata.Builderavoiding the need to create one manually viaMetadata.builder().When the
Consumercompletes,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:
metadata(Metadata)
-
outputAssessments
GuardrailTrace.Builder outputAssessments(Collection<GuardrailAssessment> 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(GuardrailAssessment... 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.Builderavoiding the need to create one manually viaGuardrailAssessment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#outputAssessments(List.) - 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:
#outputAssessments(java.util.Collection)
-
traceId
GuardrailTrace.Builder traceId(String 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.
-
-