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

src.main.java.com.smartbear.readyapi.client.model.HarCache 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 com.smartbear.readyapi.client.model.HarCacheRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;





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

  
  /**
   **/
  public HarCache beforeRequest(HarCacheRequest beforeRequest) {
    this.beforeRequest = beforeRequest;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("beforeRequest")
  public HarCacheRequest getBeforeRequest() {
    return beforeRequest;
  }
  public void setBeforeRequest(HarCacheRequest beforeRequest) {
    this.beforeRequest = beforeRequest;
  }

  
  /**
   **/
  public HarCache afterRequest(HarCacheRequest afterRequest) {
    this.afterRequest = afterRequest;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("afterRequest")
  public HarCacheRequest getAfterRequest() {
    return afterRequest;
  }
  public void setAfterRequest(HarCacheRequest afterRequest) {
    this.afterRequest = afterRequest;
  }

  
  /**
   **/
  public HarCache 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;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    HarCache harCache = (HarCache) o;
    return Objects.equals(this.beforeRequest, harCache.beforeRequest) &&
        Objects.equals(this.afterRequest, harCache.afterRequest) &&
        Objects.equals(this.comment, harCache.comment);
  }

  @Override
  public int hashCode() {
    return Objects.hash(beforeRequest, afterRequest, comment);
  }

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