Package com.amazonaws
Class AmazonWebServiceResponse<T>
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceResponse<T>
-
- Type Parameters:
T
- The type of result contained by this response.
public class AmazonWebServiceResponse<T> extends Object
Represents the response from an AWS service, including the result payload and any response metadata. AWS response metadata consists primarily of the AWS request ID, which can be used for debugging purposes when services aren't acting as expected.
-
-
Constructor Summary
Constructors Constructor Description AmazonWebServiceResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRequestId()
Returns the AWS request ID from the response metadata section of an AWS response.ResponseMetadata
getResponseMetadata()
Returns the response metadata for this response.T
getResult()
Returns the result contained by this response.void
setResponseMetadata(ResponseMetadata responseMetadata)
Sets the response metadata associated with this response.void
setResult(T result)
Sets the result contained by this response.
-
-
-
Method Detail
-
getResult
public T getResult()
Returns the result contained by this response.- Returns:
- The result contained by this response.
-
setResult
public void setResult(T result)
Sets the result contained by this response.- Parameters:
result
- The result contained by this response.
-
setResponseMetadata
public void setResponseMetadata(ResponseMetadata responseMetadata)
Sets the response metadata associated with this response.- Parameters:
responseMetadata
- The response metadata for this response.
-
getResponseMetadata
public ResponseMetadata getResponseMetadata()
Returns the response metadata for this response. Response metadata provides additional information about a response that isn't necessarily directly part of the data the service is returning. Response metadata is primarily used for debugging issues with AWS support when a service isn't working as expected.- Returns:
- The response metadata for this response.
-
getRequestId
public String getRequestId()
Returns the AWS request ID from the response metadata section of an AWS response.- Returns:
- The AWS request ID from the response metadata section of an AWS response.
-
-