org.symphonyoss.symphony.agent.model.V2HealthCheckResponse Maven / Gradle / Ivy
The newest version!
/*
* Agent API
* This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined to be atomic, ie will succeed in their entirety or fail and have changed nothing. - If it returns a 40X status then it will have sent no message to any stream even if a request to aome subset of the requested streams would have succeeded. - If this contract cannot be met for any reason then this is an error and the response code will be 50X. - MessageML is a markup language for messages. See reference here: https://developers.symphony.com/documentation/message_format_reference
*
* OpenAPI spec version: 1.50.0
*
*
* 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 org.symphonyoss.symphony.agent.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* V2HealthCheckResponse
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-03-13T13:44:51.568-04:00")
public class V2HealthCheckResponse {
@JsonProperty("podConnectivity")
private Boolean podConnectivity = null;
@JsonProperty("podConnectivityError")
private String podConnectivityError = null;
@JsonProperty("keyManagerConnectivity")
private Boolean keyManagerConnectivity = null;
@JsonProperty("keyManagerConnectivityError")
private String keyManagerConnectivityError = null;
@JsonProperty("encryptDecryptSuccess")
private Boolean encryptDecryptSuccess = null;
@JsonProperty("encryptDecryptError")
private String encryptDecryptError = null;
@JsonProperty("podVersion")
private String podVersion = null;
@JsonProperty("agentVersion")
private String agentVersion = null;
@JsonProperty("agentServiceUser")
private Boolean agentServiceUser = null;
@JsonProperty("agentServiceUserError")
private String agentServiceUserError = null;
@JsonProperty("ceServiceUser")
private Boolean ceServiceUser = null;
@JsonProperty("ceServiceUserError")
private String ceServiceUserError = null;
public V2HealthCheckResponse podConnectivity(Boolean podConnectivity) {
this.podConnectivity = podConnectivity;
return this;
}
/**
* Indicates whether the Agent server can connect to the Pod
* @return podConnectivity
**/
@ApiModelProperty(value = "Indicates whether the Agent server can connect to the Pod")
public Boolean getPodConnectivity() {
return podConnectivity;
}
public void setPodConnectivity(Boolean podConnectivity) {
this.podConnectivity = podConnectivity;
}
public V2HealthCheckResponse podConnectivityError(String podConnectivityError) {
this.podConnectivityError = podConnectivityError;
return this;
}
/**
* Error details in case of no Pod connectivity
* @return podConnectivityError
**/
@ApiModelProperty(value = "Error details in case of no Pod connectivity")
public String getPodConnectivityError() {
return podConnectivityError;
}
public void setPodConnectivityError(String podConnectivityError) {
this.podConnectivityError = podConnectivityError;
}
public V2HealthCheckResponse keyManagerConnectivity(Boolean keyManagerConnectivity) {
this.keyManagerConnectivity = keyManagerConnectivity;
return this;
}
/**
* Indicates whether the Agent server can connect to the Key Manager
* @return keyManagerConnectivity
**/
@ApiModelProperty(value = "Indicates whether the Agent server can connect to the Key Manager")
public Boolean getKeyManagerConnectivity() {
return keyManagerConnectivity;
}
public void setKeyManagerConnectivity(Boolean keyManagerConnectivity) {
this.keyManagerConnectivity = keyManagerConnectivity;
}
public V2HealthCheckResponse keyManagerConnectivityError(String keyManagerConnectivityError) {
this.keyManagerConnectivityError = keyManagerConnectivityError;
return this;
}
/**
* Error details in case of no Key Manager connectivity
* @return keyManagerConnectivityError
**/
@ApiModelProperty(value = "Error details in case of no Key Manager connectivity")
public String getKeyManagerConnectivityError() {
return keyManagerConnectivityError;
}
public void setKeyManagerConnectivityError(String keyManagerConnectivityError) {
this.keyManagerConnectivityError = keyManagerConnectivityError;
}
public V2HealthCheckResponse encryptDecryptSuccess(Boolean encryptDecryptSuccess) {
this.encryptDecryptSuccess = encryptDecryptSuccess;
return this;
}
/**
* Indicates whether the Agent can successfully decrypt and encrypt messages
* @return encryptDecryptSuccess
**/
@ApiModelProperty(value = "Indicates whether the Agent can successfully decrypt and encrypt messages")
public Boolean getEncryptDecryptSuccess() {
return encryptDecryptSuccess;
}
public void setEncryptDecryptSuccess(Boolean encryptDecryptSuccess) {
this.encryptDecryptSuccess = encryptDecryptSuccess;
}
public V2HealthCheckResponse encryptDecryptError(String encryptDecryptError) {
this.encryptDecryptError = encryptDecryptError;
return this;
}
/**
* Error details in case of the encryption or decryption of the message fails
* @return encryptDecryptError
**/
@ApiModelProperty(value = "Error details in case of the encryption or decryption of the message fails")
public String getEncryptDecryptError() {
return encryptDecryptError;
}
public void setEncryptDecryptError(String encryptDecryptError) {
this.encryptDecryptError = encryptDecryptError;
}
public V2HealthCheckResponse podVersion(String podVersion) {
this.podVersion = podVersion;
return this;
}
/**
* The version number of the pod
* @return podVersion
**/
@ApiModelProperty(value = "The version number of the pod")
public String getPodVersion() {
return podVersion;
}
public void setPodVersion(String podVersion) {
this.podVersion = podVersion;
}
public V2HealthCheckResponse agentVersion(String agentVersion) {
this.agentVersion = agentVersion;
return this;
}
/**
* The version number of the Agent server
* @return agentVersion
**/
@ApiModelProperty(value = "The version number of the Agent server")
public String getAgentVersion() {
return agentVersion;
}
public void setAgentVersion(String agentVersion) {
this.agentVersion = agentVersion;
}
public V2HealthCheckResponse agentServiceUser(Boolean agentServiceUser) {
this.agentServiceUser = agentServiceUser;
return this;
}
/**
* Indicates whether agent service user is setup correctly.
* @return agentServiceUser
**/
@ApiModelProperty(value = "Indicates whether agent service user is setup correctly.")
public Boolean getAgentServiceUser() {
return agentServiceUser;
}
public void setAgentServiceUser(Boolean agentServiceUser) {
this.agentServiceUser = agentServiceUser;
}
public V2HealthCheckResponse agentServiceUserError(String agentServiceUserError) {
this.agentServiceUserError = agentServiceUserError;
return this;
}
/**
* Error details in case agent service user is setup incorrectly.
* @return agentServiceUserError
**/
@ApiModelProperty(value = "Error details in case agent service user is setup incorrectly.")
public String getAgentServiceUserError() {
return agentServiceUserError;
}
public void setAgentServiceUserError(String agentServiceUserError) {
this.agentServiceUserError = agentServiceUserError;
}
public V2HealthCheckResponse ceServiceUser(Boolean ceServiceUser) {
this.ceServiceUser = ceServiceUser;
return this;
}
/**
* Indicates whether CEService user is setup correctly.
* @return ceServiceUser
**/
@ApiModelProperty(value = "Indicates whether CEService user is setup correctly.")
public Boolean getCeServiceUser() {
return ceServiceUser;
}
public void setCeServiceUser(Boolean ceServiceUser) {
this.ceServiceUser = ceServiceUser;
}
public V2HealthCheckResponse ceServiceUserError(String ceServiceUserError) {
this.ceServiceUserError = ceServiceUserError;
return this;
}
/**
* Error details in case CEService user is setup incorrectly.
* @return ceServiceUserError
**/
@ApiModelProperty(value = "Error details in case CEService user is setup incorrectly.")
public String getCeServiceUserError() {
return ceServiceUserError;
}
public void setCeServiceUserError(String ceServiceUserError) {
this.ceServiceUserError = ceServiceUserError;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V2HealthCheckResponse v2HealthCheckResponse = (V2HealthCheckResponse) o;
return Objects.equals(this.podConnectivity, v2HealthCheckResponse.podConnectivity) &&
Objects.equals(this.podConnectivityError, v2HealthCheckResponse.podConnectivityError) &&
Objects.equals(this.keyManagerConnectivity, v2HealthCheckResponse.keyManagerConnectivity) &&
Objects.equals(this.keyManagerConnectivityError, v2HealthCheckResponse.keyManagerConnectivityError) &&
Objects.equals(this.encryptDecryptSuccess, v2HealthCheckResponse.encryptDecryptSuccess) &&
Objects.equals(this.encryptDecryptError, v2HealthCheckResponse.encryptDecryptError) &&
Objects.equals(this.podVersion, v2HealthCheckResponse.podVersion) &&
Objects.equals(this.agentVersion, v2HealthCheckResponse.agentVersion) &&
Objects.equals(this.agentServiceUser, v2HealthCheckResponse.agentServiceUser) &&
Objects.equals(this.agentServiceUserError, v2HealthCheckResponse.agentServiceUserError) &&
Objects.equals(this.ceServiceUser, v2HealthCheckResponse.ceServiceUser) &&
Objects.equals(this.ceServiceUserError, v2HealthCheckResponse.ceServiceUserError);
}
@Override
public int hashCode() {
return Objects.hash(podConnectivity, podConnectivityError, keyManagerConnectivity, keyManagerConnectivityError, encryptDecryptSuccess, encryptDecryptError, podVersion, agentVersion, agentServiceUser, agentServiceUserError, ceServiceUser, ceServiceUserError);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V2HealthCheckResponse {\n");
sb.append(" podConnectivity: ").append(toIndentedString(podConnectivity)).append("\n");
sb.append(" podConnectivityError: ").append(toIndentedString(podConnectivityError)).append("\n");
sb.append(" keyManagerConnectivity: ").append(toIndentedString(keyManagerConnectivity)).append("\n");
sb.append(" keyManagerConnectivityError: ").append(toIndentedString(keyManagerConnectivityError)).append("\n");
sb.append(" encryptDecryptSuccess: ").append(toIndentedString(encryptDecryptSuccess)).append("\n");
sb.append(" encryptDecryptError: ").append(toIndentedString(encryptDecryptError)).append("\n");
sb.append(" podVersion: ").append(toIndentedString(podVersion)).append("\n");
sb.append(" agentVersion: ").append(toIndentedString(agentVersion)).append("\n");
sb.append(" agentServiceUser: ").append(toIndentedString(agentServiceUser)).append("\n");
sb.append(" agentServiceUserError: ").append(toIndentedString(agentServiceUserError)).append("\n");
sb.append(" ceServiceUser: ").append(toIndentedString(ceServiceUser)).append("\n");
sb.append(" ceServiceUserError: ").append(toIndentedString(ceServiceUserError)).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 ");
}
}