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

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

Go to download

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

The newest version!
package com.smartbear.readyapi.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.smartbear.readyapi.client.model.HarBrowser;
import com.smartbear.readyapi.client.model.HarCreator;
import com.smartbear.readyapi.client.model.HarEntry;
import com.smartbear.readyapi.client.model.HarPage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;





@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00")
public class HarLog   {
  
  private String version = null;
  private HarCreator creator = null;
  private HarBrowser browser = null;
  private List pages = new ArrayList();
  private List entries = new ArrayList();
  private String comment = null;

  
  /**
   **/
  public HarLog version(String version) {
    this.version = version;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("version")
  public String getVersion() {
    return version;
  }
  public void setVersion(String version) {
    this.version = version;
  }

  
  /**
   **/
  public HarLog creator(HarCreator creator) {
    this.creator = creator;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("creator")
  public HarCreator getCreator() {
    return creator;
  }
  public void setCreator(HarCreator creator) {
    this.creator = creator;
  }

  
  /**
   **/
  public HarLog browser(HarBrowser browser) {
    this.browser = browser;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("browser")
  public HarBrowser getBrowser() {
    return browser;
  }
  public void setBrowser(HarBrowser browser) {
    this.browser = browser;
  }

  
  /**
   **/
  public HarLog pages(List pages) {
    this.pages = pages;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("pages")
  public List getPages() {
    return pages;
  }
  public void setPages(List pages) {
    this.pages = pages;
  }

  
  /**
   **/
  public HarLog entries(List entries) {
    this.entries = entries;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("entries")
  public List getEntries() {
    return entries;
  }
  public void setEntries(List entries) {
    this.entries = entries;
  }

  
  /**
   **/
  public HarLog 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;
    }
    HarLog harLog = (HarLog) o;
    return Objects.equals(this.version, harLog.version) &&
        Objects.equals(this.creator, harLog.creator) &&
        Objects.equals(this.browser, harLog.browser) &&
        Objects.equals(this.pages, harLog.pages) &&
        Objects.equals(this.entries, harLog.entries) &&
        Objects.equals(this.comment, harLog.comment);
  }

  @Override
  public int hashCode() {
    return Objects.hash(version, creator, browser, pages, entries, comment);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class HarLog {\n");
    
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    creator: ").append(toIndentedString(creator)).append("\n");
    sb.append("    browser: ").append(toIndentedString(browser)).append("\n");
    sb.append("    pages: ").append(toIndentedString(pages)).append("\n");
    sb.append("    entries: ").append(toIndentedString(entries)).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