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

com.blazebit.query.connector.kandji.model.Certificates200ResponseDataInner 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.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.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;


/**
 * Certificates200ResponseDataInner
 */
@JsonPropertyOrder({
  Certificates200ResponseDataInner.JSON_PROPERTY_ASSET_TAG,
  Certificates200ResponseDataInner.JSON_PROPERTY_BLUEPRINT_ID,
  Certificates200ResponseDataInner.JSON_PROPERTY_BLUEPRINT_NAME,
  Certificates200ResponseDataInner.JSON_PROPERTY_COMMON_NAME,
  Certificates200ResponseDataInner.JSON_PROPERTY_DEVICE_FAMILY,
  Certificates200ResponseDataInner.JSON_PROPERTY_DEVICE_NAME,
  Certificates200ResponseDataInner.JSON_PROPERTY_DEVICE_USER_EMAIL,
  Certificates200ResponseDataInner.JSON_PROPERTY_DEVICE_USER_ID,
  Certificates200ResponseDataInner.JSON_PROPERTY_DEVICE_USER_NAME,
  Certificates200ResponseDataInner.JSON_PROPERTY_DEVICE_ID,
  Certificates200ResponseDataInner.JSON_PROPERTY_IDENTITY_CERTIFICATE,
  Certificates200ResponseDataInner.JSON_PROPERTY_LAST_CHANGED_AT,
  Certificates200ResponseDataInner.JSON_PROPERTY_MODEL_ID,
  Certificates200ResponseDataInner.JSON_PROPERTY_SERIAL_NUMBER,
  Certificates200ResponseDataInner.JSON_PROPERTY_UPDATED_AT
})
@JsonTypeName("certificates_200_response_data_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 Certificates200ResponseDataInner {
  public static final String JSON_PROPERTY_ASSET_TAG = "asset_tag";
  @jakarta.annotation.Nullable
  private String assetTag;

  public static final String JSON_PROPERTY_BLUEPRINT_ID = "blueprint_id";
  @jakarta.annotation.Nullable
  private String blueprintId;

  public static final String JSON_PROPERTY_BLUEPRINT_NAME = "blueprint_name";
  @jakarta.annotation.Nullable
  private String blueprintName;

  public static final String JSON_PROPERTY_COMMON_NAME = "common_name";
  @jakarta.annotation.Nullable
  private String commonName;

  public static final String JSON_PROPERTY_DEVICE_FAMILY = "device__family";
  @jakarta.annotation.Nullable
  private String deviceFamily;

  public static final String JSON_PROPERTY_DEVICE_NAME = "device__name";
  @jakarta.annotation.Nullable
  private String deviceName;

  public static final String JSON_PROPERTY_DEVICE_USER_EMAIL = "device__user_email";
  @jakarta.annotation.Nullable
  private String deviceUserEmail;

  public static final String JSON_PROPERTY_DEVICE_USER_ID = "device__user_id";
  @jakarta.annotation.Nullable
  private String deviceUserId;

  public static final String JSON_PROPERTY_DEVICE_USER_NAME = "device__user_name";
  @jakarta.annotation.Nullable
  private String deviceUserName;

  public static final String JSON_PROPERTY_DEVICE_ID = "device_id";
  @jakarta.annotation.Nullable
  private String deviceId;

  public static final String JSON_PROPERTY_IDENTITY_CERTIFICATE = "identity_certificate";
  @jakarta.annotation.Nullable
  private Boolean identityCertificate;

  public static final String JSON_PROPERTY_LAST_CHANGED_AT = "last_changed_at";
  private JsonNullable lastChangedAt = JsonNullable.of(null);

  public static final String JSON_PROPERTY_MODEL_ID = "model_id";
  private JsonNullable modelId = JsonNullable.of(null);

  public static final String JSON_PROPERTY_SERIAL_NUMBER = "serial_number";
  @jakarta.annotation.Nullable
  private String serialNumber;

  public static final String JSON_PROPERTY_UPDATED_AT = "updated_at";
  @jakarta.annotation.Nullable
  private String updatedAt;

  public Certificates200ResponseDataInner() { 
  }

  public Certificates200ResponseDataInner assetTag(@jakarta.annotation.Nullable String assetTag) {
    this.assetTag = assetTag;
    return this;
  }

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

  public String getAssetTag() {
    return assetTag;
  }


  @JsonProperty(JSON_PROPERTY_ASSET_TAG)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAssetTag(@jakarta.annotation.Nullable String assetTag) {
    this.assetTag = assetTag;
  }


  public Certificates200ResponseDataInner blueprintId(@jakarta.annotation.Nullable String blueprintId) {
    this.blueprintId = blueprintId;
    return this;
  }

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

  public String getBlueprintId() {
    return blueprintId;
  }


  @JsonProperty(JSON_PROPERTY_BLUEPRINT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBlueprintId(@jakarta.annotation.Nullable String blueprintId) {
    this.blueprintId = blueprintId;
  }


  public Certificates200ResponseDataInner blueprintName(@jakarta.annotation.Nullable String blueprintName) {
    this.blueprintName = blueprintName;
    return this;
  }

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

  public String getBlueprintName() {
    return blueprintName;
  }


  @JsonProperty(JSON_PROPERTY_BLUEPRINT_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBlueprintName(@jakarta.annotation.Nullable String blueprintName) {
    this.blueprintName = blueprintName;
  }


  public Certificates200ResponseDataInner commonName(@jakarta.annotation.Nullable String commonName) {
    this.commonName = commonName;
    return this;
  }

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

  public String getCommonName() {
    return commonName;
  }


  @JsonProperty(JSON_PROPERTY_COMMON_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCommonName(@jakarta.annotation.Nullable String commonName) {
    this.commonName = commonName;
  }


  public Certificates200ResponseDataInner deviceFamily(@jakarta.annotation.Nullable String deviceFamily) {
    this.deviceFamily = deviceFamily;
    return this;
  }

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

  public String getDeviceFamily() {
    return deviceFamily;
  }


  @JsonProperty(JSON_PROPERTY_DEVICE_FAMILY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeviceFamily(@jakarta.annotation.Nullable String deviceFamily) {
    this.deviceFamily = deviceFamily;
  }


  public Certificates200ResponseDataInner deviceName(@jakarta.annotation.Nullable String deviceName) {
    this.deviceName = deviceName;
    return this;
  }

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

  public String getDeviceName() {
    return deviceName;
  }


  @JsonProperty(JSON_PROPERTY_DEVICE_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeviceName(@jakarta.annotation.Nullable String deviceName) {
    this.deviceName = deviceName;
  }


  public Certificates200ResponseDataInner deviceUserEmail(@jakarta.annotation.Nullable String deviceUserEmail) {
    this.deviceUserEmail = deviceUserEmail;
    return this;
  }

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

  public String getDeviceUserEmail() {
    return deviceUserEmail;
  }


  @JsonProperty(JSON_PROPERTY_DEVICE_USER_EMAIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeviceUserEmail(@jakarta.annotation.Nullable String deviceUserEmail) {
    this.deviceUserEmail = deviceUserEmail;
  }


  public Certificates200ResponseDataInner deviceUserId(@jakarta.annotation.Nullable String deviceUserId) {
    this.deviceUserId = deviceUserId;
    return this;
  }

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

  public String getDeviceUserId() {
    return deviceUserId;
  }


  @JsonProperty(JSON_PROPERTY_DEVICE_USER_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeviceUserId(@jakarta.annotation.Nullable String deviceUserId) {
    this.deviceUserId = deviceUserId;
  }


  public Certificates200ResponseDataInner deviceUserName(@jakarta.annotation.Nullable String deviceUserName) {
    this.deviceUserName = deviceUserName;
    return this;
  }

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

  public String getDeviceUserName() {
    return deviceUserName;
  }


  @JsonProperty(JSON_PROPERTY_DEVICE_USER_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeviceUserName(@jakarta.annotation.Nullable String deviceUserName) {
    this.deviceUserName = deviceUserName;
  }


  public Certificates200ResponseDataInner deviceId(@jakarta.annotation.Nullable String deviceId) {
    this.deviceId = deviceId;
    return this;
  }

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

  public String getDeviceId() {
    return deviceId;
  }


  @JsonProperty(JSON_PROPERTY_DEVICE_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeviceId(@jakarta.annotation.Nullable String deviceId) {
    this.deviceId = deviceId;
  }


  public Certificates200ResponseDataInner identityCertificate(@jakarta.annotation.Nullable Boolean identityCertificate) {
    this.identityCertificate = identityCertificate;
    return this;
  }

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

  public Boolean getIdentityCertificate() {
    return identityCertificate;
  }


  @JsonProperty(JSON_PROPERTY_IDENTITY_CERTIFICATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setIdentityCertificate(@jakarta.annotation.Nullable Boolean identityCertificate) {
    this.identityCertificate = identityCertificate;
  }


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

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

  public Object getLastChangedAt() {
        return lastChangedAt.orElse(null);
  }

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

  public JsonNullable getLastChangedAt_JsonNullable() {
    return lastChangedAt;
  }
  
  @JsonProperty(JSON_PROPERTY_LAST_CHANGED_AT)
  public void setLastChangedAt_JsonNullable(JsonNullable lastChangedAt) {
    this.lastChangedAt = lastChangedAt;
  }

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


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

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

  public Object getModelId() {
        return modelId.orElse(null);
  }

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

  public JsonNullable getModelId_JsonNullable() {
    return modelId;
  }
  
  @JsonProperty(JSON_PROPERTY_MODEL_ID)
  public void setModelId_JsonNullable(JsonNullable modelId) {
    this.modelId = modelId;
  }

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


  public Certificates200ResponseDataInner serialNumber(@jakarta.annotation.Nullable String serialNumber) {
    this.serialNumber = serialNumber;
    return this;
  }

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

  public String getSerialNumber() {
    return serialNumber;
  }


  @JsonProperty(JSON_PROPERTY_SERIAL_NUMBER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setSerialNumber(@jakarta.annotation.Nullable String serialNumber) {
    this.serialNumber = serialNumber;
  }


  public Certificates200ResponseDataInner updatedAt(@jakarta.annotation.Nullable String updatedAt) {
    this.updatedAt = updatedAt;
    return this;
  }

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

  public String getUpdatedAt() {
    return updatedAt;
  }


  @JsonProperty(JSON_PROPERTY_UPDATED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setUpdatedAt(@jakarta.annotation.Nullable String updatedAt) {
    this.updatedAt = updatedAt;
  }


  /**
   * Return true if this certificates_200_response_data_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;
    }
    Certificates200ResponseDataInner certificates200ResponseDataInner = (Certificates200ResponseDataInner) o;
    return Objects.equals(this.assetTag, certificates200ResponseDataInner.assetTag) &&
        Objects.equals(this.blueprintId, certificates200ResponseDataInner.blueprintId) &&
        Objects.equals(this.blueprintName, certificates200ResponseDataInner.blueprintName) &&
        Objects.equals(this.commonName, certificates200ResponseDataInner.commonName) &&
        Objects.equals(this.deviceFamily, certificates200ResponseDataInner.deviceFamily) &&
        Objects.equals(this.deviceName, certificates200ResponseDataInner.deviceName) &&
        Objects.equals(this.deviceUserEmail, certificates200ResponseDataInner.deviceUserEmail) &&
        Objects.equals(this.deviceUserId, certificates200ResponseDataInner.deviceUserId) &&
        Objects.equals(this.deviceUserName, certificates200ResponseDataInner.deviceUserName) &&
        Objects.equals(this.deviceId, certificates200ResponseDataInner.deviceId) &&
        Objects.equals(this.identityCertificate, certificates200ResponseDataInner.identityCertificate) &&
        equalsNullable(this.lastChangedAt, certificates200ResponseDataInner.lastChangedAt) &&
        equalsNullable(this.modelId, certificates200ResponseDataInner.modelId) &&
        Objects.equals(this.serialNumber, certificates200ResponseDataInner.serialNumber) &&
        Objects.equals(this.updatedAt, certificates200ResponseDataInner.updatedAt);
  }

  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(assetTag, blueprintId, blueprintName, commonName, deviceFamily, deviceName, deviceUserEmail, deviceUserId, deviceUserName, deviceId, identityCertificate, hashCodeNullable(lastChangedAt), hashCodeNullable(modelId), serialNumber, updatedAt);
  }

  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 Certificates200ResponseDataInner {\n");
    sb.append("    assetTag: ").append(toIndentedString(assetTag)).append("\n");
    sb.append("    blueprintId: ").append(toIndentedString(blueprintId)).append("\n");
    sb.append("    blueprintName: ").append(toIndentedString(blueprintName)).append("\n");
    sb.append("    commonName: ").append(toIndentedString(commonName)).append("\n");
    sb.append("    deviceFamily: ").append(toIndentedString(deviceFamily)).append("\n");
    sb.append("    deviceName: ").append(toIndentedString(deviceName)).append("\n");
    sb.append("    deviceUserEmail: ").append(toIndentedString(deviceUserEmail)).append("\n");
    sb.append("    deviceUserId: ").append(toIndentedString(deviceUserId)).append("\n");
    sb.append("    deviceUserName: ").append(toIndentedString(deviceUserName)).append("\n");
    sb.append("    deviceId: ").append(toIndentedString(deviceId)).append("\n");
    sb.append("    identityCertificate: ").append(toIndentedString(identityCertificate)).append("\n");
    sb.append("    lastChangedAt: ").append(toIndentedString(lastChangedAt)).append("\n");
    sb.append("    modelId: ").append(toIndentedString(modelId)).append("\n");
    sb.append("    serialNumber: ").append(toIndentedString(serialNumber)).append("\n");
    sb.append("    updatedAt: ").append(toIndentedString(updatedAt)).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    ");
  }

}