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

com.blazebit.query.connector.kandji.model.GetDeviceDetails200ResponseVolumesInner 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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.blazebit.query.connector.kandji.invoker.JSON;


/**
 * GetDeviceDetails200ResponseVolumesInner
 */
@JsonPropertyOrder({
  GetDeviceDetails200ResponseVolumesInner.JSON_PROPERTY_NAME,
  GetDeviceDetails200ResponseVolumesInner.JSON_PROPERTY_FORMAT,
  GetDeviceDetails200ResponseVolumesInner.JSON_PROPERTY_PERCENT_USED,
  GetDeviceDetails200ResponseVolumesInner.JSON_PROPERTY_IDENTIFIER,
  GetDeviceDetails200ResponseVolumesInner.JSON_PROPERTY_CAPACITY,
  GetDeviceDetails200ResponseVolumesInner.JSON_PROPERTY_AVAILABLE,
  GetDeviceDetails200ResponseVolumesInner.JSON_PROPERTY_ENCRYPTED
})
@JsonTypeName("getDeviceDetails_200_response_volumes_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 GetDeviceDetails200ResponseVolumesInner {
  public static final String JSON_PROPERTY_NAME = "name";
  @jakarta.annotation.Nullable
  private String name;

  public static final String JSON_PROPERTY_FORMAT = "format";
  @jakarta.annotation.Nullable
  private String format;

  public static final String JSON_PROPERTY_PERCENT_USED = "percent_used";
  @jakarta.annotation.Nullable
  private String percentUsed;

  public static final String JSON_PROPERTY_IDENTIFIER = "identifier";
  @jakarta.annotation.Nullable
  private String identifier;

  public static final String JSON_PROPERTY_CAPACITY = "capacity";
  @jakarta.annotation.Nullable
  private String capacity;

  public static final String JSON_PROPERTY_AVAILABLE = "available";
  @jakarta.annotation.Nullable
  private String available;

  public static final String JSON_PROPERTY_ENCRYPTED = "encrypted";
  @jakarta.annotation.Nullable
  private String encrypted;

  public GetDeviceDetails200ResponseVolumesInner() { 
  }

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

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

  public String getFormat() {
    return format;
  }


  @JsonProperty(JSON_PROPERTY_FORMAT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFormat(@jakarta.annotation.Nullable String format) {
    this.format = format;
  }


  public GetDeviceDetails200ResponseVolumesInner percentUsed(@jakarta.annotation.Nullable String percentUsed) {
    this.percentUsed = percentUsed;
    return this;
  }

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

  public String getPercentUsed() {
    return percentUsed;
  }


  @JsonProperty(JSON_PROPERTY_PERCENT_USED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setPercentUsed(@jakarta.annotation.Nullable String percentUsed) {
    this.percentUsed = percentUsed;
  }


  public GetDeviceDetails200ResponseVolumesInner identifier(@jakarta.annotation.Nullable String identifier) {
    this.identifier = identifier;
    return this;
  }

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

  public String getIdentifier() {
    return identifier;
  }


  @JsonProperty(JSON_PROPERTY_IDENTIFIER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setIdentifier(@jakarta.annotation.Nullable String identifier) {
    this.identifier = identifier;
  }


  public GetDeviceDetails200ResponseVolumesInner capacity(@jakarta.annotation.Nullable String capacity) {
    this.capacity = capacity;
    return this;
  }

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

  public String getCapacity() {
    return capacity;
  }


  @JsonProperty(JSON_PROPERTY_CAPACITY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCapacity(@jakarta.annotation.Nullable String capacity) {
    this.capacity = capacity;
  }


  public GetDeviceDetails200ResponseVolumesInner available(@jakarta.annotation.Nullable String available) {
    this.available = available;
    return this;
  }

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

  public String getAvailable() {
    return available;
  }


  @JsonProperty(JSON_PROPERTY_AVAILABLE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAvailable(@jakarta.annotation.Nullable String available) {
    this.available = available;
  }


  public GetDeviceDetails200ResponseVolumesInner encrypted(@jakarta.annotation.Nullable String encrypted) {
    this.encrypted = encrypted;
    return this;
  }

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

  public String getEncrypted() {
    return encrypted;
  }


  @JsonProperty(JSON_PROPERTY_ENCRYPTED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEncrypted(@jakarta.annotation.Nullable String encrypted) {
    this.encrypted = encrypted;
  }


  /**
   * Return true if this getDeviceDetails_200_response_volumes_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;
    }
    GetDeviceDetails200ResponseVolumesInner getDeviceDetails200ResponseVolumesInner = (GetDeviceDetails200ResponseVolumesInner) o;
    return Objects.equals(this.name, getDeviceDetails200ResponseVolumesInner.name) &&
        Objects.equals(this.format, getDeviceDetails200ResponseVolumesInner.format) &&
        Objects.equals(this.percentUsed, getDeviceDetails200ResponseVolumesInner.percentUsed) &&
        Objects.equals(this.identifier, getDeviceDetails200ResponseVolumesInner.identifier) &&
        Objects.equals(this.capacity, getDeviceDetails200ResponseVolumesInner.capacity) &&
        Objects.equals(this.available, getDeviceDetails200ResponseVolumesInner.available) &&
        Objects.equals(this.encrypted, getDeviceDetails200ResponseVolumesInner.encrypted);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, format, percentUsed, identifier, capacity, available, encrypted);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetDeviceDetails200ResponseVolumesInner {\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    format: ").append(toIndentedString(format)).append("\n");
    sb.append("    percentUsed: ").append(toIndentedString(percentUsed)).append("\n");
    sb.append("    identifier: ").append(toIndentedString(identifier)).append("\n");
    sb.append("    capacity: ").append(toIndentedString(capacity)).append("\n");
    sb.append("    available: ").append(toIndentedString(available)).append("\n");
    sb.append("    encrypted: ").append(toIndentedString(encrypted)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy