src.main.java.com.smartbear.readyapi.client.model.PropertyTransferSource 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
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;
/**
* Data structure for specifying the source of the property transfer.
**/
@ApiModel(description = "Data structure for specifying the source of the property transfer.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-24T08:38:08.699-04:00")
public class PropertyTransferSource {
private String sourceName = null;
private String property = null;
private String pathLanguage = null;
private String path = null;
/**
* The full name of the source test step.
**/
public PropertyTransferSource sourceName(String sourceName) {
this.sourceName = sourceName;
return this;
}
@ApiModelProperty(example = "null", value = "The full name of the source test step.")
@JsonProperty("sourceName")
public String getSourceName() {
return sourceName;
}
public void setSourceName(String sourceName) {
this.sourceName = sourceName;
}
/**
* Property name to get the values from.
**/
public PropertyTransferSource property(String property) {
this.property = property;
return this;
}
@ApiModelProperty(example = "null", value = "Property name to get the values from.")
@JsonProperty("property")
public String getProperty() {
return property;
}
public void setProperty(String property) {
this.property = property;
}
/**
* The language used to specify the path expression. Possible values: - XPath
- XQuery
- JSONPath
**/
public PropertyTransferSource pathLanguage(String pathLanguage) {
this.pathLanguage = pathLanguage;
return this;
}
@ApiModelProperty(example = "null", value = "The language used to specify the path expression. Possible values: - XPath
- XQuery
- JSONPath
")
@JsonProperty("pathLanguage")
public String getPathLanguage() {
return pathLanguage;
}
public void setPathLanguage(String pathLanguage) {
this.pathLanguage = pathLanguage;
}
/**
* The expression in the specified language that specifies the exact element from which the data source gets the data.
**/
public PropertyTransferSource path(String path) {
this.path = path;
return this;
}
@ApiModelProperty(example = "null", value = "The expression in the specified language that specifies the exact element from which the data source gets the data.")
@JsonProperty("path")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PropertyTransferSource propertyTransferSource = (PropertyTransferSource) o;
return Objects.equals(this.sourceName, propertyTransferSource.sourceName) &&
Objects.equals(this.property, propertyTransferSource.property) &&
Objects.equals(this.pathLanguage, propertyTransferSource.pathLanguage) &&
Objects.equals(this.path, propertyTransferSource.path);
}
@Override
public int hashCode() {
return Objects.hash(sourceName, property, pathLanguage, path);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PropertyTransferSource {\n");
sb.append(" sourceName: ").append(toIndentedString(sourceName)).append("\n");
sb.append(" property: ").append(toIndentedString(property)).append("\n");
sb.append(" pathLanguage: ").append(toIndentedString(pathLanguage)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).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