protected static class SdkServiceException.BuilderImpl extends SdkException.BuilderImpl implements SdkServiceException.Builder
Modifier and Type | Field and Description |
---|---|
protected String |
requestId |
protected int |
statusCode |
cause, message
Modifier | Constructor and Description |
---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(SdkServiceException ex) |
Modifier and Type | Method and Description |
---|---|
SdkServiceException |
build()
Creates a new
SdkException with the specified properties. |
SdkServiceException.Builder |
cause(Throwable cause)
Specifies the exception that caused this exception to occur.
|
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.
|
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.
|
cause, getCause, getMessage, message, setCause, setMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cause, message
protected String requestId
protected int statusCode
protected BuilderImpl()
protected BuilderImpl(SdkServiceException ex)
public SdkServiceException.Builder message(String message)
SdkException.Builder
message
in interface SdkException.Builder
message
in interface SdkServiceException.Builder
message
in class SdkException.BuilderImpl
message
- The details of this exception.public SdkServiceException.Builder cause(Throwable cause)
SdkException.Builder
cause
in interface SdkException.Builder
cause
in interface SdkServiceException.Builder
cause
in class SdkException.BuilderImpl
cause
- The exception that caused this exception to occur.public SdkServiceException.Builder requestId(String requestId)
SdkServiceException.Builder
requestId
in interface SdkServiceException.Builder
requestId
- A string that identifies the request made to a service.public String requestId()
SdkServiceException.Builder
requestId
in interface SdkServiceException.Builder
public String getRequestId()
public void setRequestId(String requestId)
public SdkServiceException.Builder statusCode(int statusCode)
SdkServiceException.Builder
statusCode
in interface SdkServiceException.Builder
statusCode
- an int containing the status code returned by the service.public int getStatusCode()
public void setStatusCode(int statusCode)
public int statusCode()
SdkServiceException.Builder
statusCode
in interface SdkServiceException.Builder
public SdkServiceException build()
SdkException.Builder
SdkException
with the specified properties.build
in interface SdkException.Builder
build
in interface SdkServiceException.Builder
build
in class SdkException.BuilderImpl
SdkException
.Copyright © 2018. All rights reserved.