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

com.seeq.model.AgentStatusOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 60.1.3-v202304250417
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.seeq.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * The status for all agents accessible by the user. Provided only when the required level of detail is 'Complete'
 */
@Schema(description = "The status for all agents accessible by the user. Provided only when the required level of detail is 'Complete'")
public class AgentStatusOutputV1 {
  @JsonProperty("name")
  private String name = null;

  @JsonProperty("remoteAgent")
  private Boolean remoteAgent = false;

  @JsonProperty("remoteUpdateError")
  private String remoteUpdateError = null;

  @JsonProperty("remoteUpdateStatus")
  private String remoteUpdateStatus = null;

  @JsonProperty("status")
  private String status = null;

  @JsonProperty("version")
  private String version = null;

  public AgentStatusOutputV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * The name of the agent. This name uniquely identifies the agent
   * @return name
  **/
  @Schema(required = true, description = "The name of the agent. This name uniquely identifies the agent")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public AgentStatusOutputV1 remoteAgent(Boolean remoteAgent) {
    this.remoteAgent = remoteAgent;
    return this;
  }

   /**
   * Indicates if the agent is a remote agent. This is false for local agents.
   * @return remoteAgent
  **/
  @Schema(description = "Indicates if the agent is a remote agent. This is false for local agents.")
  public Boolean getRemoteAgent() {
    return remoteAgent;
  }

  public void setRemoteAgent(Boolean remoteAgent) {
    this.remoteAgent = remoteAgent;
  }

  public AgentStatusOutputV1 remoteUpdateError(String remoteUpdateError) {
    this.remoteUpdateError = remoteUpdateError;
    return this;
  }

   /**
   * Error if any for remote agent update
   * @return remoteUpdateError
  **/
  @Schema(description = "Error if any for remote agent update")
  public String getRemoteUpdateError() {
    return remoteUpdateError;
  }

  public void setRemoteUpdateError(String remoteUpdateError) {
    this.remoteUpdateError = remoteUpdateError;
  }

  public AgentStatusOutputV1 remoteUpdateStatus(String remoteUpdateStatus) {
    this.remoteUpdateStatus = remoteUpdateStatus;
    return this;
  }

   /**
   * Version Update status of remote agents
   * @return remoteUpdateStatus
  **/
  @Schema(description = "Version Update status of remote agents")
  public String getRemoteUpdateStatus() {
    return remoteUpdateStatus;
  }

  public void setRemoteUpdateStatus(String remoteUpdateStatus) {
    this.remoteUpdateStatus = remoteUpdateStatus;
  }

  public AgentStatusOutputV1 status(String status) {
    this.status = status;
    return this;
  }

   /**
   * The status of the current connection between the agent and the Seeq application server. Valid values are CONNECTED, CONNECTING and DISCONNECTED
   * @return status
  **/
  @Schema(required = true, description = "The status of the current connection between the agent and the Seeq application server. Valid values are CONNECTED, CONNECTING and DISCONNECTED")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public AgentStatusOutputV1 version(String version) {
    this.version = version;
    return this;
  }

   /**
   * The Seeq version of the agent
   * @return version
  **/
  @Schema(description = "The Seeq version of the agent")
  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AgentStatusOutputV1 agentStatusOutputV1 = (AgentStatusOutputV1) o;
    return Objects.equals(this.name, agentStatusOutputV1.name) &&
        Objects.equals(this.remoteAgent, agentStatusOutputV1.remoteAgent) &&
        Objects.equals(this.remoteUpdateError, agentStatusOutputV1.remoteUpdateError) &&
        Objects.equals(this.remoteUpdateStatus, agentStatusOutputV1.remoteUpdateStatus) &&
        Objects.equals(this.status, agentStatusOutputV1.status) &&
        Objects.equals(this.version, agentStatusOutputV1.version);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, remoteAgent, remoteUpdateError, remoteUpdateStatus, status, version);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AgentStatusOutputV1 {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    remoteAgent: ").append(toIndentedString(remoteAgent)).append("\n");
    sb.append("    remoteUpdateError: ").append(toIndentedString(remoteUpdateError)).append("\n");
    sb.append("    remoteUpdateStatus: ").append(toIndentedString(remoteUpdateStatus)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy