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.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaGuardrailAssessment.builder().When the
Consumercompletes,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:
-
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.Builderavoiding the need to create one manually viaGuardrailAssessment.builder().When the
Consumercompletes,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.
-