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

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


/**
 * GetDeviceActivity200ResponseActivityResultsInnerDetails
 */
@JsonPropertyOrder({
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_ATTEMPTS,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_BLUEPRINT_NAME,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_COMMAND_TYPE,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_DATE_COMPLETED,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_DATE_REQUESTED,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_ENROLLMENT_TYPE,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_ERROR_CHAIN,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_FROM,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_IS_SILENT,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_LAST_PUSHED,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_METADATA,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_PRIORITY,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_PROFILE_NAME,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_PROFILE_UUID,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_REQUEST_REQUIRES_NETWORK_TETHER,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_REQUEST_TYPE,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_STATUS,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_TO,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_USER,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_USERNAME,
  GetDeviceActivity200ResponseActivityResultsInnerDetails.JSON_PROPERTY_UUID
})
@JsonTypeName("getDeviceActivity_200_response_activity_results_inner_details")
@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 GetDeviceActivity200ResponseActivityResultsInnerDetails {
  public static final String JSON_PROPERTY_ATTEMPTS = "attempts";
  @jakarta.annotation.Nullable
  private BigDecimal attempts;

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

  public static final String JSON_PROPERTY_COMMAND_TYPE = "command_type";
  @jakarta.annotation.Nullable
  private String commandType;

  public static final String JSON_PROPERTY_DATE_COMPLETED = "date_completed";
  @jakarta.annotation.Nullable
  private String dateCompleted;

  public static final String JSON_PROPERTY_DATE_REQUESTED = "date_requested";
  @jakarta.annotation.Nullable
  private String dateRequested;

  public static final String JSON_PROPERTY_ENROLLMENT_TYPE = "enrollment_type";
  @jakarta.annotation.Nullable
  private String enrollmentType;

  public static final String JSON_PROPERTY_ERROR_CHAIN = "error_chain";
  @jakarta.annotation.Nullable
  private List errorChain = new ArrayList<>();

  public static final String JSON_PROPERTY_FROM = "from";
  @jakarta.annotation.Nullable
  private String from;

  public static final String JSON_PROPERTY_IS_SILENT = "is_silent";
  @jakarta.annotation.Nullable
  private Boolean isSilent;

  public static final String JSON_PROPERTY_LAST_PUSHED = "last_pushed";
  @jakarta.annotation.Nullable
  private String lastPushed;

  public static final String JSON_PROPERTY_METADATA = "metadata";
  @jakarta.annotation.Nullable
  private GetDeviceActivity200ResponseActivityResultsInnerDetailsMetadata metadata;

  public static final String JSON_PROPERTY_PRIORITY = "priority";
  @jakarta.annotation.Nullable
  private BigDecimal priority;

  public static final String JSON_PROPERTY_PROFILE_NAME = "profile_name";
  private JsonNullable profileName = JsonNullable.of(null);

  public static final String JSON_PROPERTY_PROFILE_UUID = "profile_uuid";
  private JsonNullable profileUuid = JsonNullable.of(null);

  public static final String JSON_PROPERTY_REQUEST_REQUIRES_NETWORK_TETHER = "request_requires_network_tether";
  @jakarta.annotation.Nullable
  private Boolean requestRequiresNetworkTether;

  public static final String JSON_PROPERTY_REQUEST_TYPE = "request_type";
  @jakarta.annotation.Nullable
  private String requestType;

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

  public static final String JSON_PROPERTY_TO = "to";
  @jakarta.annotation.Nullable
  private String to;

  public static final String JSON_PROPERTY_USER = "user";
  private JsonNullable user = JsonNullable.of(null);

  public static final String JSON_PROPERTY_USERNAME = "username";
  private JsonNullable username = JsonNullable.of(null);

  public static final String JSON_PROPERTY_UUID = "uuid";
  @jakarta.annotation.Nullable
  private String uuid;

  public GetDeviceActivity200ResponseActivityResultsInnerDetails() { 
  }

  public GetDeviceActivity200ResponseActivityResultsInnerDetails attempts(@jakarta.annotation.Nullable BigDecimal attempts) {
    this.attempts = attempts;
    return this;
  }

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

  public BigDecimal getAttempts() {
    return attempts;
  }


  @JsonProperty(JSON_PROPERTY_ATTEMPTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAttempts(@jakarta.annotation.Nullable BigDecimal attempts) {
    this.attempts = attempts;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails 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 GetDeviceActivity200ResponseActivityResultsInnerDetails commandType(@jakarta.annotation.Nullable String commandType) {
    this.commandType = commandType;
    return this;
  }

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

  public String getCommandType() {
    return commandType;
  }


  @JsonProperty(JSON_PROPERTY_COMMAND_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCommandType(@jakarta.annotation.Nullable String commandType) {
    this.commandType = commandType;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails dateCompleted(@jakarta.annotation.Nullable String dateCompleted) {
    this.dateCompleted = dateCompleted;
    return this;
  }

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

  public String getDateCompleted() {
    return dateCompleted;
  }


  @JsonProperty(JSON_PROPERTY_DATE_COMPLETED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDateCompleted(@jakarta.annotation.Nullable String dateCompleted) {
    this.dateCompleted = dateCompleted;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails dateRequested(@jakarta.annotation.Nullable String dateRequested) {
    this.dateRequested = dateRequested;
    return this;
  }

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

  public String getDateRequested() {
    return dateRequested;
  }


  @JsonProperty(JSON_PROPERTY_DATE_REQUESTED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDateRequested(@jakarta.annotation.Nullable String dateRequested) {
    this.dateRequested = dateRequested;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails enrollmentType(@jakarta.annotation.Nullable String enrollmentType) {
    this.enrollmentType = enrollmentType;
    return this;
  }

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

  public String getEnrollmentType() {
    return enrollmentType;
  }


  @JsonProperty(JSON_PROPERTY_ENROLLMENT_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEnrollmentType(@jakarta.annotation.Nullable String enrollmentType) {
    this.enrollmentType = enrollmentType;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails errorChain(@jakarta.annotation.Nullable List errorChain) {
    this.errorChain = errorChain;
    return this;
  }

  public GetDeviceActivity200ResponseActivityResultsInnerDetails addErrorChainItem(Object errorChainItem) {
    if (this.errorChain == null) {
      this.errorChain = new ArrayList<>();
    }
    this.errorChain.add(errorChainItem);
    return this;
  }

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

  public List getErrorChain() {
    return errorChain;
  }


  @JsonProperty(JSON_PROPERTY_ERROR_CHAIN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setErrorChain(@jakarta.annotation.Nullable List errorChain) {
    this.errorChain = errorChain;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails from(@jakarta.annotation.Nullable String from) {
    this.from = from;
    return this;
  }

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

  public String getFrom() {
    return from;
  }


  @JsonProperty(JSON_PROPERTY_FROM)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFrom(@jakarta.annotation.Nullable String from) {
    this.from = from;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails isSilent(@jakarta.annotation.Nullable Boolean isSilent) {
    this.isSilent = isSilent;
    return this;
  }

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

  public Boolean getIsSilent() {
    return isSilent;
  }


  @JsonProperty(JSON_PROPERTY_IS_SILENT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setIsSilent(@jakarta.annotation.Nullable Boolean isSilent) {
    this.isSilent = isSilent;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails lastPushed(@jakarta.annotation.Nullable String lastPushed) {
    this.lastPushed = lastPushed;
    return this;
  }

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

  public String getLastPushed() {
    return lastPushed;
  }


  @JsonProperty(JSON_PROPERTY_LAST_PUSHED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLastPushed(@jakarta.annotation.Nullable String lastPushed) {
    this.lastPushed = lastPushed;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails metadata(@jakarta.annotation.Nullable GetDeviceActivity200ResponseActivityResultsInnerDetailsMetadata metadata) {
    this.metadata = metadata;
    return this;
  }

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

  public GetDeviceActivity200ResponseActivityResultsInnerDetailsMetadata getMetadata() {
    return metadata;
  }


  @JsonProperty(JSON_PROPERTY_METADATA)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMetadata(@jakarta.annotation.Nullable GetDeviceActivity200ResponseActivityResultsInnerDetailsMetadata metadata) {
    this.metadata = metadata;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails priority(@jakarta.annotation.Nullable BigDecimal priority) {
    this.priority = priority;
    return this;
  }

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

  public BigDecimal getPriority() {
    return priority;
  }


  @JsonProperty(JSON_PROPERTY_PRIORITY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setPriority(@jakarta.annotation.Nullable BigDecimal priority) {
    this.priority = priority;
  }


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

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

  public Object getProfileName() {
        return profileName.orElse(null);
  }

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

  public JsonNullable getProfileName_JsonNullable() {
    return profileName;
  }
  
  @JsonProperty(JSON_PROPERTY_PROFILE_NAME)
  public void setProfileName_JsonNullable(JsonNullable profileName) {
    this.profileName = profileName;
  }

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


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

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

  public Object getProfileUuid() {
        return profileUuid.orElse(null);
  }

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

  public JsonNullable getProfileUuid_JsonNullable() {
    return profileUuid;
  }
  
  @JsonProperty(JSON_PROPERTY_PROFILE_UUID)
  public void setProfileUuid_JsonNullable(JsonNullable profileUuid) {
    this.profileUuid = profileUuid;
  }

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


  public GetDeviceActivity200ResponseActivityResultsInnerDetails requestRequiresNetworkTether(@jakarta.annotation.Nullable Boolean requestRequiresNetworkTether) {
    this.requestRequiresNetworkTether = requestRequiresNetworkTether;
    return this;
  }

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

  public Boolean getRequestRequiresNetworkTether() {
    return requestRequiresNetworkTether;
  }


  @JsonProperty(JSON_PROPERTY_REQUEST_REQUIRES_NETWORK_TETHER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRequestRequiresNetworkTether(@jakarta.annotation.Nullable Boolean requestRequiresNetworkTether) {
    this.requestRequiresNetworkTether = requestRequiresNetworkTether;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails requestType(@jakarta.annotation.Nullable String requestType) {
    this.requestType = requestType;
    return this;
  }

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

  public String getRequestType() {
    return requestType;
  }


  @JsonProperty(JSON_PROPERTY_REQUEST_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRequestType(@jakarta.annotation.Nullable String requestType) {
    this.requestType = requestType;
  }


  public GetDeviceActivity200ResponseActivityResultsInnerDetails status(@jakarta.annotation.Nullable BigDecimal status) {
    this.status = status;
    return this;
  }

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

  public BigDecimal getStatus() {
    return status;
  }


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


  public GetDeviceActivity200ResponseActivityResultsInnerDetails to(@jakarta.annotation.Nullable String to) {
    this.to = to;
    return this;
  }

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

  public String getTo() {
    return to;
  }


  @JsonProperty(JSON_PROPERTY_TO)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTo(@jakarta.annotation.Nullable String to) {
    this.to = to;
  }


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

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

  public Object getUser() {
        return user.orElse(null);
  }

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

  public JsonNullable getUser_JsonNullable() {
    return user;
  }
  
  @JsonProperty(JSON_PROPERTY_USER)
  public void setUser_JsonNullable(JsonNullable user) {
    this.user = user;
  }

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


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

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

  public Object getUsername() {
        return username.orElse(null);
  }

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

  public JsonNullable getUsername_JsonNullable() {
    return username;
  }
  
  @JsonProperty(JSON_PROPERTY_USERNAME)
  public void setUsername_JsonNullable(JsonNullable username) {
    this.username = username;
  }

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


  public GetDeviceActivity200ResponseActivityResultsInnerDetails uuid(@jakarta.annotation.Nullable String uuid) {
    this.uuid = uuid;
    return this;
  }

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

  public String getUuid() {
    return uuid;
  }


  @JsonProperty(JSON_PROPERTY_UUID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setUuid(@jakarta.annotation.Nullable String uuid) {
    this.uuid = uuid;
  }


  /**
   * Return true if this getDeviceActivity_200_response_activity_results_inner_details object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetDeviceActivity200ResponseActivityResultsInnerDetails getDeviceActivity200ResponseActivityResultsInnerDetails = (GetDeviceActivity200ResponseActivityResultsInnerDetails) o;
    return Objects.equals(this.attempts, getDeviceActivity200ResponseActivityResultsInnerDetails.attempts) &&
        Objects.equals(this.blueprintName, getDeviceActivity200ResponseActivityResultsInnerDetails.blueprintName) &&
        Objects.equals(this.commandType, getDeviceActivity200ResponseActivityResultsInnerDetails.commandType) &&
        Objects.equals(this.dateCompleted, getDeviceActivity200ResponseActivityResultsInnerDetails.dateCompleted) &&
        Objects.equals(this.dateRequested, getDeviceActivity200ResponseActivityResultsInnerDetails.dateRequested) &&
        Objects.equals(this.enrollmentType, getDeviceActivity200ResponseActivityResultsInnerDetails.enrollmentType) &&
        Objects.equals(this.errorChain, getDeviceActivity200ResponseActivityResultsInnerDetails.errorChain) &&
        Objects.equals(this.from, getDeviceActivity200ResponseActivityResultsInnerDetails.from) &&
        Objects.equals(this.isSilent, getDeviceActivity200ResponseActivityResultsInnerDetails.isSilent) &&
        Objects.equals(this.lastPushed, getDeviceActivity200ResponseActivityResultsInnerDetails.lastPushed) &&
        Objects.equals(this.metadata, getDeviceActivity200ResponseActivityResultsInnerDetails.metadata) &&
        Objects.equals(this.priority, getDeviceActivity200ResponseActivityResultsInnerDetails.priority) &&
        equalsNullable(this.profileName, getDeviceActivity200ResponseActivityResultsInnerDetails.profileName) &&
        equalsNullable(this.profileUuid, getDeviceActivity200ResponseActivityResultsInnerDetails.profileUuid) &&
        Objects.equals(this.requestRequiresNetworkTether, getDeviceActivity200ResponseActivityResultsInnerDetails.requestRequiresNetworkTether) &&
        Objects.equals(this.requestType, getDeviceActivity200ResponseActivityResultsInnerDetails.requestType) &&
        Objects.equals(this.status, getDeviceActivity200ResponseActivityResultsInnerDetails.status) &&
        Objects.equals(this.to, getDeviceActivity200ResponseActivityResultsInnerDetails.to) &&
        equalsNullable(this.user, getDeviceActivity200ResponseActivityResultsInnerDetails.user) &&
        equalsNullable(this.username, getDeviceActivity200ResponseActivityResultsInnerDetails.username) &&
        Objects.equals(this.uuid, getDeviceActivity200ResponseActivityResultsInnerDetails.uuid);
  }

  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(attempts, blueprintName, commandType, dateCompleted, dateRequested, enrollmentType, errorChain, from, isSilent, lastPushed, metadata, priority, hashCodeNullable(profileName), hashCodeNullable(profileUuid), requestRequiresNetworkTether, requestType, status, to, hashCodeNullable(user), hashCodeNullable(username), uuid);
  }

  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 GetDeviceActivity200ResponseActivityResultsInnerDetails {\n");
    sb.append("    attempts: ").append(toIndentedString(attempts)).append("\n");
    sb.append("    blueprintName: ").append(toIndentedString(blueprintName)).append("\n");
    sb.append("    commandType: ").append(toIndentedString(commandType)).append("\n");
    sb.append("    dateCompleted: ").append(toIndentedString(dateCompleted)).append("\n");
    sb.append("    dateRequested: ").append(toIndentedString(dateRequested)).append("\n");
    sb.append("    enrollmentType: ").append(toIndentedString(enrollmentType)).append("\n");
    sb.append("    errorChain: ").append(toIndentedString(errorChain)).append("\n");
    sb.append("    from: ").append(toIndentedString(from)).append("\n");
    sb.append("    isSilent: ").append(toIndentedString(isSilent)).append("\n");
    sb.append("    lastPushed: ").append(toIndentedString(lastPushed)).append("\n");
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
    sb.append("    profileName: ").append(toIndentedString(profileName)).append("\n");
    sb.append("    profileUuid: ").append(toIndentedString(profileUuid)).append("\n");
    sb.append("    requestRequiresNetworkTether: ").append(toIndentedString(requestRequiresNetworkTether)).append("\n");
    sb.append("    requestType: ").append(toIndentedString(requestType)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    to: ").append(toIndentedString(to)).append("\n");
    sb.append("    user: ").append(toIndentedString(user)).append("\n");
    sb.append("    username: ").append(toIndentedString(username)).append("\n");
    sb.append("    uuid: ").append(toIndentedString(uuid)).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    ");
  }

}