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

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


/**
 * GetDeviceDetails200ResponseActivationLock
 */
@JsonPropertyOrder({
  GetDeviceDetails200ResponseActivationLock.JSON_PROPERTY_BYPASS_CODE_FAILED,
  GetDeviceDetails200ResponseActivationLock.JSON_PROPERTY_USER_ACTIVATION_LOCK_ENABLED,
  GetDeviceDetails200ResponseActivationLock.JSON_PROPERTY_DEVICE_ACTIVATION_LOCK_ENABLED,
  GetDeviceDetails200ResponseActivationLock.JSON_PROPERTY_ACTIVATION_LOCK_ALLOWED_WHILE_SUPERVISED,
  GetDeviceDetails200ResponseActivationLock.JSON_PROPERTY_ACTIVATION_LOCK_SUPPORTED
})
@JsonTypeName("getDeviceDetails_200_response_activation_lock")
@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 GetDeviceDetails200ResponseActivationLock {
  public static final String JSON_PROPERTY_BYPASS_CODE_FAILED = "bypass_code_failed";
  @jakarta.annotation.Nullable
  private Boolean bypassCodeFailed;

  public static final String JSON_PROPERTY_USER_ACTIVATION_LOCK_ENABLED = "user_activation_lock_enabled";
  @jakarta.annotation.Nullable
  private Boolean userActivationLockEnabled;

  public static final String JSON_PROPERTY_DEVICE_ACTIVATION_LOCK_ENABLED = "device_activation_lock_enabled";
  @jakarta.annotation.Nullable
  private Boolean deviceActivationLockEnabled;

  public static final String JSON_PROPERTY_ACTIVATION_LOCK_ALLOWED_WHILE_SUPERVISED = "activation_lock_allowed_while_supervised";
  @jakarta.annotation.Nullable
  private Boolean activationLockAllowedWhileSupervised;

  public static final String JSON_PROPERTY_ACTIVATION_LOCK_SUPPORTED = "activation_lock_supported";
  @jakarta.annotation.Nullable
  private Boolean activationLockSupported;

  public GetDeviceDetails200ResponseActivationLock() { 
  }

  public GetDeviceDetails200ResponseActivationLock bypassCodeFailed(@jakarta.annotation.Nullable Boolean bypassCodeFailed) {
    this.bypassCodeFailed = bypassCodeFailed;
    return this;
  }

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

  public Boolean getBypassCodeFailed() {
    return bypassCodeFailed;
  }


  @JsonProperty(JSON_PROPERTY_BYPASS_CODE_FAILED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBypassCodeFailed(@jakarta.annotation.Nullable Boolean bypassCodeFailed) {
    this.bypassCodeFailed = bypassCodeFailed;
  }


  public GetDeviceDetails200ResponseActivationLock userActivationLockEnabled(@jakarta.annotation.Nullable Boolean userActivationLockEnabled) {
    this.userActivationLockEnabled = userActivationLockEnabled;
    return this;
  }

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

  public Boolean getUserActivationLockEnabled() {
    return userActivationLockEnabled;
  }


  @JsonProperty(JSON_PROPERTY_USER_ACTIVATION_LOCK_ENABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setUserActivationLockEnabled(@jakarta.annotation.Nullable Boolean userActivationLockEnabled) {
    this.userActivationLockEnabled = userActivationLockEnabled;
  }


  public GetDeviceDetails200ResponseActivationLock deviceActivationLockEnabled(@jakarta.annotation.Nullable Boolean deviceActivationLockEnabled) {
    this.deviceActivationLockEnabled = deviceActivationLockEnabled;
    return this;
  }

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

  public Boolean getDeviceActivationLockEnabled() {
    return deviceActivationLockEnabled;
  }


  @JsonProperty(JSON_PROPERTY_DEVICE_ACTIVATION_LOCK_ENABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeviceActivationLockEnabled(@jakarta.annotation.Nullable Boolean deviceActivationLockEnabled) {
    this.deviceActivationLockEnabled = deviceActivationLockEnabled;
  }


  public GetDeviceDetails200ResponseActivationLock activationLockAllowedWhileSupervised(@jakarta.annotation.Nullable Boolean activationLockAllowedWhileSupervised) {
    this.activationLockAllowedWhileSupervised = activationLockAllowedWhileSupervised;
    return this;
  }

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

  public Boolean getActivationLockAllowedWhileSupervised() {
    return activationLockAllowedWhileSupervised;
  }


  @JsonProperty(JSON_PROPERTY_ACTIVATION_LOCK_ALLOWED_WHILE_SUPERVISED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setActivationLockAllowedWhileSupervised(@jakarta.annotation.Nullable Boolean activationLockAllowedWhileSupervised) {
    this.activationLockAllowedWhileSupervised = activationLockAllowedWhileSupervised;
  }


  public GetDeviceDetails200ResponseActivationLock activationLockSupported(@jakarta.annotation.Nullable Boolean activationLockSupported) {
    this.activationLockSupported = activationLockSupported;
    return this;
  }

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

  public Boolean getActivationLockSupported() {
    return activationLockSupported;
  }


  @JsonProperty(JSON_PROPERTY_ACTIVATION_LOCK_SUPPORTED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setActivationLockSupported(@jakarta.annotation.Nullable Boolean activationLockSupported) {
    this.activationLockSupported = activationLockSupported;
  }


  /**
   * Return true if this getDeviceDetails_200_response_activation_lock object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetDeviceDetails200ResponseActivationLock getDeviceDetails200ResponseActivationLock = (GetDeviceDetails200ResponseActivationLock) o;
    return Objects.equals(this.bypassCodeFailed, getDeviceDetails200ResponseActivationLock.bypassCodeFailed) &&
        Objects.equals(this.userActivationLockEnabled, getDeviceDetails200ResponseActivationLock.userActivationLockEnabled) &&
        Objects.equals(this.deviceActivationLockEnabled, getDeviceDetails200ResponseActivationLock.deviceActivationLockEnabled) &&
        Objects.equals(this.activationLockAllowedWhileSupervised, getDeviceDetails200ResponseActivationLock.activationLockAllowedWhileSupervised) &&
        Objects.equals(this.activationLockSupported, getDeviceDetails200ResponseActivationLock.activationLockSupported);
  }

  @Override
  public int hashCode() {
    return Objects.hash(bypassCodeFailed, userActivationLockEnabled, deviceActivationLockEnabled, activationLockAllowedWhileSupervised, activationLockSupported);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetDeviceDetails200ResponseActivationLock {\n");
    sb.append("    bypassCodeFailed: ").append(toIndentedString(bypassCodeFailed)).append("\n");
    sb.append("    userActivationLockEnabled: ").append(toIndentedString(userActivationLockEnabled)).append("\n");
    sb.append("    deviceActivationLockEnabled: ").append(toIndentedString(deviceActivationLockEnabled)).append("\n");
    sb.append("    activationLockAllowedWhileSupervised: ").append(toIndentedString(activationLockAllowedWhileSupervised)).append("\n");
    sb.append("    activationLockSupported: ").append(toIndentedString(activationLockSupported)).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