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 AwsErrorDetailsawsErrorDetails()TheAwsErrorDetailsfrom the service response.AwsServiceException.BuilderawsErrorDetails(AwsErrorDetails awsErrorDetails)Specifies the additional awsErrorDetails from the service response.AwsServiceExceptionbuild()AwsServiceException.Buildercause(Throwable t)DurationclockSkew()The request-level time skew between the client and server date for the request that generated this exception.AwsServiceException.BuilderclockSkew(Duration timeOffSet)The request-level time skew between the client and server date for the request that generated this exception.AwsServiceException.BuilderextendedRequestId(String extendedRequestId)AwsServiceException.Buildermessage(String message)AwsServiceException.BuilderrequestId(String requestId)AwsServiceException.BuilderstatusCode(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()
TheAwsErrorDetailsfrom 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:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder
-
cause
AwsServiceException.Builder cause(Throwable t)
- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder
-
requestId
AwsServiceException.Builder requestId(String requestId)
- Specified by:
requestIdin interfaceSdkServiceException.Builder
-
extendedRequestId
AwsServiceException.Builder extendedRequestId(String extendedRequestId)
- Specified by:
extendedRequestIdin interfaceSdkServiceException.Builder
-
statusCode
AwsServiceException.Builder statusCode(int statusCode)
- Specified by:
statusCodein interfaceSdkServiceException.Builder
-
build
AwsServiceException build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkException.Builder- Specified by:
buildin interfaceSdkServiceException.Builder
-
-