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

com.blazebit.query.connector.kandji.model.RenewAdeIntegration200Response 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.CreateAdeIntegration200ResponseBlueprint;
import com.blazebit.query.connector.kandji.model.CreateAdeIntegration200ResponseDefaults;
import com.blazebit.query.connector.kandji.model.CreateAdeIntegration200ResponseDeviceCounts;
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;


/**
 * RenewAdeIntegration200Response
 */
@JsonPropertyOrder({
  RenewAdeIntegration200Response.JSON_PROPERTY_ACCESS_TOKEN_EXPIRY,
  RenewAdeIntegration200Response.JSON_PROPERTY_ADMIN_ID,
  RenewAdeIntegration200Response.JSON_PROPERTY_BLUEPRINT,
  RenewAdeIntegration200Response.JSON_PROPERTY_DAYS_LEFT,
  RenewAdeIntegration200Response.JSON_PROPERTY_DEFAULTS,
  RenewAdeIntegration200Response.JSON_PROPERTY_DEVICE_COUNTS,
  RenewAdeIntegration200Response.JSON_PROPERTY_ID,
  RenewAdeIntegration200Response.JSON_PROPERTY_LAST_DEVICE_SYNC,
  RenewAdeIntegration200Response.JSON_PROPERTY_ORG_ADDRESS,
  RenewAdeIntegration200Response.JSON_PROPERTY_ORG_EMAIL,
  RenewAdeIntegration200Response.JSON_PROPERTY_ORG_NAME,
  RenewAdeIntegration200Response.JSON_PROPERTY_ORG_PHONE,
  RenewAdeIntegration200Response.JSON_PROPERTY_ORG_TYPE,
  RenewAdeIntegration200Response.JSON_PROPERTY_SERVER_NAME,
  RenewAdeIntegration200Response.JSON_PROPERTY_SERVER_UUID,
  RenewAdeIntegration200Response.JSON_PROPERTY_STATUS,
  RenewAdeIntegration200Response.JSON_PROPERTY_STATUS_REASON,
  RenewAdeIntegration200Response.JSON_PROPERTY_STATUS_RECEIVED_AT,
  RenewAdeIntegration200Response.JSON_PROPERTY_STOKEN_FILE_NAME
})
@JsonTypeName("renewAdeIntegration_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 RenewAdeIntegration200Response {
  public static final String JSON_PROPERTY_ACCESS_TOKEN_EXPIRY = "access_token_expiry";
  @jakarta.annotation.Nullable
  private String accessTokenExpiry;

  public static final String JSON_PROPERTY_ADMIN_ID = "admin_id";
  @jakarta.annotation.Nullable
  private String adminId;

  public static final String JSON_PROPERTY_BLUEPRINT = "blueprint";
  @jakarta.annotation.Nullable
  private CreateAdeIntegration200ResponseBlueprint blueprint;

  public static final String JSON_PROPERTY_DAYS_LEFT = "days_left";
  @jakarta.annotation.Nullable
  private BigDecimal daysLeft;

  public static final String JSON_PROPERTY_DEFAULTS = "defaults";
  @jakarta.annotation.Nullable
  private CreateAdeIntegration200ResponseDefaults defaults;

  public static final String JSON_PROPERTY_DEVICE_COUNTS = "device_counts";
  @jakarta.annotation.Nullable
  private CreateAdeIntegration200ResponseDeviceCounts deviceCounts;

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

  public static final String JSON_PROPERTY_LAST_DEVICE_SYNC = "last_device_sync";
  @jakarta.annotation.Nullable
  private String lastDeviceSync;

  public static final String JSON_PROPERTY_ORG_ADDRESS = "org_address";
  @jakarta.annotation.Nullable
  private String orgAddress;

  public static final String JSON_PROPERTY_ORG_EMAIL = "org_email";
  @jakarta.annotation.Nullable
  private String orgEmail;

  public static final String JSON_PROPERTY_ORG_NAME = "org_name";
  @jakarta.annotation.Nullable
  private String orgName;

  public static final String JSON_PROPERTY_ORG_PHONE = "org_phone";
  @jakarta.annotation.Nullable
  private String orgPhone;

  public static final String JSON_PROPERTY_ORG_TYPE = "org_type";
  @jakarta.annotation.Nullable
  private String orgType;

  public static final String JSON_PROPERTY_SERVER_NAME = "server_name";
  @jakarta.annotation.Nullable
  private String serverName;

  public static final String JSON_PROPERTY_SERVER_UUID = "server_uuid";
  @jakarta.annotation.Nullable
  private String serverUuid;

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

  public static final String JSON_PROPERTY_STATUS_REASON = "status_reason";
  private JsonNullable statusReason = JsonNullable.of(null);

  public static final String JSON_PROPERTY_STATUS_RECEIVED_AT = "status_received_at";
  @jakarta.annotation.Nullable
  private String statusReceivedAt;

  public static final String JSON_PROPERTY_STOKEN_FILE_NAME = "stoken_file_name";
  @jakarta.annotation.Nullable
  private String stokenFileName;

  public RenewAdeIntegration200Response() { 
  }

  public RenewAdeIntegration200Response accessTokenExpiry(@jakarta.annotation.Nullable String accessTokenExpiry) {
    this.accessTokenExpiry = accessTokenExpiry;
    return this;
  }

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

  public String getAccessTokenExpiry() {
    return accessTokenExpiry;
  }


  @JsonProperty(JSON_PROPERTY_ACCESS_TOKEN_EXPIRY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAccessTokenExpiry(@jakarta.annotation.Nullable String accessTokenExpiry) {
    this.accessTokenExpiry = accessTokenExpiry;
  }


  public RenewAdeIntegration200Response adminId(@jakarta.annotation.Nullable String adminId) {
    this.adminId = adminId;
    return this;
  }

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

  public String getAdminId() {
    return adminId;
  }


  @JsonProperty(JSON_PROPERTY_ADMIN_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAdminId(@jakarta.annotation.Nullable String adminId) {
    this.adminId = adminId;
  }


  public RenewAdeIntegration200Response blueprint(@jakarta.annotation.Nullable CreateAdeIntegration200ResponseBlueprint blueprint) {
    this.blueprint = blueprint;
    return this;
  }

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

  public CreateAdeIntegration200ResponseBlueprint getBlueprint() {
    return blueprint;
  }


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


  public RenewAdeIntegration200Response daysLeft(@jakarta.annotation.Nullable BigDecimal daysLeft) {
    this.daysLeft = daysLeft;
    return this;
  }

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

  public BigDecimal getDaysLeft() {
    return daysLeft;
  }


  @JsonProperty(JSON_PROPERTY_DAYS_LEFT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDaysLeft(@jakarta.annotation.Nullable BigDecimal daysLeft) {
    this.daysLeft = daysLeft;
  }


  public RenewAdeIntegration200Response defaults(@jakarta.annotation.Nullable CreateAdeIntegration200ResponseDefaults defaults) {
    this.defaults = defaults;
    return this;
  }

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

  public CreateAdeIntegration200ResponseDefaults getDefaults() {
    return defaults;
  }


  @JsonProperty(JSON_PROPERTY_DEFAULTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDefaults(@jakarta.annotation.Nullable CreateAdeIntegration200ResponseDefaults defaults) {
    this.defaults = defaults;
  }


  public RenewAdeIntegration200Response deviceCounts(@jakarta.annotation.Nullable CreateAdeIntegration200ResponseDeviceCounts deviceCounts) {
    this.deviceCounts = deviceCounts;
    return this;
  }

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

  public CreateAdeIntegration200ResponseDeviceCounts getDeviceCounts() {
    return deviceCounts;
  }


  @JsonProperty(JSON_PROPERTY_DEVICE_COUNTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeviceCounts(@jakarta.annotation.Nullable CreateAdeIntegration200ResponseDeviceCounts deviceCounts) {
    this.deviceCounts = deviceCounts;
  }


  public RenewAdeIntegration200Response id(@jakarta.annotation.Nullable String id) {
    this.id = id;
    return this;
  }

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

  public String getId() {
    return id;
  }


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


  public RenewAdeIntegration200Response lastDeviceSync(@jakarta.annotation.Nullable String lastDeviceSync) {
    this.lastDeviceSync = lastDeviceSync;
    return this;
  }

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

  public String getLastDeviceSync() {
    return lastDeviceSync;
  }


  @JsonProperty(JSON_PROPERTY_LAST_DEVICE_SYNC)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLastDeviceSync(@jakarta.annotation.Nullable String lastDeviceSync) {
    this.lastDeviceSync = lastDeviceSync;
  }


  public RenewAdeIntegration200Response orgAddress(@jakarta.annotation.Nullable String orgAddress) {
    this.orgAddress = orgAddress;
    return this;
  }

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

  public String getOrgAddress() {
    return orgAddress;
  }


  @JsonProperty(JSON_PROPERTY_ORG_ADDRESS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOrgAddress(@jakarta.annotation.Nullable String orgAddress) {
    this.orgAddress = orgAddress;
  }


  public RenewAdeIntegration200Response orgEmail(@jakarta.annotation.Nullable String orgEmail) {
    this.orgEmail = orgEmail;
    return this;
  }

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

  public String getOrgEmail() {
    return orgEmail;
  }


  @JsonProperty(JSON_PROPERTY_ORG_EMAIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOrgEmail(@jakarta.annotation.Nullable String orgEmail) {
    this.orgEmail = orgEmail;
  }


  public RenewAdeIntegration200Response orgName(@jakarta.annotation.Nullable String orgName) {
    this.orgName = orgName;
    return this;
  }

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

  public String getOrgName() {
    return orgName;
  }


  @JsonProperty(JSON_PROPERTY_ORG_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOrgName(@jakarta.annotation.Nullable String orgName) {
    this.orgName = orgName;
  }


  public RenewAdeIntegration200Response orgPhone(@jakarta.annotation.Nullable String orgPhone) {
    this.orgPhone = orgPhone;
    return this;
  }

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

  public String getOrgPhone() {
    return orgPhone;
  }


  @JsonProperty(JSON_PROPERTY_ORG_PHONE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOrgPhone(@jakarta.annotation.Nullable String orgPhone) {
    this.orgPhone = orgPhone;
  }


  public RenewAdeIntegration200Response orgType(@jakarta.annotation.Nullable String orgType) {
    this.orgType = orgType;
    return this;
  }

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

  public String getOrgType() {
    return orgType;
  }


  @JsonProperty(JSON_PROPERTY_ORG_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOrgType(@jakarta.annotation.Nullable String orgType) {
    this.orgType = orgType;
  }


  public RenewAdeIntegration200Response serverName(@jakarta.annotation.Nullable String serverName) {
    this.serverName = serverName;
    return this;
  }

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

  public String getServerName() {
    return serverName;
  }


  @JsonProperty(JSON_PROPERTY_SERVER_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setServerName(@jakarta.annotation.Nullable String serverName) {
    this.serverName = serverName;
  }


  public RenewAdeIntegration200Response serverUuid(@jakarta.annotation.Nullable String serverUuid) {
    this.serverUuid = serverUuid;
    return this;
  }

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

  public String getServerUuid() {
    return serverUuid;
  }


  @JsonProperty(JSON_PROPERTY_SERVER_UUID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setServerUuid(@jakarta.annotation.Nullable String serverUuid) {
    this.serverUuid = serverUuid;
  }


  public RenewAdeIntegration200Response 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 RenewAdeIntegration200Response statusReason(@jakarta.annotation.Nullable Object statusReason) {
    this.statusReason = JsonNullable.of(statusReason);
    return this;
  }

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

  public Object getStatusReason() {
        return statusReason.orElse(null);
  }

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

  public JsonNullable getStatusReason_JsonNullable() {
    return statusReason;
  }
  
  @JsonProperty(JSON_PROPERTY_STATUS_REASON)
  public void setStatusReason_JsonNullable(JsonNullable statusReason) {
    this.statusReason = statusReason;
  }

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


  public RenewAdeIntegration200Response statusReceivedAt(@jakarta.annotation.Nullable String statusReceivedAt) {
    this.statusReceivedAt = statusReceivedAt;
    return this;
  }

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

  public String getStatusReceivedAt() {
    return statusReceivedAt;
  }


  @JsonProperty(JSON_PROPERTY_STATUS_RECEIVED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStatusReceivedAt(@jakarta.annotation.Nullable String statusReceivedAt) {
    this.statusReceivedAt = statusReceivedAt;
  }


  public RenewAdeIntegration200Response stokenFileName(@jakarta.annotation.Nullable String stokenFileName) {
    this.stokenFileName = stokenFileName;
    return this;
  }

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

  public String getStokenFileName() {
    return stokenFileName;
  }


  @JsonProperty(JSON_PROPERTY_STOKEN_FILE_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStokenFileName(@jakarta.annotation.Nullable String stokenFileName) {
    this.stokenFileName = stokenFileName;
  }


  /**
   * Return true if this renewAdeIntegration_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;
    }
    RenewAdeIntegration200Response renewAdeIntegration200Response = (RenewAdeIntegration200Response) o;
    return Objects.equals(this.accessTokenExpiry, renewAdeIntegration200Response.accessTokenExpiry) &&
        Objects.equals(this.adminId, renewAdeIntegration200Response.adminId) &&
        Objects.equals(this.blueprint, renewAdeIntegration200Response.blueprint) &&
        Objects.equals(this.daysLeft, renewAdeIntegration200Response.daysLeft) &&
        Objects.equals(this.defaults, renewAdeIntegration200Response.defaults) &&
        Objects.equals(this.deviceCounts, renewAdeIntegration200Response.deviceCounts) &&
        Objects.equals(this.id, renewAdeIntegration200Response.id) &&
        Objects.equals(this.lastDeviceSync, renewAdeIntegration200Response.lastDeviceSync) &&
        Objects.equals(this.orgAddress, renewAdeIntegration200Response.orgAddress) &&
        Objects.equals(this.orgEmail, renewAdeIntegration200Response.orgEmail) &&
        Objects.equals(this.orgName, renewAdeIntegration200Response.orgName) &&
        Objects.equals(this.orgPhone, renewAdeIntegration200Response.orgPhone) &&
        Objects.equals(this.orgType, renewAdeIntegration200Response.orgType) &&
        Objects.equals(this.serverName, renewAdeIntegration200Response.serverName) &&
        Objects.equals(this.serverUuid, renewAdeIntegration200Response.serverUuid) &&
        Objects.equals(this.status, renewAdeIntegration200Response.status) &&
        equalsNullable(this.statusReason, renewAdeIntegration200Response.statusReason) &&
        Objects.equals(this.statusReceivedAt, renewAdeIntegration200Response.statusReceivedAt) &&
        Objects.equals(this.stokenFileName, renewAdeIntegration200Response.stokenFileName);
  }

  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(accessTokenExpiry, adminId, blueprint, daysLeft, defaults, deviceCounts, id, lastDeviceSync, orgAddress, orgEmail, orgName, orgPhone, orgType, serverName, serverUuid, status, hashCodeNullable(statusReason), statusReceivedAt, stokenFileName);
  }

  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 RenewAdeIntegration200Response {\n");
    sb.append("    accessTokenExpiry: ").append(toIndentedString(accessTokenExpiry)).append("\n");
    sb.append("    adminId: ").append(toIndentedString(adminId)).append("\n");
    sb.append("    blueprint: ").append(toIndentedString(blueprint)).append("\n");
    sb.append("    daysLeft: ").append(toIndentedString(daysLeft)).append("\n");
    sb.append("    defaults: ").append(toIndentedString(defaults)).append("\n");
    sb.append("    deviceCounts: ").append(toIndentedString(deviceCounts)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    lastDeviceSync: ").append(toIndentedString(lastDeviceSync)).append("\n");
    sb.append("    orgAddress: ").append(toIndentedString(orgAddress)).append("\n");
    sb.append("    orgEmail: ").append(toIndentedString(orgEmail)).append("\n");
    sb.append("    orgName: ").append(toIndentedString(orgName)).append("\n");
    sb.append("    orgPhone: ").append(toIndentedString(orgPhone)).append("\n");
    sb.append("    orgType: ").append(toIndentedString(orgType)).append("\n");
    sb.append("    serverName: ").append(toIndentedString(serverName)).append("\n");
    sb.append("    serverUuid: ").append(toIndentedString(serverUuid)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    statusReason: ").append(toIndentedString(statusReason)).append("\n");
    sb.append("    statusReceivedAt: ").append(toIndentedString(statusReceivedAt)).append("\n");
    sb.append("    stokenFileName: ").append(toIndentedString(stokenFileName)).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    ");
  }

}