Class AwsServiceException.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.core.exception.SdkException.BuilderImpl
-
- software.amazon.awssdk.core.exception.SdkServiceException.BuilderImpl
-
- software.amazon.awssdk.awscore.exception.AwsServiceException.BuilderImpl
-
- All Implemented Interfaces:
AwsServiceException.Builder
,SdkException.Builder
,SdkServiceException.Builder
,SdkPojo
,Buildable
- Enclosing class:
- AwsServiceException
protected static class AwsServiceException.BuilderImpl extends SdkServiceException.BuilderImpl implements AwsServiceException.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected AwsErrorDetails
awsErrorDetails
-
Fields inherited from class software.amazon.awssdk.core.exception.SdkServiceException.BuilderImpl
extendedRequestId, requestId, statusCode
-
Fields inherited from class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
cause, message, writableStackTrace
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BuilderImpl()
protected
BuilderImpl(AwsServiceException ex)
-
Method Summary
All Methods Instance Methods Concrete 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 cause)
Duration
clockSkew()
The request-level time skew between the client and server date for the request that generated this exception.AwsServiceException.Builder
clockSkew(Duration clockSkew)
The request-level time skew between the client and server date for the request that generated this exception.AwsServiceException.Builder
extendedRequestId(String extendedRequestId)
AwsErrorDetails
getAwsErrorDetails()
AwsServiceException.Builder
message(String message)
AwsServiceException.Builder
requestId(String requestId)
void
setAwsErrorDetails(AwsErrorDetails awsErrorDetails)
AwsServiceException.Builder
statusCode(int statusCode)
AwsServiceException.Builder
writableStackTrace(Boolean writableStackTrace)
-
Methods inherited from class software.amazon.awssdk.core.exception.SdkServiceException.BuilderImpl
extendedRequestId, getExtendedRequestId, getRequestId, getStatusCode, requestId, sdkFields, setExtendedRequestId, setRequestId, setStatusCode, statusCode
-
Methods inherited from class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
cause, getCause, getMessage, getWritableStackTrace, message, setCause, setMessage, setWritableStackTrace, writableStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Field Detail
-
awsErrorDetails
protected AwsErrorDetails awsErrorDetails
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(AwsServiceException ex)
-
-
Method Detail
-
awsErrorDetails
public AwsServiceException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
Description copied from interface:AwsServiceException.Builder
Specifies the additional awsErrorDetails from the service response.- Specified by:
awsErrorDetails
in interfaceAwsServiceException.Builder
- Parameters:
awsErrorDetails
- Object containing additional details from the response.- Returns:
- This object for method chaining.
-
awsErrorDetails
public AwsErrorDetails awsErrorDetails()
Description copied from interface:AwsServiceException.Builder
TheAwsErrorDetails
from the service response.- Specified by:
awsErrorDetails
in interfaceAwsServiceException.Builder
- Returns:
AwsErrorDetails
.
-
getAwsErrorDetails
public AwsErrorDetails getAwsErrorDetails()
-
setAwsErrorDetails
public void setAwsErrorDetails(AwsErrorDetails awsErrorDetails)
-
clockSkew
public AwsServiceException.Builder clockSkew(Duration clockSkew)
Description copied from interface:AwsServiceException.Builder
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".- Specified by:
clockSkew
in interfaceAwsServiceException.Builder
-
clockSkew
public Duration clockSkew()
Description copied from interface:AwsServiceException.Builder
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".- Specified by:
clockSkew
in interfaceAwsServiceException.Builder
-
message
public AwsServiceException.Builder message(String message)
- Specified by:
message
in interfaceAwsServiceException.Builder
- Specified by:
message
in interfaceSdkException.Builder
- Specified by:
message
in interfaceSdkServiceException.Builder
- Overrides:
message
in classSdkServiceException.BuilderImpl
-
cause
public AwsServiceException.Builder cause(Throwable cause)
- Specified by:
cause
in interfaceAwsServiceException.Builder
- Specified by:
cause
in interfaceSdkException.Builder
- Specified by:
cause
in interfaceSdkServiceException.Builder
- Overrides:
cause
in classSdkServiceException.BuilderImpl
-
writableStackTrace
public AwsServiceException.Builder writableStackTrace(Boolean writableStackTrace)
- Specified by:
writableStackTrace
in interfaceSdkException.Builder
- Specified by:
writableStackTrace
in interfaceSdkServiceException.Builder
- Overrides:
writableStackTrace
in classSdkServiceException.BuilderImpl
-
requestId
public AwsServiceException.Builder requestId(String requestId)
- Specified by:
requestId
in interfaceAwsServiceException.Builder
- Specified by:
requestId
in interfaceSdkServiceException.Builder
- Overrides:
requestId
in classSdkServiceException.BuilderImpl
-
extendedRequestId
public AwsServiceException.Builder extendedRequestId(String extendedRequestId)
- Specified by:
extendedRequestId
in interfaceAwsServiceException.Builder
- Specified by:
extendedRequestId
in interfaceSdkServiceException.Builder
- Overrides:
extendedRequestId
in classSdkServiceException.BuilderImpl
-
statusCode
public AwsServiceException.Builder statusCode(int statusCode)
- Specified by:
statusCode
in interfaceAwsServiceException.Builder
- Specified by:
statusCode
in interfaceSdkServiceException.Builder
- Overrides:
statusCode
in classSdkServiceException.BuilderImpl
-
build
public AwsServiceException build()
- Specified by:
build
in interfaceAwsServiceException.Builder
- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkException.Builder
- Specified by:
build
in interfaceSdkServiceException.Builder
- Overrides:
build
in classSdkServiceException.BuilderImpl
-
-