Class SdkServiceException.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.core.exception.SdkException.BuilderImpl
-
- software.amazon.awssdk.core.exception.SdkServiceException.BuilderImpl
-
- All Implemented Interfaces:
SdkException.Builder
,SdkServiceException.Builder
,SdkPojo
,Buildable
- Enclosing class:
- SdkServiceException
protected static class SdkServiceException.BuilderImpl extends SdkException.BuilderImpl implements SdkServiceException.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected String
extendedRequestId
protected String
requestId
protected int
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(SdkServiceException ex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SdkServiceException
build()
Creates a newSdkException
with the specified properties.SdkServiceException.Builder
cause(Throwable cause)
Specifies the exception that caused this exception to occur.String
extendedRequestId()
The extendedRequestId returned by the called service.SdkServiceException.Builder
extendedRequestId(String extendedRequestId)
Specifies the extendedRequestId returned by the called service.String
getExtendedRequestId()
String
getRequestId()
int
getStatusCode()
SdkServiceException.Builder
message(String message)
Specifies the details of this exception.String
requestId()
The requestId returned by the called service.SdkServiceException.Builder
requestId(String requestId)
Specifies the requestId returned by the called service.List<SdkField<?>>
sdkFields()
void
setExtendedRequestId(String extendedRequestId)
void
setRequestId(String requestId)
void
setStatusCode(int statusCode)
int
statusCode()
The status code returned by the service.SdkServiceException.Builder
statusCode(int statusCode)
Specifies the status code returned by the service.SdkServiceException.Builder
writableStackTrace(Boolean writableStackTrace)
Specifies whether the stack trace in this exception can be written.-
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
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(SdkServiceException ex)
-
-
Method Detail
-
message
public SdkServiceException.Builder message(String message)
Description copied from interface:SdkException.Builder
Specifies the details of this exception.- Specified by:
message
in interfaceSdkException.Builder
- Specified by:
message
in interfaceSdkServiceException.Builder
- Overrides:
message
in classSdkException.BuilderImpl
- Parameters:
message
- The details of this exception.- Returns:
- This method for object chaining
-
cause
public SdkServiceException.Builder cause(Throwable cause)
Description copied from interface:SdkException.Builder
Specifies the exception that caused this exception to occur.- Specified by:
cause
in interfaceSdkException.Builder
- Specified by:
cause
in interfaceSdkServiceException.Builder
- Overrides:
cause
in classSdkException.BuilderImpl
- Parameters:
cause
- The exception that caused this exception to occur.- Returns:
- This object for method chaining.
-
writableStackTrace
public SdkServiceException.Builder writableStackTrace(Boolean writableStackTrace)
Description copied from interface:SdkException.Builder
Specifies whether the stack trace in this exception can be written.- Specified by:
writableStackTrace
in interfaceSdkException.Builder
- Specified by:
writableStackTrace
in interfaceSdkServiceException.Builder
- Overrides:
writableStackTrace
in classSdkException.BuilderImpl
- Parameters:
writableStackTrace
- Whether the stack trace can be written.- Returns:
- This method for object chaining
-
requestId
public SdkServiceException.Builder requestId(String requestId)
Description copied from interface:SdkServiceException.Builder
Specifies the requestId returned by the called service.- Specified by:
requestId
in interfaceSdkServiceException.Builder
- Parameters:
requestId
- A string that identifies the request made to a service.- Returns:
- This object for method chaining.
-
extendedRequestId
public SdkServiceException.Builder extendedRequestId(String extendedRequestId)
Description copied from interface:SdkServiceException.Builder
Specifies the extendedRequestId returned by the called service.- Specified by:
extendedRequestId
in interfaceSdkServiceException.Builder
- Parameters:
extendedRequestId
- A string that identifies the request made to a service.- Returns:
- This object for method chaining.
-
requestId
public String requestId()
Description copied from interface:SdkServiceException.Builder
The requestId returned by the called service.- Specified by:
requestId
in interfaceSdkServiceException.Builder
- Returns:
- String containing the requestId
-
getRequestId
public String getRequestId()
-
setRequestId
public void setRequestId(String requestId)
-
extendedRequestId
public String extendedRequestId()
Description copied from interface:SdkServiceException.Builder
The extendedRequestId returned by the called service.- Specified by:
extendedRequestId
in interfaceSdkServiceException.Builder
- Returns:
- String containing the extendedRequestId
-
getExtendedRequestId
public String getExtendedRequestId()
-
setExtendedRequestId
public void setExtendedRequestId(String extendedRequestId)
-
statusCode
public SdkServiceException.Builder statusCode(int statusCode)
Description copied from interface:SdkServiceException.Builder
Specifies the status code returned by the service.- Specified by:
statusCode
in interfaceSdkServiceException.Builder
- Parameters:
statusCode
- an int containing the status code returned by the service.- Returns:
- This method for object chaining.
-
getStatusCode
public int getStatusCode()
-
setStatusCode
public void setStatusCode(int statusCode)
-
statusCode
public int statusCode()
Description copied from interface:SdkServiceException.Builder
The status code returned by the service.- Specified by:
statusCode
in interfaceSdkServiceException.Builder
- Returns:
- int containing the status code
-
build
public SdkServiceException build()
Description copied from interface:SdkException.Builder
Creates a newSdkException
with the specified properties.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkException.Builder
- Specified by:
build
in interfaceSdkServiceException.Builder
- Overrides:
build
in classSdkException.BuilderImpl
- Returns:
- The new
SdkException
.
-
-