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

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



/**
 * Data structure for the <a href=\"http://readyapi.smartbear.com/structure/assertions/property/content/not_contains\" target=\"_blank\">Not Contains</a> assertion.
 **/

@ApiModel(description = "Data structure for the Not Contains assertion.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-24T08:38:08.699-04:00")
public class SimpleNotContainsAssertion extends Assertion  {
  
  private String type = null;
  private String token = null;
  private Boolean ignoreCase = false;
  private Boolean useRegexp = false;

  
  /**
   * 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 SimpleNotContainsAssertion 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; } /** * The sought-for text or regular expression. **/ public SimpleNotContainsAssertion token(String token) { this.token = token; return this; } @ApiModelProperty(example = "null", value = "The sought-for text or regular expression.") @JsonProperty("token") public String getToken() { return token; } public void setToken(String token) { this.token = token; } /** * Specifies if the search is case-sensitive (false) or not (true). Ignored, if you search with regular expressions. **/ public SimpleNotContainsAssertion ignoreCase(Boolean ignoreCase) { this.ignoreCase = ignoreCase; return this; } @ApiModelProperty(example = "null", value = "Specifies if the search is case-sensitive (false) or not (true). Ignored, if you search with regular expressions.") @JsonProperty("ignoreCase") public Boolean getIgnoreCase() { return ignoreCase; } public void setIgnoreCase(Boolean ignoreCase) { this.ignoreCase = ignoreCase; } /** * Specifies if the token property is a regular expression (true) or plain text (false). **/ public SimpleNotContainsAssertion useRegexp(Boolean useRegexp) { this.useRegexp = useRegexp; return this; } @ApiModelProperty(example = "null", value = "Specifies if the token property is a regular expression (true) or plain text (false).") @JsonProperty("useRegexp") public Boolean getUseRegexp() { return useRegexp; } public void setUseRegexp(Boolean useRegexp) { this.useRegexp = useRegexp; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SimpleNotContainsAssertion simpleNotContainsAssertion = (SimpleNotContainsAssertion) o; return Objects.equals(this.type, simpleNotContainsAssertion.type) && Objects.equals(this.token, simpleNotContainsAssertion.token) && Objects.equals(this.ignoreCase, simpleNotContainsAssertion.ignoreCase) && Objects.equals(this.useRegexp, simpleNotContainsAssertion.useRegexp) && super.equals(o); } @Override public int hashCode() { return Objects.hash(type, token, ignoreCase, useRegexp, super.hashCode()); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SimpleNotContainsAssertion {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" token: ").append(toIndentedString(token)).append("\n"); sb.append(" ignoreCase: ").append(toIndentedString(ignoreCase)).append("\n"); sb.append(" useRegexp: ").append(toIndentedString(useRegexp)).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