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: 63.1.6-v202409101657
*
*
* 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;
/**
* RemoteAgentStatusInputV1
*/
public class RemoteAgentStatusInputV1 {
@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("pendingProgress")
private Double pendingProgress = null;
/**
* The current stage of a remote agent. Possible values: 1. NONE - No update needed since current version of remote agent is same as directives received. 2. DOWNLOADING - Remote agent is downloading the installer. 3. EXTRACTING - Remote agent is extracting installer into installation folder. 4. SUCCESS - Installer is staged. 5. RESTART - Remote agent is ready to switch to new version and it will restart soon. 6. ERROR - An error has occurred.
*/
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("updatesEnabled")
private Boolean updatesEnabled = false;
public RemoteAgentStatusInputV1 availableVersions(List availableVersions) {
this.availableVersions = availableVersions;
return this;
}
public RemoteAgentStatusInputV1 addAvailableVersionsItem(String availableVersionsItem) {
this.availableVersions.add(availableVersionsItem);
return this;
}
/**
* All versions that have been unpacked on the remote agent
* @return availableVersions
**/
@Schema(required = true, 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 RemoteAgentStatusInputV1 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(required = true, 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 RemoteAgentStatusInputV1 currentVersion(String currentVersion) {
this.currentVersion = currentVersion;
return this;
}
/**
* The version currently running on the remote agent
* @return currentVersion
**/
@Schema(required = true, description = "The version currently running on the remote agent")
public String getCurrentVersion() {
return currentVersion;
}
public void setCurrentVersion(String currentVersion) {
this.currentVersion = currentVersion;
}
public RemoteAgentStatusInputV1 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(required = true, 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 RemoteAgentStatusInputV1 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 RemoteAgentStatusInputV1 pendingStatus(PendingStatusEnum pendingStatus) {
this.pendingStatus = pendingStatus;
return this;
}
/**
* The current stage of a remote agent. Possible values: 1. NONE - No update needed since current version of remote agent is same as directives received. 2. DOWNLOADING - Remote agent is downloading the installer. 3. EXTRACTING - Remote agent is extracting installer into installation folder. 4. SUCCESS - Installer is staged. 5. RESTART - Remote agent is ready to switch to new version and it will restart soon. 6. ERROR - An error has occurred.
* @return pendingStatus
**/
@Schema(description = "The current stage of a remote agent. Possible values: 1. NONE - No update needed since current version of remote agent is same as directives received. 2. DOWNLOADING - Remote agent is downloading the installer. 3. EXTRACTING - Remote agent is extracting installer into installation folder. 4. SUCCESS - Installer is staged. 5. RESTART - Remote agent is ready to switch to new version and it will restart soon. 6. ERROR - An error has occurred. ")
public PendingStatusEnum getPendingStatus() {
return pendingStatus;
}
public void setPendingStatus(PendingStatusEnum pendingStatus) {
this.pendingStatus = pendingStatus;
}
public RemoteAgentStatusInputV1 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 RemoteAgentStatusInputV1 platform(String platform) {
this.platform = platform;
return this;
}
/**
* Operating system of the remote agent; linux or windows
* @return platform
**/
@Schema(required = true, description = "Operating system of the remote agent; linux or windows")
public String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
this.platform = platform;
}
public RemoteAgentStatusInputV1 platformArchitecture(String platformArchitecture) {
this.platformArchitecture = platformArchitecture;
return this;
}
/**
* Architecture of platform; 32bits or 64bits
* @return platformArchitecture
**/
@Schema(required = true, description = "Architecture of platform; 32bits or 64bits")
public String getPlatformArchitecture() {
return platformArchitecture;
}
public void setPlatformArchitecture(String platformArchitecture) {
this.platformArchitecture = platformArchitecture;
}
public RemoteAgentStatusInputV1 platformVersion(String platformVersion) {
this.platformVersion = platformVersion;
return this;
}
/**
* Version and distribution of platform; Ubuntu 20.04, Windows Server 2019, etc
* @return platformVersion
**/
@Schema(required = true, 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 RemoteAgentStatusInputV1 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 RemoteAgentStatusInputV1 updatesEnabled(Boolean updatesEnabled) {
this.updatesEnabled = updatesEnabled;
return this;
}
/**
* True if remote agent has the remote update feature enabled
* @return updatesEnabled
**/
@Schema(required = true, 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;
}
RemoteAgentStatusInputV1 remoteAgentStatusInputV1 = (RemoteAgentStatusInputV1) o;
return Objects.equals(this.availableVersions, remoteAgentStatusInputV1.availableVersions) &&
Objects.equals(this.baseVersion, remoteAgentStatusInputV1.baseVersion) &&
Objects.equals(this.currentVersion, remoteAgentStatusInputV1.currentVersion) &&
Objects.equals(this.freeDiskSpace, remoteAgentStatusInputV1.freeDiskSpace) &&
Objects.equals(this.pendingProgress, remoteAgentStatusInputV1.pendingProgress) &&
Objects.equals(this.pendingStatus, remoteAgentStatusInputV1.pendingStatus) &&
Objects.equals(this.pendingVersion, remoteAgentStatusInputV1.pendingVersion) &&
Objects.equals(this.platform, remoteAgentStatusInputV1.platform) &&
Objects.equals(this.platformArchitecture, remoteAgentStatusInputV1.platformArchitecture) &&
Objects.equals(this.platformVersion, remoteAgentStatusInputV1.platformVersion) &&
Objects.equals(this.status, remoteAgentStatusInputV1.status) &&
Objects.equals(this.updatesEnabled, remoteAgentStatusInputV1.updatesEnabled);
}
@Override
public int hashCode() {
return Objects.hash(availableVersions, baseVersion, currentVersion, freeDiskSpace, pendingProgress, pendingStatus, pendingVersion, platform, platformArchitecture, platformVersion, status, updatesEnabled);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RemoteAgentStatusInputV1 {\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(" 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(" 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 ");
}
}