Interface TransactionCanceledException.Builder
-
- All Superinterfaces:
AwsServiceException.Builder,Buildable,CopyableBuilder<TransactionCanceledException.Builder,TransactionCanceledException>,DynamoDbException.Builder,SdkBuilder<TransactionCanceledException.Builder,TransactionCanceledException>,SdkException.Builder,SdkPojo,SdkServiceException.Builder
- Enclosing class:
- TransactionCanceledException
@Mutable @NotThreadSafe public static interface TransactionCanceledException.Builder extends SdkPojo, CopyableBuilder<TransactionCanceledException.Builder,TransactionCanceledException>, DynamoDbException.Builder
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.exception.AwsServiceException.Builder
awsErrorDetails, build, clockSkew, clockSkew, extendedRequestId
-
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.exception.SdkException.Builder
cause, message, numAttempts, writableStackTrace
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkServiceException.Builder
extendedRequestId, requestId, statusCode
-
-
-
-
Method Detail
-
cancellationReasons
TransactionCanceledException.Builder cancellationReasons(Collection<CancellationReason> cancellationReasons)
A list of cancellation reasons.
- Parameters:
cancellationReasons- A list of cancellation reasons.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cancellationReasons
TransactionCanceledException.Builder cancellationReasons(CancellationReason... cancellationReasons)
A list of cancellation reasons.
- Parameters:
cancellationReasons- A list of cancellation reasons.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cancellationReasons
TransactionCanceledException.Builder cancellationReasons(Consumer<CancellationReason.Builder>... cancellationReasons)
A list of cancellation reasons.
This is a convenience method that creates an instance of theCancellationReason.Builderavoiding the need to create one manually viaCancellationReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#cancellationReasons(List.) - Parameters:
cancellationReasons- a consumer that will call methods onCancellationReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#cancellationReasons(java.util.Collection)
-
awsErrorDetails
TransactionCanceledException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
- Specified by:
awsErrorDetailsin interfaceAwsServiceException.Builder- Specified by:
awsErrorDetailsin interfaceDynamoDbException.Builder
-
message
TransactionCanceledException.Builder message(String message)
- Specified by:
messagein interfaceAwsServiceException.Builder- Specified by:
messagein interfaceDynamoDbException.Builder- Specified by:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder
-
requestId
TransactionCanceledException.Builder requestId(String requestId)
- Specified by:
requestIdin interfaceAwsServiceException.Builder- Specified by:
requestIdin interfaceDynamoDbException.Builder- Specified by:
requestIdin interfaceSdkServiceException.Builder
-
statusCode
TransactionCanceledException.Builder statusCode(int statusCode)
- Specified by:
statusCodein interfaceAwsServiceException.Builder- Specified by:
statusCodein interfaceDynamoDbException.Builder- Specified by:
statusCodein interfaceSdkServiceException.Builder
-
cause
TransactionCanceledException.Builder cause(Throwable cause)
- Specified by:
causein interfaceAwsServiceException.Builder- Specified by:
causein interfaceDynamoDbException.Builder- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder
-
writableStackTrace
TransactionCanceledException.Builder writableStackTrace(Boolean writableStackTrace)
- Specified by:
writableStackTracein interfaceDynamoDbException.Builder- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder
-
numAttempts
TransactionCanceledException.Builder numAttempts(Integer numAttempts)
- Specified by:
numAttemptsin interfaceAwsServiceException.Builder- Specified by:
numAttemptsin interfaceDynamoDbException.Builder- Specified by:
numAttemptsin interfaceSdkException.Builder- Specified by:
numAttemptsin interfaceSdkServiceException.Builder
-
-