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

src.main.java.com.smartbear.readyapi.client.model.HarCacheRequest Maven / Gradle / Ivy

Go to download

Java client library for creating and executing test recipes against Ready!API TestServer

There is a newer version: 1.2.1
Show newest version
package com.smartbear.readyapi.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;





@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-21T13:20:07.368+02:00")
public class HarCacheRequest   {
  
  private Date expires = null;
  private Date lastAccess = null;
  private Long hitCount = null;
  private String comment = null;
  private String etag = null;

  
  /**
   **/
  public HarCacheRequest expires(Date expires) {
    this.expires = expires;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("expires")
  public Date getExpires() {
    return expires;
  }
  public void setExpires(Date expires) {
    this.expires = expires;
  }

  
  /**
   **/
  public HarCacheRequest lastAccess(Date lastAccess) {
    this.lastAccess = lastAccess;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("lastAccess")
  public Date getLastAccess() {
    return lastAccess;
  }
  public void setLastAccess(Date lastAccess) {
    this.lastAccess = lastAccess;
  }

  
  /**
   **/
  public HarCacheRequest hitCount(Long hitCount) {
    this.hitCount = hitCount;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("hitCount")
  public Long getHitCount() {
    return hitCount;
  }
  public void setHitCount(Long hitCount) {
    this.hitCount = hitCount;
  }

  
  /**
   **/
  public HarCacheRequest comment(String comment) {
    this.comment = comment;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("comment")
  public String getComment() {
    return comment;
  }
  public void setComment(String comment) {
    this.comment = comment;
  }

  
  /**
   **/
  public HarCacheRequest etag(String etag) {
    this.etag = etag;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("etag")
  public String getEtag() {
    return etag;
  }
  public void setEtag(String etag) {
    this.etag = etag;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    HarCacheRequest harCacheRequest = (HarCacheRequest) o;
    return Objects.equals(this.expires, harCacheRequest.expires) &&
        Objects.equals(this.lastAccess, harCacheRequest.lastAccess) &&
        Objects.equals(this.hitCount, harCacheRequest.hitCount) &&
        Objects.equals(this.comment, harCacheRequest.comment) &&
        Objects.equals(this.etag, harCacheRequest.etag);
  }

  @Override
  public int hashCode() {
    return Objects.hash(expires, lastAccess, hitCount, comment, etag);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class HarCacheRequest {\n");
    
    sb.append("    expires: ").append(toIndentedString(expires)).append("\n");
    sb.append("    lastAccess: ").append(toIndentedString(lastAccess)).append("\n");
    sb.append("    hitCount: ").append(toIndentedString(hitCount)).append("\n");
    sb.append("    comment: ").append(toIndentedString(comment)).append("\n");
    sb.append("    etag: ").append(toIndentedString(etag)).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