
com.blazebit.query.connector.kandji.model.LocalUsers200Response Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blaze-query-connector-kandji-jersey3 Show documentation
Show all versions of blaze-query-connector-kandji-jersey3 Show documentation
A multi-platform querying library
The newest version!
/*
* Kandji API
* # Welcome to the Kandji API Documentation You can find your API URL in Settings > Access. The API URL will follow the below formats. - US - `https://SubDomain.api.kandji.io` - EU - `https://SubDomain.api.eu.kandji.io` For information on how to obtain an API token, please refer to the following support article. [https://support.kandji.io/api](https://support.kandji.io/api) #### Rate Limit The Kandji API currently has an API rate limit of 10,000 requests per hour per customer. #### Request Methods HTTP request methods supported by the Kandji API. | Method | Definition | | --- | --- | | GET | The `GET` method requests a representation of the specified resource. | | POST | The `POST` method submits an entity to the specified resource. | | PATCH | The `PATCH` method applies partial modifications to a resource. | | DELETE | The `DELETE` method deletes the specified resource. | #### Response codes Not all response codes apply to every endpoint. | Code | Response | | --- | --- | | 200 | OK | | 201 | Created | | 204 | No content | | | Typical response when sending the DELETE method. | | 400 | Bad Request | | | \"Command already running\" - The command may already be running in a _Pending_ state waiting on the device. | | | \"Command is not allowed for current device\" - The command may not be compatible with the target device. | | | \"JSON parse error - Expecting ',' delimiter: line 3 column 2 (char 65)\" | | 401 | Unauthorized | | | This error can occur if the token is incorrect, was revoked, or the token has expired. | | 403 | Forbidden | | | The request was understood but cannot be authorized. | | 404 | Not found | | | Unable to locate the resource in the Kandji tenant. | | 415 | Unsupported Media Type | | | The request contains a media type which the server or resource does not support. | | 500 | Internal server error | | 503 | Service unavailable | | | This error can occur if a file upload is still being processed via the custom apps API. | #### Data structure The API returns all structured responses in JSON schema format. #### Examples Code examples using the API can be found in the Kandji support [GitHub](https://github.com/kandji-inc/support/tree/main/api-tools).
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.blazebit.query.connector.kandji.model;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.blazebit.query.connector.kandji.model.LocalUsers200ResponseDataInner;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.blazebit.query.connector.kandji.invoker.JSON;
/**
* LocalUsers200Response
*/
@JsonPropertyOrder({
LocalUsers200Response.JSON_PROPERTY_CURSOR,
LocalUsers200Response.JSON_PROPERTY_DATA,
LocalUsers200Response.JSON_PROPERTY_LIMIT,
LocalUsers200Response.JSON_PROPERTY_OFFSET,
LocalUsers200Response.JSON_PROPERTY_TOTAL
})
@JsonTypeName("localUsers_200_response")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-30T07:19:31.168100307Z[Etc/UTC]", comments = "Generator version: 7.10.0")
public class LocalUsers200Response {
public static final String JSON_PROPERTY_CURSOR = "cursor";
@jakarta.annotation.Nullable
private String cursor;
public static final String JSON_PROPERTY_DATA = "data";
@jakarta.annotation.Nullable
private List data = new ArrayList<>();
public static final String JSON_PROPERTY_LIMIT = "limit";
@jakarta.annotation.Nullable
private BigDecimal limit;
public static final String JSON_PROPERTY_OFFSET = "offset";
@jakarta.annotation.Nullable
private BigDecimal offset;
public static final String JSON_PROPERTY_TOTAL = "total";
@jakarta.annotation.Nullable
private BigDecimal total;
public LocalUsers200Response() {
}
public LocalUsers200Response cursor(@jakarta.annotation.Nullable String cursor) {
this.cursor = cursor;
return this;
}
/**
* Get cursor
* @return cursor
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CURSOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCursor() {
return cursor;
}
@JsonProperty(JSON_PROPERTY_CURSOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCursor(@jakarta.annotation.Nullable String cursor) {
this.cursor = cursor;
}
public LocalUsers200Response data(@jakarta.annotation.Nullable List data) {
this.data = data;
return this;
}
public LocalUsers200Response addDataItem(LocalUsers200ResponseDataInner dataItem) {
if (this.data == null) {
this.data = new ArrayList<>();
}
this.data.add(dataItem);
return this;
}
/**
* Get data
* @return data
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getData() {
return data;
}
@JsonProperty(JSON_PROPERTY_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setData(@jakarta.annotation.Nullable List data) {
this.data = data;
}
public LocalUsers200Response limit(@jakarta.annotation.Nullable BigDecimal limit) {
this.limit = limit;
return this;
}
/**
* Get limit
* @return limit
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LIMIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getLimit() {
return limit;
}
@JsonProperty(JSON_PROPERTY_LIMIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLimit(@jakarta.annotation.Nullable BigDecimal limit) {
this.limit = limit;
}
public LocalUsers200Response offset(@jakarta.annotation.Nullable BigDecimal offset) {
this.offset = offset;
return this;
}
/**
* Get offset
* @return offset
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_OFFSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getOffset() {
return offset;
}
@JsonProperty(JSON_PROPERTY_OFFSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOffset(@jakarta.annotation.Nullable BigDecimal offset) {
this.offset = offset;
}
public LocalUsers200Response total(@jakarta.annotation.Nullable BigDecimal total) {
this.total = total;
return this;
}
/**
* Get total
* @return total
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getTotal() {
return total;
}
@JsonProperty(JSON_PROPERTY_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotal(@jakarta.annotation.Nullable BigDecimal total) {
this.total = total;
}
/**
* Return true if this localUsers_200_response object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LocalUsers200Response localUsers200Response = (LocalUsers200Response) o;
return Objects.equals(this.cursor, localUsers200Response.cursor) &&
Objects.equals(this.data, localUsers200Response.data) &&
Objects.equals(this.limit, localUsers200Response.limit) &&
Objects.equals(this.offset, localUsers200Response.offset) &&
Objects.equals(this.total, localUsers200Response.total);
}
@Override
public int hashCode() {
return Objects.hash(cursor, data, limit, offset, total);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LocalUsers200Response {\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy