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 SummaryModifier and TypeMethodDescriptionfailureCode(Integer failureCode) The failure code for the trace.failureReason(String failureReason) The reason the interaction failed.default FailureTrace.Buildermetadata(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
traceIdThe 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.
 
- 
failureReasonThe 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.
 
- 
failureCodeThe 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.
 
- 
metadataInformation 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.
 
- 
metadataInformation about the failure that occurred. 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 on- Metadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-