src.main.java.com.smartbear.readyapi.client.model.HarResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ready-api-testserver-client Show documentation
Show all versions of ready-api-testserver-client Show documentation
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.HarContent;
import com.smartbear.readyapi.client.model.HarCookie;
import com.smartbear.readyapi.client.model.HarHeader;
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 HarResponse {
private Integer status = null;
private String statusText = null;
private String httpVersion = null;
private List cookies = new ArrayList();
private List headers = new ArrayList();
private HarContent content = null;
private String redirectURL = null;
private Long headersSize = null;
private Long bodySize = null;
private String comment = null;
/**
**/
public HarResponse status(Integer status) {
this.status = status;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("status")
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
/**
**/
public HarResponse statusText(String statusText) {
this.statusText = statusText;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("statusText")
public String getStatusText() {
return statusText;
}
public void setStatusText(String statusText) {
this.statusText = statusText;
}
/**
**/
public HarResponse httpVersion(String httpVersion) {
this.httpVersion = httpVersion;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("httpVersion"")
public String getHttpVersion() {
return httpVersion;
}
public void setHttpVersion(String httpVersion) {
this.httpVersion = httpVersion;
}
/**
**/
public HarResponse cookies(List cookies) {
this.cookies = cookies;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("cookies")
public List getCookies() {
return cookies;
}
public void setCookies(List cookies) {
this.cookies = cookies;
}
/**
**/
public HarResponse headers(List headers) {
this.headers = headers;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("headers")
public List getHeaders() {
return headers;
}
public void setHeaders(List headers) {
this.headers = headers;
}
/**
**/
public HarResponse content(HarContent content) {
this.content = content;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("content")
public HarContent getContent() {
return content;
}
public void setContent(HarContent content) {
this.content = content;
}
/**
**/
public HarResponse redirectURL(String redirectURL) {
this.redirectURL = redirectURL;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("redirectURL")
public String getRedirectURL() {
return redirectURL;
}
public void setRedirectURL(String redirectURL) {
this.redirectURL = redirectURL;
}
/**
**/
public HarResponse headersSize(Long headersSize) {
this.headersSize = headersSize;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("headersSize")
public Long getHeadersSize() {
return headersSize;
}
public void setHeadersSize(Long headersSize) {
this.headersSize = headersSize;
}
/**
**/
public HarResponse bodySize(Long bodySize) {
this.bodySize = bodySize;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("bodySize")
public Long getBodySize() {
return bodySize;
}
public void setBodySize(Long bodySize) {
this.bodySize = bodySize;
}
/**
**/
public HarResponse 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;
}
HarResponse harResponse = (HarResponse) o;
return Objects.equals(this.status, harResponse.status) &&
Objects.equals(this.statusText, harResponse.statusText) &&
Objects.equals(this.httpVersion, harResponse.httpVersion) &&
Objects.equals(this.cookies, harResponse.cookies) &&
Objects.equals(this.headers, harResponse.headers) &&
Objects.equals(this.content, harResponse.content) &&
Objects.equals(this.redirectURL, harResponse.redirectURL) &&
Objects.equals(this.headersSize, harResponse.headersSize) &&
Objects.equals(this.bodySize, harResponse.bodySize) &&
Objects.equals(this.comment, harResponse.comment);
}
@Override
public int hashCode() {
return Objects.hash(status, statusText, httpVersion, cookies, headers, content, redirectURL, headersSize, bodySize, comment);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HarResponse {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" statusText: ").append(toIndentedString(statusText)).append("\n");
sb.append(" httpVersion: ").append(toIndentedString(httpVersion)).append("\n");
sb.append(" cookies: ").append(toIndentedString(cookies)).append("\n");
sb.append(" headers: ").append(toIndentedString(headers)).append("\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" redirectURL: ").append(toIndentedString(redirectURL)).append("\n");
sb.append(" headersSize: ").append(toIndentedString(headersSize)).append("\n");
sb.append(" bodySize: ").append(toIndentedString(bodySize)).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 ");
}
}