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

com.mypurecloud.sdk.model.EdgeVersionReport Maven / Gradle / Ivy

The newest version!
package com.mypurecloud.sdk.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.model.EdgeVersionInformation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
/**
 * EdgeVersionReport
 */

public class EdgeVersionReport  implements Serializable {
  
  private EdgeVersionInformation oldestVersion = null;
  private EdgeVersionInformation newestVersion = null;

  
  /**
   **/
  public EdgeVersionReport oldestVersion(EdgeVersionInformation oldestVersion) {
    this.oldestVersion = oldestVersion;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("oldestVersion")
  public EdgeVersionInformation getOldestVersion() {
    return oldestVersion;
  }
  public void setOldestVersion(EdgeVersionInformation oldestVersion) {
    this.oldestVersion = oldestVersion;
  }


  /**
   **/
  public EdgeVersionReport newestVersion(EdgeVersionInformation newestVersion) {
    this.newestVersion = newestVersion;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("newestVersion")
  public EdgeVersionInformation getNewestVersion() {
    return newestVersion;
  }
  public void setNewestVersion(EdgeVersionInformation newestVersion) {
    this.newestVersion = newestVersion;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EdgeVersionReport edgeVersionReport = (EdgeVersionReport) o;
    return Objects.equals(this.oldestVersion, edgeVersionReport.oldestVersion) &&
        Objects.equals(this.newestVersion, edgeVersionReport.newestVersion);
  }

  @Override
  public int hashCode() {
    return Objects.hash(oldestVersion, newestVersion);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EdgeVersionReport {\n");
    
    sb.append("    oldestVersion: ").append(toIndentedString(oldestVersion)).append("\n");
    sb.append("    newestVersion: ").append(toIndentedString(newestVersion)).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