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

org.symphonyoss.symphony.agent.model.V1HealthCheckResponse Maven / Gradle / Ivy

There is a newer version: 1.50.1
Show 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.48.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * V1HealthCheckResponse
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-14T03:33:40.723-04:00")
public class V1HealthCheckResponse {
  @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("version")
  private String version = null;

  public V1HealthCheckResponse podConnectivity(Boolean podConnectivity) {
    this.podConnectivity = podConnectivity;
    return this;
  }

   /**
   * Indicates whether the Agent server can connect to the Pod
   * @return podConnectivity
  **/
  @ApiModelProperty(example = "null", 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 V1HealthCheckResponse podConnectivityError(String podConnectivityError) {
    this.podConnectivityError = podConnectivityError;
    return this;
  }

   /**
   * Error details in case of no Pod connectivity
   * @return podConnectivityError
  **/
  @ApiModelProperty(example = "null", value = "Error details in case of no Pod connectivity")
  public String getPodConnectivityError() {
    return podConnectivityError;
  }

  public void setPodConnectivityError(String podConnectivityError) {
    this.podConnectivityError = podConnectivityError;
  }

  public V1HealthCheckResponse keyManagerConnectivity(Boolean keyManagerConnectivity) {
    this.keyManagerConnectivity = keyManagerConnectivity;
    return this;
  }

   /**
   * Indicates whether the Agent server can connect to the Key Manager
   * @return keyManagerConnectivity
  **/
  @ApiModelProperty(example = "null", 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 V1HealthCheckResponse keyManagerConnectivityError(String keyManagerConnectivityError) {
    this.keyManagerConnectivityError = keyManagerConnectivityError;
    return this;
  }

   /**
   * Error details in case of no Key Manager connectivity
   * @return keyManagerConnectivityError
  **/
  @ApiModelProperty(example = "null", value = "Error details in case of no Key Manager connectivity")
  public String getKeyManagerConnectivityError() {
    return keyManagerConnectivityError;
  }

  public void setKeyManagerConnectivityError(String keyManagerConnectivityError) {
    this.keyManagerConnectivityError = keyManagerConnectivityError;
  }

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

   /**
   * The version number of the Agent server
   * @return version
  **/
  @ApiModelProperty(example = "null", value = "The version number of the Agent server")
  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;
    }
    V1HealthCheckResponse v1HealthCheckResponse = (V1HealthCheckResponse) o;
    return Objects.equals(this.podConnectivity, v1HealthCheckResponse.podConnectivity) &&
        Objects.equals(this.podConnectivityError, v1HealthCheckResponse.podConnectivityError) &&
        Objects.equals(this.keyManagerConnectivity, v1HealthCheckResponse.keyManagerConnectivity) &&
        Objects.equals(this.keyManagerConnectivityError, v1HealthCheckResponse.keyManagerConnectivityError) &&
        Objects.equals(this.version, v1HealthCheckResponse.version);
  }

  @Override
  public int hashCode() {
    return Objects.hash(podConnectivity, podConnectivityError, keyManagerConnectivity, keyManagerConnectivityError, version);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1HealthCheckResponse {\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("    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