org.opendatadiscovery.adapter.contract.model.DataInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adapter-contract-server Show documentation
Show all versions of adapter-contract-server Show documentation
Adapter Server Contract defines OpenDataDiscovery APIs and models for Java pull adapters
The newest version!
package org.opendatadiscovery.adapter.contract.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.jackson.nullable.JsonNullable;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* DataInput
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2022-09-27T11:48:09.478558Z[Etc/UTC]")
public class DataInput {
@JsonProperty("outputs")
@Valid
private List outputs = null;
public DataInput outputs(List outputs) {
this.outputs = outputs;
return this;
}
public DataInput addOutputsItem(String outputsItem) {
if (this.outputs == null) {
this.outputs = new ArrayList<>();
}
this.outputs.add(outputsItem);
return this;
}
/**
* Get outputs
* @return outputs
*/
@ApiModelProperty(value = "")
public List getOutputs() {
return outputs;
}
public void setOutputs(List outputs) {
this.outputs = outputs;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DataInput dataInput = (DataInput) o;
return Objects.equals(this.outputs, dataInput.outputs);
}
@Override
public int hashCode() {
return Objects.hash(outputs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataInput {\n");
sb.append(" outputs: ").append(toIndentedString(outputs)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}