com.kintone.client.api.KintoneResponse Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.api;
import java.util.Map;
/**
* An object containing the response data returned by Kintone APIs.
*/
public class KintoneResponse {
/**
* The HTTP status code.
*/
private final int statusCode;
/**
* The HTTP response headers.
*/
private final Map headers;
/**
* The content of response.
*/
private final T body;
/**
* The error content of response as String.
*/
private final String errorBody;
/**
* The HTTP status code.
*/
@java.lang.SuppressWarnings("all")
public int getStatusCode() {
return this.statusCode;
}
/**
* The HTTP response headers.
*/
@java.lang.SuppressWarnings("all")
public Map getHeaders() {
return this.headers;
}
/**
* The content of response.
*/
@java.lang.SuppressWarnings("all")
public T getBody() {
return this.body;
}
/**
* The error content of response as String.
*/
@java.lang.SuppressWarnings("all")
public String getErrorBody() {
return this.errorBody;
}
@java.beans.ConstructorProperties({"statusCode", "headers", "body", "errorBody"})
@java.lang.SuppressWarnings("all")
public KintoneResponse(final int statusCode, final Map headers, final T body, final String errorBody) {
this.statusCode = statusCode;
this.headers = headers;
this.body = body;
this.errorBody = errorBody;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy