public static interface TransactionCanceledException.Builder extends SdkPojo, CopyableBuilder<TransactionCanceledException.Builder,TransactionCanceledException>, DynamoDbException.Builder
Modifier and Type | Method and Description |
---|---|
TransactionCanceledException.Builder |
awsErrorDetails(AwsErrorDetails awsErrorDetails)
Specifies the additional awsErrorDetails from the service response.
|
TransactionCanceledException.Builder |
cancellationReasons(CancellationReason... cancellationReasons)
A list of cancellation reasons.
|
TransactionCanceledException.Builder |
cancellationReasons(Collection<CancellationReason> cancellationReasons)
A list of cancellation reasons.
|
TransactionCanceledException.Builder |
cancellationReasons(Consumer<CancellationReason.Builder>... cancellationReasons)
A list of cancellation reasons.
|
TransactionCanceledException.Builder |
cause(Throwable cause)
Specifies the exception that caused this exception to occur.
|
TransactionCanceledException.Builder |
message(String message)
Specifies the details of this exception.
|
TransactionCanceledException.Builder |
requestId(String requestId)
Specifies the requestId returned by the called service.
|
TransactionCanceledException.Builder |
statusCode(int statusCode)
Specifies the status code returned by the service.
|
copy
applyMutation, build
awsErrorDetails, build
requestId, statusCode
cause, message
TransactionCanceledException.Builder cancellationReasons(Collection<CancellationReason> cancellationReasons)
A list of cancellation reasons.
cancellationReasons
- A list of cancellation reasons.TransactionCanceledException.Builder cancellationReasons(CancellationReason... cancellationReasons)
A list of cancellation reasons.
cancellationReasons
- A list of cancellation reasons.TransactionCanceledException.Builder cancellationReasons(Consumer<CancellationReason.Builder>... cancellationReasons)
A list of cancellation reasons.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #cancellationReasons(List)
.cancellationReasons
- a consumer that will call methods on List.Builder
#cancellationReasons(List)
TransactionCanceledException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
AwsServiceException.Builder
awsErrorDetails
in interface AwsServiceException.Builder
awsErrorDetails
in interface DynamoDbException.Builder
awsErrorDetails
- Object containing additional details from the response.TransactionCanceledException.Builder message(String message)
SdkException.Builder
message
in interface AwsServiceException.Builder
message
in interface DynamoDbException.Builder
message
in interface SdkException.Builder
message
in interface SdkServiceException.Builder
message
- The details of this exception.TransactionCanceledException.Builder requestId(String requestId)
SdkServiceException.Builder
requestId
in interface AwsServiceException.Builder
requestId
in interface DynamoDbException.Builder
requestId
in interface SdkServiceException.Builder
requestId
- A string that identifies the request made to a service.TransactionCanceledException.Builder statusCode(int statusCode)
SdkServiceException.Builder
statusCode
in interface AwsServiceException.Builder
statusCode
in interface DynamoDbException.Builder
statusCode
in interface SdkServiceException.Builder
statusCode
- an int containing the status code returned by the service.TransactionCanceledException.Builder cause(Throwable cause)
SdkException.Builder
cause
in interface AwsServiceException.Builder
cause
in interface DynamoDbException.Builder
cause
in interface SdkException.Builder
cause
in interface SdkServiceException.Builder
cause
- The exception that caused this exception to occur.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.