public class AmazonS3ExceptionBuilder extends Object
AmazonS3Exception
Constructor and Description |
---|
AmazonS3ExceptionBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalDetail(String key,
String detail)
Adds an entry to the additional information map.
|
AmazonS3Exception |
build()
Creates a new AmazonS3Exception object with the values set.
|
Map<String,String> |
getAdditionalDetails()
Returns any additional information retrieved in the error response.
|
String |
getCloudFrontId()
Gets Amazon S3's CloudFront ID when the request is performed in the accelerate mode.
|
String |
getErrorCode()
Returns the Amazon Web Services error code represented by this exception.
|
String |
getErrorMessage()
Returns the human-readable error message provided by the service
|
String |
getErrorResponseXml()
Returns the original error response XML received from Amazon S3
|
String |
getExtendedRequestId()
Gets Amazon S3's extended request ID.
|
String |
getRequestId()
Returns the Amazon Web Services request ID that uniquely identifies the service request
the caller made.
|
int |
getStatusCode()
Returns the HTTP status code that was returned with this service
exception.
|
void |
setAdditionalDetails(Map<String,String> additionalDetails)
Sets additional information about the response.
|
void |
setCloudFrontId(String cloudFrontId)
Sets Amazon S3's CloudFront ID when the request is performed in the accelerate mode.
|
void |
setErrorCode(String errorCode)
Sets the Amazon Web Services error code represented by this exception.
|
void |
setErrorMessage(String errorMessage)
Sets the human-readable error message provided by the service
|
void |
setErrorResponseXml(String errorResponseXml)
Sets the error response XML received from Amazon S3
|
void |
setExtendedRequestId(String extendedRequestId)
Sets Amazon S3's extended request ID.
|
void |
setProxyHost(String proxyHost)
Sets proxy host.
|
void |
setRequestId(String requestId)
Sets the Amazon Web Services requestId for this exception.
|
void |
setStatusCode(int statusCode)
Sets the HTTP status code that was returned with this service exception.
|
public String getRequestId()
public void setRequestId(String requestId)
requestId
- The unique identifier for the service request the caller made.public void setErrorCode(String errorCode)
errorCode
- The Amazon Web Services error code represented by this exception.public String getErrorCode()
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
public void setStatusCode(int statusCode)
statusCode
- The HTTP status code that was returned with this service
exception.public int getStatusCode()
public String getExtendedRequestId()
AmazonS3Exception.setExtendedRequestId(String)
,
AmazonS3Exception.getExtendedRequestId()
public void setExtendedRequestId(String extendedRequestId)
extendedRequestId
- S3's extended request ID.AmazonS3Exception.setExtendedRequestId(String)
,
AmazonS3Exception.getExtendedRequestId()
public String getCloudFrontId()
public void setCloudFrontId(String cloudFrontId)
cloudFrontId
- Amazon S3's CloudFront ID.public Map<String,String> getAdditionalDetails()
public void setAdditionalDetails(Map<String,String> additionalDetails)
public void addAdditionalDetail(String key, String detail)
public String getErrorResponseXml()
public void setErrorResponseXml(String errorResponseXml)
public void setProxyHost(String proxyHost)
proxyHost
- the proxy host to setpublic AmazonS3Exception build()
Copyright © 2024. All rights reserved.