public class ApiServiceResponse<T>
extends java.lang.Object
| Constructor and Description |
|---|
ApiServiceResponse() |
| Modifier and Type | Method and Description |
|---|---|
ResponseMetadata |
getMetadata() |
T |
getResult() |
void |
setMetadata(ResponseMetadata metadata)
Sets the response metadata for this response.
|
void |
setResult(T result)
Sets the result contained by this response.
|
ApiServiceResponse<T> |
withMetadata(ResponseMetadata metadata)
Sets the response metadata for this response and return the updated
response service object.
|
ApiServiceResponse<T> |
withResult(T result)
Sets the result contained by this response and return the updated
service response object.
|
public T getResult()
public void setResult(T result)
result - The result contained by this response.public ApiServiceResponse<T> withResult(T result)
result - the result contained by this response.public ResponseMetadata getMetadata()
public void setMetadata(ResponseMetadata metadata)
metadata - the specified metadata for this response.public ApiServiceResponse<T> withMetadata(ResponseMetadata metadata)
metadata - the specified metadata for this response.