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 AwsErrorDetailsawsErrorDetails-
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 protectedBuilderImpl()protectedBuilderImpl(AwsServiceException ex)
-
Method Summary
All Methods Instance Methods Concrete 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 cause)DurationclockSkew()The request-level time skew between the client and server date for the request that generated this exception.AwsServiceException.BuilderclockSkew(Duration clockSkew)The request-level time skew between the client and server date for the request that generated this exception.AwsServiceException.BuilderextendedRequestId(String extendedRequestId)AwsErrorDetailsgetAwsErrorDetails()AwsServiceException.Buildermessage(String message)AwsServiceException.BuilderrequestId(String requestId)voidsetAwsErrorDetails(AwsErrorDetails awsErrorDetails)AwsServiceException.BuilderstatusCode(int statusCode)AwsServiceException.BuilderwritableStackTrace(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.BuilderSpecifies the additional awsErrorDetails from the service response.- Specified by:
awsErrorDetailsin 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.BuilderTheAwsErrorDetailsfrom the service response.- Specified by:
awsErrorDetailsin 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.BuilderThe 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:
clockSkewin interfaceAwsServiceException.Builder
-
clockSkew
public Duration clockSkew()
Description copied from interface:AwsServiceException.BuilderThe 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:
clockSkewin interfaceAwsServiceException.Builder
-
message
public AwsServiceException.Builder message(String message)
- Specified by:
messagein interfaceAwsServiceException.Builder- Specified by:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder- Overrides:
messagein classSdkServiceException.BuilderImpl
-
cause
public AwsServiceException.Builder cause(Throwable cause)
- Specified by:
causein interfaceAwsServiceException.Builder- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder- Overrides:
causein classSdkServiceException.BuilderImpl
-
writableStackTrace
public AwsServiceException.Builder writableStackTrace(Boolean writableStackTrace)
- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder- Overrides:
writableStackTracein classSdkServiceException.BuilderImpl
-
requestId
public AwsServiceException.Builder requestId(String requestId)
- Specified by:
requestIdin interfaceAwsServiceException.Builder- Specified by:
requestIdin interfaceSdkServiceException.Builder- Overrides:
requestIdin classSdkServiceException.BuilderImpl
-
extendedRequestId
public AwsServiceException.Builder extendedRequestId(String extendedRequestId)
- Specified by:
extendedRequestIdin interfaceAwsServiceException.Builder- Specified by:
extendedRequestIdin interfaceSdkServiceException.Builder- Overrides:
extendedRequestIdin classSdkServiceException.BuilderImpl
-
statusCode
public AwsServiceException.Builder statusCode(int statusCode)
- Specified by:
statusCodein interfaceAwsServiceException.Builder- Specified by:
statusCodein interfaceSdkServiceException.Builder- Overrides:
statusCodein classSdkServiceException.BuilderImpl
-
build
public AwsServiceException build()
- Specified by:
buildin interfaceAwsServiceException.Builder- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkException.Builder- Specified by:
buildin interfaceSdkServiceException.Builder- Overrides:
buildin classSdkServiceException.BuilderImpl
-
-