All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blazebit.query.connector.kandji.model.GetDeviceLibraryItems200ResponseLibraryItemsInner Maven / Gradle / Ivy

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.GetDeviceLibraryItems200ResponseLibraryItemsInnerBlueprint;
import com.blazebit.query.connector.kandji.model.GetDeviceLibraryItems200ResponseLibraryItemsInnerComputer;
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.Arrays;
import org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.blazebit.query.connector.kandji.invoker.JSON;


/**
 * GetDeviceLibraryItems200ResponseLibraryItemsInner
 */
@JsonPropertyOrder({
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_BLUEPRINT,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_COMPUTER,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_CONTROL_LOG,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_CONTROL_REPORTED_AT,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_ID,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_ITEM_ID,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_LAST_AUDIT_LOG,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_LAST_AUDIT_RUN,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_LOG,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_NAME,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_REPORTED_AT,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_RULES_PRESENT,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_STATUS,
  GetDeviceLibraryItems200ResponseLibraryItemsInner.JSON_PROPERTY_TYPE
})
@JsonTypeName("getDeviceLibraryItems_200_response_library_items_inner")
@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 GetDeviceLibraryItems200ResponseLibraryItemsInner {
  public static final String JSON_PROPERTY_BLUEPRINT = "blueprint";
  @jakarta.annotation.Nullable
  private GetDeviceLibraryItems200ResponseLibraryItemsInnerBlueprint blueprint;

  public static final String JSON_PROPERTY_COMPUTER = "computer";
  @jakarta.annotation.Nullable
  private GetDeviceLibraryItems200ResponseLibraryItemsInnerComputer computer;

  public static final String JSON_PROPERTY_CONTROL_LOG = "control_log";
  private JsonNullable controlLog = JsonNullable.of(null);

  public static final String JSON_PROPERTY_CONTROL_REPORTED_AT = "control_reported_at";
  private JsonNullable controlReportedAt = JsonNullable.of(null);

  public static final String JSON_PROPERTY_ID = "id";
  @jakarta.annotation.Nullable
  private BigDecimal id;

  public static final String JSON_PROPERTY_ITEM_ID = "item_id";
  @jakarta.annotation.Nullable
  private String itemId;

  public static final String JSON_PROPERTY_LAST_AUDIT_LOG = "last_audit_log";
  private JsonNullable lastAuditLog = JsonNullable.undefined();

  public static final String JSON_PROPERTY_LAST_AUDIT_RUN = "last_audit_run";
  private JsonNullable lastAuditRun = JsonNullable.undefined();

  public static final String JSON_PROPERTY_LOG = "log";
  private JsonNullable log = JsonNullable.undefined();

  public static final String JSON_PROPERTY_NAME = "name";
  @jakarta.annotation.Nullable
  private String name;

  public static final String JSON_PROPERTY_REPORTED_AT = "reported_at";
  private JsonNullable reportedAt = JsonNullable.of(null);

  public static final String JSON_PROPERTY_RULES_PRESENT = "rules_present";
  @jakarta.annotation.Nullable
  private Boolean rulesPresent;

  public static final String JSON_PROPERTY_STATUS = "status";
  @jakarta.annotation.Nullable
  private String status;

  public static final String JSON_PROPERTY_TYPE = "type";
  @jakarta.annotation.Nullable
  private String type;

  public GetDeviceLibraryItems200ResponseLibraryItemsInner() { 
  }

  public GetDeviceLibraryItems200ResponseLibraryItemsInner blueprint(@jakarta.annotation.Nullable GetDeviceLibraryItems200ResponseLibraryItemsInnerBlueprint blueprint) {
    this.blueprint = blueprint;
    return this;
  }

  /**
   * Get blueprint
   * @return blueprint
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_BLUEPRINT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public GetDeviceLibraryItems200ResponseLibraryItemsInnerBlueprint getBlueprint() {
    return blueprint;
  }


  @JsonProperty(JSON_PROPERTY_BLUEPRINT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBlueprint(@jakarta.annotation.Nullable GetDeviceLibraryItems200ResponseLibraryItemsInnerBlueprint blueprint) {
    this.blueprint = blueprint;
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner computer(@jakarta.annotation.Nullable GetDeviceLibraryItems200ResponseLibraryItemsInnerComputer computer) {
    this.computer = computer;
    return this;
  }

  /**
   * Get computer
   * @return computer
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_COMPUTER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public GetDeviceLibraryItems200ResponseLibraryItemsInnerComputer getComputer() {
    return computer;
  }


  @JsonProperty(JSON_PROPERTY_COMPUTER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setComputer(@jakarta.annotation.Nullable GetDeviceLibraryItems200ResponseLibraryItemsInnerComputer computer) {
    this.computer = computer;
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner controlLog(@jakarta.annotation.Nullable Object controlLog) {
    this.controlLog = JsonNullable.of(controlLog);
    return this;
  }

  /**
   * Get controlLog
   * @return controlLog
   */
  @jakarta.annotation.Nullable
  @JsonIgnore

  public Object getControlLog() {
        return controlLog.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_CONTROL_LOG)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getControlLog_JsonNullable() {
    return controlLog;
  }
  
  @JsonProperty(JSON_PROPERTY_CONTROL_LOG)
  public void setControlLog_JsonNullable(JsonNullable controlLog) {
    this.controlLog = controlLog;
  }

  public void setControlLog(@jakarta.annotation.Nullable Object controlLog) {
    this.controlLog = JsonNullable.of(controlLog);
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner controlReportedAt(@jakarta.annotation.Nullable Object controlReportedAt) {
    this.controlReportedAt = JsonNullable.of(controlReportedAt);
    return this;
  }

  /**
   * Get controlReportedAt
   * @return controlReportedAt
   */
  @jakarta.annotation.Nullable
  @JsonIgnore

  public Object getControlReportedAt() {
        return controlReportedAt.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_CONTROL_REPORTED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getControlReportedAt_JsonNullable() {
    return controlReportedAt;
  }
  
  @JsonProperty(JSON_PROPERTY_CONTROL_REPORTED_AT)
  public void setControlReportedAt_JsonNullable(JsonNullable controlReportedAt) {
    this.controlReportedAt = controlReportedAt;
  }

  public void setControlReportedAt(@jakarta.annotation.Nullable Object controlReportedAt) {
    this.controlReportedAt = JsonNullable.of(controlReportedAt);
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner id(@jakarta.annotation.Nullable BigDecimal id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public BigDecimal getId() {
    return id;
  }


  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setId(@jakarta.annotation.Nullable BigDecimal id) {
    this.id = id;
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner itemId(@jakarta.annotation.Nullable String itemId) {
    this.itemId = itemId;
    return this;
  }

  /**
   * Get itemId
   * @return itemId
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ITEM_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getItemId() {
    return itemId;
  }


  @JsonProperty(JSON_PROPERTY_ITEM_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setItemId(@jakarta.annotation.Nullable String itemId) {
    this.itemId = itemId;
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner lastAuditLog(@jakarta.annotation.Nullable String lastAuditLog) {
    this.lastAuditLog = JsonNullable.of(lastAuditLog);
    return this;
  }

  /**
   * Get lastAuditLog
   * @return lastAuditLog
   */
  @jakarta.annotation.Nullable
  @JsonIgnore

  public String getLastAuditLog() {
        return lastAuditLog.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_LAST_AUDIT_LOG)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getLastAuditLog_JsonNullable() {
    return lastAuditLog;
  }
  
  @JsonProperty(JSON_PROPERTY_LAST_AUDIT_LOG)
  public void setLastAuditLog_JsonNullable(JsonNullable lastAuditLog) {
    this.lastAuditLog = lastAuditLog;
  }

  public void setLastAuditLog(@jakarta.annotation.Nullable String lastAuditLog) {
    this.lastAuditLog = JsonNullable.of(lastAuditLog);
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner lastAuditRun(@jakarta.annotation.Nullable String lastAuditRun) {
    this.lastAuditRun = JsonNullable.of(lastAuditRun);
    return this;
  }

  /**
   * Get lastAuditRun
   * @return lastAuditRun
   */
  @jakarta.annotation.Nullable
  @JsonIgnore

  public String getLastAuditRun() {
        return lastAuditRun.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_LAST_AUDIT_RUN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getLastAuditRun_JsonNullable() {
    return lastAuditRun;
  }
  
  @JsonProperty(JSON_PROPERTY_LAST_AUDIT_RUN)
  public void setLastAuditRun_JsonNullable(JsonNullable lastAuditRun) {
    this.lastAuditRun = lastAuditRun;
  }

  public void setLastAuditRun(@jakarta.annotation.Nullable String lastAuditRun) {
    this.lastAuditRun = JsonNullable.of(lastAuditRun);
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner log(@jakarta.annotation.Nullable String log) {
    this.log = JsonNullable.of(log);
    return this;
  }

  /**
   * Get log
   * @return log
   */
  @jakarta.annotation.Nullable
  @JsonIgnore

  public String getLog() {
        return log.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_LOG)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getLog_JsonNullable() {
    return log;
  }
  
  @JsonProperty(JSON_PROPERTY_LOG)
  public void setLog_JsonNullable(JsonNullable log) {
    this.log = log;
  }

  public void setLog(@jakarta.annotation.Nullable String log) {
    this.log = JsonNullable.of(log);
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner name(@jakarta.annotation.Nullable String name) {
    this.name = name;
    return this;
  }

  /**
   * Get name
   * @return name
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getName() {
    return name;
  }


  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setName(@jakarta.annotation.Nullable String name) {
    this.name = name;
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner reportedAt(@jakarta.annotation.Nullable Object reportedAt) {
    this.reportedAt = JsonNullable.of(reportedAt);
    return this;
  }

  /**
   * Get reportedAt
   * @return reportedAt
   */
  @jakarta.annotation.Nullable
  @JsonIgnore

  public Object getReportedAt() {
        return reportedAt.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_REPORTED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getReportedAt_JsonNullable() {
    return reportedAt;
  }
  
  @JsonProperty(JSON_PROPERTY_REPORTED_AT)
  public void setReportedAt_JsonNullable(JsonNullable reportedAt) {
    this.reportedAt = reportedAt;
  }

  public void setReportedAt(@jakarta.annotation.Nullable Object reportedAt) {
    this.reportedAt = JsonNullable.of(reportedAt);
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner rulesPresent(@jakarta.annotation.Nullable Boolean rulesPresent) {
    this.rulesPresent = rulesPresent;
    return this;
  }

  /**
   * Get rulesPresent
   * @return rulesPresent
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_RULES_PRESENT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getRulesPresent() {
    return rulesPresent;
  }


  @JsonProperty(JSON_PROPERTY_RULES_PRESENT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRulesPresent(@jakarta.annotation.Nullable Boolean rulesPresent) {
    this.rulesPresent = rulesPresent;
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner status(@jakarta.annotation.Nullable String status) {
    this.status = status;
    return this;
  }

  /**
   * Get status
   * @return status
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getStatus() {
    return status;
  }


  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStatus(@jakarta.annotation.Nullable String status) {
    this.status = status;
  }


  public GetDeviceLibraryItems200ResponseLibraryItemsInner type(@jakarta.annotation.Nullable String type) {
    this.type = type;
    return this;
  }

  /**
   * Get type
   * @return type
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getType() {
    return type;
  }


  @JsonProperty(JSON_PROPERTY_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setType(@jakarta.annotation.Nullable String type) {
    this.type = type;
  }


  /**
   * Return true if this getDeviceLibraryItems_200_response_library_items_inner object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetDeviceLibraryItems200ResponseLibraryItemsInner getDeviceLibraryItems200ResponseLibraryItemsInner = (GetDeviceLibraryItems200ResponseLibraryItemsInner) o;
    return Objects.equals(this.blueprint, getDeviceLibraryItems200ResponseLibraryItemsInner.blueprint) &&
        Objects.equals(this.computer, getDeviceLibraryItems200ResponseLibraryItemsInner.computer) &&
        equalsNullable(this.controlLog, getDeviceLibraryItems200ResponseLibraryItemsInner.controlLog) &&
        equalsNullable(this.controlReportedAt, getDeviceLibraryItems200ResponseLibraryItemsInner.controlReportedAt) &&
        Objects.equals(this.id, getDeviceLibraryItems200ResponseLibraryItemsInner.id) &&
        Objects.equals(this.itemId, getDeviceLibraryItems200ResponseLibraryItemsInner.itemId) &&
        equalsNullable(this.lastAuditLog, getDeviceLibraryItems200ResponseLibraryItemsInner.lastAuditLog) &&
        equalsNullable(this.lastAuditRun, getDeviceLibraryItems200ResponseLibraryItemsInner.lastAuditRun) &&
        equalsNullable(this.log, getDeviceLibraryItems200ResponseLibraryItemsInner.log) &&
        Objects.equals(this.name, getDeviceLibraryItems200ResponseLibraryItemsInner.name) &&
        equalsNullable(this.reportedAt, getDeviceLibraryItems200ResponseLibraryItemsInner.reportedAt) &&
        Objects.equals(this.rulesPresent, getDeviceLibraryItems200ResponseLibraryItemsInner.rulesPresent) &&
        Objects.equals(this.status, getDeviceLibraryItems200ResponseLibraryItemsInner.status) &&
        Objects.equals(this.type, getDeviceLibraryItems200ResponseLibraryItemsInner.type);
  }

  private static  boolean equalsNullable(JsonNullable a, JsonNullable b) {
    return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
  }

  @Override
  public int hashCode() {
    return Objects.hash(blueprint, computer, hashCodeNullable(controlLog), hashCodeNullable(controlReportedAt), id, itemId, hashCodeNullable(lastAuditLog), hashCodeNullable(lastAuditRun), hashCodeNullable(log), name, hashCodeNullable(reportedAt), rulesPresent, status, type);
  }

  private static  int hashCodeNullable(JsonNullable a) {
    if (a == null) {
      return 1;
    }
    return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetDeviceLibraryItems200ResponseLibraryItemsInner {\n");
    sb.append("    blueprint: ").append(toIndentedString(blueprint)).append("\n");
    sb.append("    computer: ").append(toIndentedString(computer)).append("\n");
    sb.append("    controlLog: ").append(toIndentedString(controlLog)).append("\n");
    sb.append("    controlReportedAt: ").append(toIndentedString(controlReportedAt)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    itemId: ").append(toIndentedString(itemId)).append("\n");
    sb.append("    lastAuditLog: ").append(toIndentedString(lastAuditLog)).append("\n");
    sb.append("    lastAuditRun: ").append(toIndentedString(lastAuditRun)).append("\n");
    sb.append("    log: ").append(toIndentedString(log)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    reportedAt: ").append(toIndentedString(reportedAt)).append("\n");
    sb.append("    rulesPresent: ").append(toIndentedString(rulesPresent)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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    ");
  }

}