Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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;
import java.util.ArrayList;
import java.util.List;
/**
* RemoteAgentStatusOutputV1
*/
public class RemoteAgentStatusOutputV1 {
@JsonProperty("availableVersions")
private List availableVersions = new ArrayList();
@JsonProperty("baseVersion")
private String baseVersion = null;
@JsonProperty("currentVersion")
private String currentVersion = null;
@JsonProperty("freeDiskSpace")
private Long freeDiskSpace = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("pendingProgress")
private Double pendingProgress = null;
/**
* The current stage of a pending downloading and extracting on a remote agent
*/
public enum PendingStatusEnum {
NONE("NONE"),
DOWNLOADING("DOWNLOADING"),
EXTRACTING("EXTRACTING"),
SUCCESS("SUCCESS"),
RESTART("RESTART"),
ERROR("ERROR");
private String value;
PendingStatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PendingStatusEnum fromValue(String input) {
for (PendingStatusEnum b : PendingStatusEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
} @JsonProperty("pendingStatus")
private PendingStatusEnum pendingStatus = null;
@JsonProperty("pendingVersion")
private String pendingVersion = null;
@JsonProperty("platform")
private String platform = null;
@JsonProperty("platformArchitecture")
private String platformArchitecture = null;
@JsonProperty("platformVersion")
private String platformVersion = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("statusReceivedTime")
private Long statusReceivedTime = null;
@JsonProperty("updatesEnabled")
private Boolean updatesEnabled = false;
public RemoteAgentStatusOutputV1 availableVersions(List availableVersions) {
this.availableVersions = availableVersions;
return this;
}
public RemoteAgentStatusOutputV1 addAvailableVersionsItem(String availableVersionsItem) {
if (this.availableVersions == null) {
this.availableVersions = new ArrayList();
}
this.availableVersions.add(availableVersionsItem);
return this;
}
/**
* All versions that have been unpacked on the remote agent
* @return availableVersions
**/
@Schema(description = "All versions that have been unpacked on the remote agent")
public List getAvailableVersions() {
return availableVersions;
}
public void setAvailableVersions(List availableVersions) {
this.availableVersions = availableVersions;
}
public RemoteAgentStatusOutputV1 baseVersion(String baseVersion) {
this.baseVersion = baseVersion;
return this;
}
/**
* The version installed by executing the installer, usually to a admin protected location. For example the installation located in C:\\Program Files\\ on Windows
* @return baseVersion
**/
@Schema(description = "The version installed by executing the installer, usually to a admin protected location. For example the installation located in C:\\Program Files\\ on Windows")
public String getBaseVersion() {
return baseVersion;
}
public void setBaseVersion(String baseVersion) {
this.baseVersion = baseVersion;
}
public RemoteAgentStatusOutputV1 currentVersion(String currentVersion) {
this.currentVersion = currentVersion;
return this;
}
/**
* The version currently running on the remote agent
* @return currentVersion
**/
@Schema(description = "The version currently running on the remote agent")
public String getCurrentVersion() {
return currentVersion;
}
public void setCurrentVersion(String currentVersion) {
this.currentVersion = currentVersion;
}
public RemoteAgentStatusOutputV1 freeDiskSpace(Long freeDiskSpace) {
this.freeDiskSpace = freeDiskSpace;
return this;
}
/**
* Amount of free space in bytes on the drive containing the data folder of the remote agent
* @return freeDiskSpace
**/
@Schema(description = "Amount of free space in bytes on the drive containing the data folder of the remote agent")
public Long getFreeDiskSpace() {
return freeDiskSpace;
}
public void setFreeDiskSpace(Long freeDiskSpace) {
this.freeDiskSpace = freeDiskSpace;
}
public RemoteAgentStatusOutputV1 name(String name) {
this.name = name;
return this;
}
/**
* Name of the remote agent; composed of the hostname and the installation suffix
* @return name
**/
@Schema(description = "Name of the remote agent; composed of the hostname and the installation suffix")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public RemoteAgentStatusOutputV1 pendingProgress(Double pendingProgress) {
this.pendingProgress = pendingProgress;
return this;
}
/**
* The progress of downloading and extracting the pending version; A number between 0 and 1 inclusive where 0 indicates 0% complete and 1 indicates 100% complete
* @return pendingProgress
**/
@Schema(description = "The progress of downloading and extracting the pending version; A number between 0 and 1 inclusive where 0 indicates 0% complete and 1 indicates 100% complete")
public Double getPendingProgress() {
return pendingProgress;
}
public void setPendingProgress(Double pendingProgress) {
this.pendingProgress = pendingProgress;
}
public RemoteAgentStatusOutputV1 pendingStatus(PendingStatusEnum pendingStatus) {
this.pendingStatus = pendingStatus;
return this;
}
/**
* The current stage of a pending downloading and extracting on a remote agent
* @return pendingStatus
**/
@Schema(description = "The current stage of a pending downloading and extracting on a remote agent")
public PendingStatusEnum getPendingStatus() {
return pendingStatus;
}
public void setPendingStatus(PendingStatusEnum pendingStatus) {
this.pendingStatus = pendingStatus;
}
public RemoteAgentStatusOutputV1 pendingVersion(String pendingVersion) {
this.pendingVersion = pendingVersion;
return this;
}
/**
* The version currently downloading and/or extracting on the remote agent
* @return pendingVersion
**/
@Schema(description = "The version currently downloading and/or extracting on the remote agent")
public String getPendingVersion() {
return pendingVersion;
}
public void setPendingVersion(String pendingVersion) {
this.pendingVersion = pendingVersion;
}
public RemoteAgentStatusOutputV1 platform(String platform) {
this.platform = platform;
return this;
}
/**
* Operating system of the remote agent; linux or windows
* @return platform
**/
@Schema(description = "Operating system of the remote agent; linux or windows")
public String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
this.platform = platform;
}
public RemoteAgentStatusOutputV1 platformArchitecture(String platformArchitecture) {
this.platformArchitecture = platformArchitecture;
return this;
}
/**
* Architecture of platform; 32bits or 64bits
* @return platformArchitecture
**/
@Schema(description = "Architecture of platform; 32bits or 64bits")
public String getPlatformArchitecture() {
return platformArchitecture;
}
public void setPlatformArchitecture(String platformArchitecture) {
this.platformArchitecture = platformArchitecture;
}
public RemoteAgentStatusOutputV1 platformVersion(String platformVersion) {
this.platformVersion = platformVersion;
return this;
}
/**
* Version and distribution of platform; Ubuntu 20.04, Windows Server 2019, etc
* @return platformVersion
**/
@Schema(description = "Version and distribution of platform; Ubuntu 20.04, Windows Server 2019, etc")
public String getPlatformVersion() {
return platformVersion;
}
public void setPlatformVersion(String platformVersion) {
this.platformVersion = platformVersion;
}
public RemoteAgentStatusOutputV1 status(String status) {
this.status = status;
return this;
}
/**
* Free form text description of the current stage of the remote agent. If the pending version couldn't be downloaded or extracted then the status should include the error or reason that it couldn't be completed and if the operation will be retried
* @return status
**/
@Schema(description = "Free form text description of the current stage of the remote agent. If the pending version couldn't be downloaded or extracted then the status should include the error or reason that it couldn't be completed and if the operation will be retried")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public RemoteAgentStatusOutputV1 statusReceivedTime(Long statusReceivedTime) {
this.statusReceivedTime = statusReceivedTime;
return this;
}
/**
* Time when the status was last received
* @return statusReceivedTime
**/
@Schema(description = "Time when the status was last received")
public Long getStatusReceivedTime() {
return statusReceivedTime;
}
public void setStatusReceivedTime(Long statusReceivedTime) {
this.statusReceivedTime = statusReceivedTime;
}
public RemoteAgentStatusOutputV1 updatesEnabled(Boolean updatesEnabled) {
this.updatesEnabled = updatesEnabled;
return this;
}
/**
* True if remote agent has the remote update feature enabled
* @return updatesEnabled
**/
@Schema(description = "True if remote agent has the remote update feature enabled")
public Boolean getUpdatesEnabled() {
return updatesEnabled;
}
public void setUpdatesEnabled(Boolean updatesEnabled) {
this.updatesEnabled = updatesEnabled;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RemoteAgentStatusOutputV1 remoteAgentStatusOutputV1 = (RemoteAgentStatusOutputV1) o;
return Objects.equals(this.availableVersions, remoteAgentStatusOutputV1.availableVersions) &&
Objects.equals(this.baseVersion, remoteAgentStatusOutputV1.baseVersion) &&
Objects.equals(this.currentVersion, remoteAgentStatusOutputV1.currentVersion) &&
Objects.equals(this.freeDiskSpace, remoteAgentStatusOutputV1.freeDiskSpace) &&
Objects.equals(this.name, remoteAgentStatusOutputV1.name) &&
Objects.equals(this.pendingProgress, remoteAgentStatusOutputV1.pendingProgress) &&
Objects.equals(this.pendingStatus, remoteAgentStatusOutputV1.pendingStatus) &&
Objects.equals(this.pendingVersion, remoteAgentStatusOutputV1.pendingVersion) &&
Objects.equals(this.platform, remoteAgentStatusOutputV1.platform) &&
Objects.equals(this.platformArchitecture, remoteAgentStatusOutputV1.platformArchitecture) &&
Objects.equals(this.platformVersion, remoteAgentStatusOutputV1.platformVersion) &&
Objects.equals(this.status, remoteAgentStatusOutputV1.status) &&
Objects.equals(this.statusReceivedTime, remoteAgentStatusOutputV1.statusReceivedTime) &&
Objects.equals(this.updatesEnabled, remoteAgentStatusOutputV1.updatesEnabled);
}
@Override
public int hashCode() {
return Objects.hash(availableVersions, baseVersion, currentVersion, freeDiskSpace, name, pendingProgress, pendingStatus, pendingVersion, platform, platformArchitecture, platformVersion, status, statusReceivedTime, updatesEnabled);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RemoteAgentStatusOutputV1 {\n");
sb.append(" availableVersions: ").append(toIndentedString(availableVersions)).append("\n");
sb.append(" baseVersion: ").append(toIndentedString(baseVersion)).append("\n");
sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n");
sb.append(" freeDiskSpace: ").append(toIndentedString(freeDiskSpace)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" pendingProgress: ").append(toIndentedString(pendingProgress)).append("\n");
sb.append(" pendingStatus: ").append(toIndentedString(pendingStatus)).append("\n");
sb.append(" pendingVersion: ").append(toIndentedString(pendingVersion)).append("\n");
sb.append(" platform: ").append(toIndentedString(platform)).append("\n");
sb.append(" platformArchitecture: ").append(toIndentedString(platformArchitecture)).append("\n");
sb.append(" platformVersion: ").append(toIndentedString(platformVersion)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" statusReceivedTime: ").append(toIndentedString(statusReceivedTime)).append("\n");
sb.append(" updatesEnabled: ").append(toIndentedString(updatesEnabled)).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 ");
}
}