Interface FailureTrace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FailureTrace.Builder,
,FailureTrace> SdkBuilder<FailureTrace.Builder,
,FailureTrace> SdkPojo
- Enclosing class:
FailureTrace
@Mutable
@NotThreadSafe
public static interface FailureTrace.Builder
extends SdkPojo, CopyableBuilder<FailureTrace.Builder,FailureTrace>
-
Method Summary
Modifier and TypeMethodDescriptionfailureCode
(Integer failureCode) The failure code for the trace.failureReason
(String failureReason) The reason the interaction failed.default FailureTrace.Builder
metadata
(Consumer<Metadata.Builder> metadata) Information about the failure that occurred.Information about the failure that occurred.The unique identifier of the 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
-
failureCode
The failure code for the trace.
- Parameters:
failureCode
- The failure code for the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReason
The reason the interaction failed.
- Parameters:
failureReason
- The reason the interaction failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Information about the failure that occurred.
- Parameters:
metadata
- Information about the failure that occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Information about the failure that occurred.
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:
-
traceId
The unique identifier of the trace.
- Parameters:
traceId
- The unique identifier of the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-