Package com.datadog.api.client
Class ApiResponse<T>
java.lang.Object
com.datadog.api.client.ApiResponse<T>
- Type Parameters:
T- The type of data that is deserialized from response body
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ApiResponse<T>
extends Object
API response returned by API call.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ApiResponse
- Parameters:
statusCode- The status code of HTTP responseheaders- The headers of HTTP response
-
ApiResponse
- Parameters:
statusCode- The status code of HTTP responseheaders- The headers of HTTP responsedata- The object deserialized from response bod
-
-
Method Details
-
getStatusCode
public int getStatusCode()Get the status code- Returns:
- status code
-
getHeaders
Get the headers- Returns:
- map of headers
-
getData
Get the data- Returns:
- data
-