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

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


/**
 * UpdateCustomScript200Response
 */
@JsonPropertyOrder({
  UpdateCustomScript200Response.JSON_PROPERTY_ACTIVE,
  UpdateCustomScript200Response.JSON_PROPERTY_CREATED_AT,
  UpdateCustomScript200Response.JSON_PROPERTY_EXECUTION_FREQUENCY,
  UpdateCustomScript200Response.JSON_PROPERTY_ID,
  UpdateCustomScript200Response.JSON_PROPERTY_NAME,
  UpdateCustomScript200Response.JSON_PROPERTY_REMEDIATION_SCRIPT,
  UpdateCustomScript200Response.JSON_PROPERTY_RESTART,
  UpdateCustomScript200Response.JSON_PROPERTY_SCRIPT,
  UpdateCustomScript200Response.JSON_PROPERTY_SHOW_IN_SELF_SERVICE,
  UpdateCustomScript200Response.JSON_PROPERTY_UPDATED_AT
})
@JsonTypeName("updateCustomScript_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 UpdateCustomScript200Response {
  public static final String JSON_PROPERTY_ACTIVE = "active";
  @jakarta.annotation.Nullable
  private Boolean active;

  public static final String JSON_PROPERTY_CREATED_AT = "created_at";
  @jakarta.annotation.Nullable
  private String createdAt;

  public static final String JSON_PROPERTY_EXECUTION_FREQUENCY = "execution_frequency";
  @jakarta.annotation.Nullable
  private String executionFrequency;

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

  public static final String JSON_PROPERTY_NAME = "name";
  @jakarta.annotation.Nullable
  private String name;

  public static final String JSON_PROPERTY_REMEDIATION_SCRIPT = "remediation_script";
  @jakarta.annotation.Nullable
  private String remediationScript;

  public static final String JSON_PROPERTY_RESTART = "restart";
  @jakarta.annotation.Nullable
  private Boolean restart;

  public static final String JSON_PROPERTY_SCRIPT = "script";
  @jakarta.annotation.Nullable
  private String script;

  public static final String JSON_PROPERTY_SHOW_IN_SELF_SERVICE = "show_in_self_service";
  @jakarta.annotation.Nullable
  private Boolean showInSelfService;

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

  public UpdateCustomScript200Response() { 
  }

  public UpdateCustomScript200Response active(@jakarta.annotation.Nullable Boolean active) {
    this.active = active;
    return this;
  }

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

  public Boolean getActive() {
    return active;
  }


  @JsonProperty(JSON_PROPERTY_ACTIVE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setActive(@jakarta.annotation.Nullable Boolean active) {
    this.active = active;
  }


  public UpdateCustomScript200Response createdAt(@jakarta.annotation.Nullable String createdAt) {
    this.createdAt = createdAt;
    return this;
  }

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

  public String getCreatedAt() {
    return createdAt;
  }


  @JsonProperty(JSON_PROPERTY_CREATED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCreatedAt(@jakarta.annotation.Nullable String createdAt) {
    this.createdAt = createdAt;
  }


  public UpdateCustomScript200Response executionFrequency(@jakarta.annotation.Nullable String executionFrequency) {
    this.executionFrequency = executionFrequency;
    return this;
  }

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

  public String getExecutionFrequency() {
    return executionFrequency;
  }


  @JsonProperty(JSON_PROPERTY_EXECUTION_FREQUENCY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setExecutionFrequency(@jakarta.annotation.Nullable String executionFrequency) {
    this.executionFrequency = executionFrequency;
  }


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

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

  public String getRemediationScript() {
    return remediationScript;
  }


  @JsonProperty(JSON_PROPERTY_REMEDIATION_SCRIPT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRemediationScript(@jakarta.annotation.Nullable String remediationScript) {
    this.remediationScript = remediationScript;
  }


  public UpdateCustomScript200Response restart(@jakarta.annotation.Nullable Boolean restart) {
    this.restart = restart;
    return this;
  }

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

  public Boolean getRestart() {
    return restart;
  }


  @JsonProperty(JSON_PROPERTY_RESTART)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRestart(@jakarta.annotation.Nullable Boolean restart) {
    this.restart = restart;
  }


  public UpdateCustomScript200Response script(@jakarta.annotation.Nullable String script) {
    this.script = script;
    return this;
  }

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

  public String getScript() {
    return script;
  }


  @JsonProperty(JSON_PROPERTY_SCRIPT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setScript(@jakarta.annotation.Nullable String script) {
    this.script = script;
  }


  public UpdateCustomScript200Response showInSelfService(@jakarta.annotation.Nullable Boolean showInSelfService) {
    this.showInSelfService = showInSelfService;
    return this;
  }

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

  public Boolean getShowInSelfService() {
    return showInSelfService;
  }


  @JsonProperty(JSON_PROPERTY_SHOW_IN_SELF_SERVICE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setShowInSelfService(@jakarta.annotation.Nullable Boolean showInSelfService) {
    this.showInSelfService = showInSelfService;
  }


  public UpdateCustomScript200Response 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 updateCustomScript_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;
    }
    UpdateCustomScript200Response updateCustomScript200Response = (UpdateCustomScript200Response) o;
    return Objects.equals(this.active, updateCustomScript200Response.active) &&
        Objects.equals(this.createdAt, updateCustomScript200Response.createdAt) &&
        Objects.equals(this.executionFrequency, updateCustomScript200Response.executionFrequency) &&
        Objects.equals(this.id, updateCustomScript200Response.id) &&
        Objects.equals(this.name, updateCustomScript200Response.name) &&
        Objects.equals(this.remediationScript, updateCustomScript200Response.remediationScript) &&
        Objects.equals(this.restart, updateCustomScript200Response.restart) &&
        Objects.equals(this.script, updateCustomScript200Response.script) &&
        Objects.equals(this.showInSelfService, updateCustomScript200Response.showInSelfService) &&
        Objects.equals(this.updatedAt, updateCustomScript200Response.updatedAt);
  }

  @Override
  public int hashCode() {
    return Objects.hash(active, createdAt, executionFrequency, id, name, remediationScript, restart, script, showInSelfService, updatedAt);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateCustomScript200Response {\n");
    sb.append("    active: ").append(toIndentedString(active)).append("\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    executionFrequency: ").append(toIndentedString(executionFrequency)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    remediationScript: ").append(toIndentedString(remediationScript)).append("\n");
    sb.append("    restart: ").append(toIndentedString(restart)).append("\n");
    sb.append("    script: ").append(toIndentedString(script)).append("\n");
    sb.append("    showInSelfService: ").append(toIndentedString(showInSelfService)).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    ");
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy