src.main.java.com.smartbear.readyapi.client.model.DataSource 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.DataGenDataSource;
import com.smartbear.readyapi.client.model.ExcelDataSource;
import com.smartbear.readyapi.client.model.FileDataSource;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Data structure for specifying a <a href=\"http://readyapi.smartbear.com/structure/steps/data/source/start\">DataSource</a>.
**/
@ApiModel(description = "Data structure for specifying a DataSource.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00")
public class DataSource {
private List properties = new ArrayList();
private Map> grid = new HashMap>();
private ExcelDataSource excel = null;
private FileDataSource file = null;
private DataGenDataSource dataGen = null;
/**
* The array of properties used to store retrieved data.
**/
public DataSource properties(List properties) {
this.properties = properties;
return this;
}
@ApiModelProperty(example = "null", value = "The array of properties used to store retrieved data.")
@JsonProperty("properties")
public List getProperties() {
return properties;
}
public void setProperties(List properties) {
this.properties = properties;
}
/**
* Data structure for Grid Data Source.
**/
public DataSource grid(Map> grid) {
this.grid = grid;
return this;
}
@ApiModelProperty(example = "null", value = "Data structure for Grid Data Source.")
@JsonProperty("grid")
public Map> getGrid() {
return grid;
}
public void setGrid(Map> grid) {
this.grid = grid;
}
/**
**/
public DataSource excel(ExcelDataSource excel) {
this.excel = excel;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("excel")
public ExcelDataSource getExcel() {
return excel;
}
public void setExcel(ExcelDataSource excel) {
this.excel = excel;
}
/**
**/
public DataSource file(FileDataSource file) {
this.file = file;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("file")
public FileDataSource getFile() {
return file;
}
public void setFile(FileDataSource file) {
this.file = file;
}
/**
**/
public DataSource dataGen(DataGenDataSource dataGen) {
this.dataGen = dataGen;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("dataGen")
public DataGenDataSource getDataGen() {
return dataGen;
}
public void setDataGen(DataGenDataSource dataGen) {
this.dataGen = dataGen;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DataSource dataSource = (DataSource) o;
return Objects.equals(this.properties, dataSource.properties) &&
Objects.equals(this.grid, dataSource.grid) &&
Objects.equals(this.excel, dataSource.excel) &&
Objects.equals(this.file, dataSource.file) &&
Objects.equals(this.dataGen, dataSource.dataGen);
}
@Override
public int hashCode() {
return Objects.hash(properties, grid, excel, file, dataGen);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataSource {\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" grid: ").append(toIndentedString(grid)).append("\n");
sb.append(" excel: ").append(toIndentedString(excel)).append("\n");
sb.append(" file: ").append(toIndentedString(file)).append("\n");
sb.append(" dataGen: ").append(toIndentedString(dataGen)).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 ");
}
}