Interface AwsServiceException.Builder
-
- All Superinterfaces:
Buildable
,SdkException.Builder
,SdkPojo
,SdkServiceException.Builder
- All Known Implementing Classes:
AwsServiceException.BuilderImpl
- Enclosing class:
- AwsServiceException
public static interface AwsServiceException.Builder extends SdkServiceException.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsErrorDetails
awsErrorDetails()
TheAwsErrorDetails
from the service response.AwsServiceException.Builder
awsErrorDetails(AwsErrorDetails awsErrorDetails)
Specifies the additional awsErrorDetails from the service response.AwsServiceException
build()
AwsServiceException.Builder
cause(Throwable t)
Duration
clockSkew()
The request-level time skew between the client and server date for the request that generated this exception.AwsServiceException.Builder
clockSkew(Duration timeOffSet)
The request-level time skew between the client and server date for the request that generated this exception.AwsServiceException.Builder
extendedRequestId(String extendedRequestId)
AwsServiceException.Builder
message(String message)
AwsServiceException.Builder
requestId(String requestId)
AwsServiceException.Builder
statusCode(int statusCode)
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
cause, message, writableStackTrace
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkServiceException.Builder
extendedRequestId, requestId, statusCode, writableStackTrace
-
-
-
-
Method Detail
-
awsErrorDetails
AwsServiceException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
Specifies the additional awsErrorDetails from the service response.- Parameters:
awsErrorDetails
- Object containing additional details from the response.- Returns:
- This object for method chaining.
-
awsErrorDetails
AwsErrorDetails awsErrorDetails()
TheAwsErrorDetails
from the service response.- Returns:
AwsErrorDetails
.
-
clockSkew
AwsServiceException.Builder clockSkew(Duration timeOffSet)
The request-level time skew between the client and server date for the request that generated this exception. Positive values imply the client clock is "fast" and negative values imply the client clock is "slow".
-
clockSkew
Duration clockSkew()
The request-level time skew between the client and server date for the request that generated this exception. Positive values imply the client clock is "fast" and negative values imply the client clock is "slow".
-
message
AwsServiceException.Builder message(String message)
- Specified by:
message
in interfaceSdkException.Builder
- Specified by:
message
in interfaceSdkServiceException.Builder
-
cause
AwsServiceException.Builder cause(Throwable t)
- Specified by:
cause
in interfaceSdkException.Builder
- Specified by:
cause
in interfaceSdkServiceException.Builder
-
requestId
AwsServiceException.Builder requestId(String requestId)
- Specified by:
requestId
in interfaceSdkServiceException.Builder
-
extendedRequestId
AwsServiceException.Builder extendedRequestId(String extendedRequestId)
- Specified by:
extendedRequestId
in interfaceSdkServiceException.Builder
-
statusCode
AwsServiceException.Builder statusCode(int statusCode)
- Specified by:
statusCode
in interfaceSdkServiceException.Builder
-
build
AwsServiceException build()
- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkException.Builder
- Specified by:
build
in interfaceSdkServiceException.Builder
-
-