Package dev.openfga.sdk.api.client
Class ApiResponse<T>
- java.lang.Object
-
- dev.openfga.sdk.api.client.ApiResponse<T>
-
- Type Parameters:
T
- The type of data that is deserialized from response body
public class ApiResponse<T> extends java.lang.Object
API response returned by API call.
-
-
Constructor Summary
Constructors Constructor Description ApiResponse(int statusCode, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, java.lang.String rawResponse, T data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getData()
java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getHeaders()
java.lang.String
getRawResponse()
int
getStatusCode()
-
-
-
Constructor Detail
-
ApiResponse
public ApiResponse(int statusCode, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, java.lang.String rawResponse, T data)
- Parameters:
statusCode
- The status code of HTTP responseheaders
- The headers of HTTP responsedata
- The object deserialized from response bod
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
-
getRawResponse
public java.lang.String getRawResponse()
-
getData
public T getData()
-
-