Package com.azure.core.http.rest
Interface Response<T>
- Type Parameters:
T
- The deserialized type of the response content, available fromgetValue()
.
- All Known Subinterfaces:
PagedResponse<T>
- All Known Implementing Classes:
AttestationResponse
,AutocompletePagedResponse
,BlobDownloadAsyncResponse
,BlobDownloadContentAsyncResponse
,BlobDownloadContentResponse
,BlobDownloadResponse
,BlobQueryAsyncResponse
,BlobQueryResponse
,DataFlowDebugSessionsCreateDataFlowDebugSessionResponse
,DataFlowDebugSessionsExecuteCommandResponse
,DetectAnomalyResponse
,DigitalTwinsResponse
,FileQueryAsyncResponse
,FileQueryResponse
,FileReadAsyncResponse
,FileReadResponse
,PagedResponseBase
,ResponseBase
,RoleAssignmentsListRoleAssignmentsResponse
,SearchPagedResponse
,ShareFileDownloadAsyncResponse
,ShareFileDownloadResponse
,SimpleResponse
,StreamResponse
,SuggestPagedResponse
,TableTransactionActionResponse
,TrainMultivariateModelResponse
public interface Response<T>
REST response with a strongly-typed content specified.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the headers from the HTTP response.Gets the HTTP request which resulted in this response.int
Gets the HTTP response status code.getValue()
Gets the deserialized value of the HTTP response.
-
Method Details
-
getStatusCode
int getStatusCode()Gets the HTTP response status code.- Returns:
- The status code of the HTTP response.
-
getHeaders
HttpHeaders getHeaders()Gets the headers from the HTTP response.- Returns:
- The HTTP response headers.
-
getRequest
HttpRequest getRequest()Gets the HTTP request which resulted in this response.- Returns:
- The HTTP request.
-
getValue
T getValue()Gets the deserialized value of the HTTP response.- Returns:
- The deserialized value of the HTTP response.
-