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

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





@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00")
public class HarContent   {
  
  private Long size = null;
  private Long compression = null;
  private String mimeType = null;
  private String text = null;
  private String comment = null;

  
  /**
   **/
  public HarContent size(Long size) {
    this.size = size;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("size")
  public Long getSize() {
    return size;
  }
  public void setSize(Long size) {
    this.size = size;
  }

  
  /**
   **/
  public HarContent compression(Long compression) {
    this.compression = compression;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("compression")
  public Long getCompression() {
    return compression;
  }
  public void setCompression(Long compression) {
    this.compression = compression;
  }

  
  /**
   **/
  public HarContent mimeType(String mimeType) {
    this.mimeType = mimeType;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("mimeType")
  public String getMimeType() {
    return mimeType;
  }
  public void setMimeType(String mimeType) {
    this.mimeType = mimeType;
  }

  
  /**
   **/
  public HarContent text(String text) {
    this.text = text;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("text")
  public String getText() {
    return text;
  }
  public void setText(String text) {
    this.text = text;
  }

  
  /**
   **/
  public HarContent 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;
    }
    HarContent harContent = (HarContent) o;
    return Objects.equals(this.size, harContent.size) &&
        Objects.equals(this.compression, harContent.compression) &&
        Objects.equals(this.mimeType, harContent.mimeType) &&
        Objects.equals(this.text, harContent.text) &&
        Objects.equals(this.comment, harContent.comment);
  }

  @Override
  public int hashCode() {
    return Objects.hash(size, compression, mimeType, text, comment);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class HarContent {\n");
    
    sb.append("    size: ").append(toIndentedString(size)).append("\n");
    sb.append("    compression: ").append(toIndentedString(compression)).append("\n");
    sb.append("    mimeType: ").append(toIndentedString(mimeType)).append("\n");
    sb.append("    text: ").append(toIndentedString(text)).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