fi.metatavu.metaform.client.MetaformScript Maven / Gradle / Ivy
/*
* Metaform REST API
* REST API for Metaform
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package fi.metatavu.metaform.client;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* MetaformScript
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-29T14:02:51.404+03:00")
public class MetaformScript {
@JsonProperty("type")
private String type = null;
@JsonProperty("data")
private String data = null;
public MetaformScript type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(required = true, value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public MetaformScript data(String data) {
this.data = data;
return this;
}
/**
* Get data
* @return data
**/
@ApiModelProperty(required = true, value = "")
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MetaformScript metaformScript = (MetaformScript) o;
return Objects.equals(this.type, metaformScript.type) &&
Objects.equals(this.data, metaformScript.data);
}
@Override
public int hashCode() {
return Objects.hash(type, data);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetaformScript {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).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