src.main.java.com.smartbear.readyapi.client.model.ResponseSLAAssertion 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.Assertion;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Data structure for the <a herf=\"http://readyapi.smartbear.com/structure/assertions/sla/response\">Response SLA</a> assertion.
**/
@ApiModel(description = "Data structure for the Response SLA assertion.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00")
public class ResponseSLAAssertion extends Assertion {
private String type = null;
private String name = null;
private Integer maxResponseTime = null;
/**
* Assertion type. Possible values: - AssertionStruct
- Contains
- Invalid HTTP Status Codes
- JDBC Status
- JDBC Timeout
- JsonPath Count
- JsonPath Match
- Not Contains
- Response SLA
- Script Assertion
- Valid HTTP Status Codes
- XPath Match
- XQuery Match
**/
public ResponseSLAAssertion type(String type) {
this.type = type;
return this;
}
@ApiModelProperty(example = "null", value = "Assertion type. Possible values: - AssertionStruct
- Contains
- Invalid HTTP Status Codes
- JDBC Status
- JDBC Timeout
- JsonPath Count
- JsonPath Match
- Not Contains
- Response SLA
- Script Assertion
- Valid HTTP Status Codes
- XPath Match
- XQuery Match
")
@JsonProperty("type")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
**/
public ResponseSLAAssertion name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Maximum accepted response time.
**/
public ResponseSLAAssertion maxResponseTime(Integer maxResponseTime) {
this.maxResponseTime = maxResponseTime;
return this;
}
@ApiModelProperty(example = "null", value = "Maximum accepted response time.")
@JsonProperty("maxResponseTime")
public Integer getMaxResponseTime() {
return maxResponseTime;
}
public void setMaxResponseTime(Integer maxResponseTime) {
this.maxResponseTime = maxResponseTime;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ResponseSLAAssertion responseSLAAssertion = (ResponseSLAAssertion) o;
return Objects.equals(this.type, responseSLAAssertion.type) &&
Objects.equals(this.name, responseSLAAssertion.name) &&
Objects.equals(this.maxResponseTime, responseSLAAssertion.maxResponseTime) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(type, name, maxResponseTime, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ResponseSLAAssertion {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" maxResponseTime: ").append(toIndentedString(maxResponseTime)).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 ");
}
}