nl.reinkrul.nuts.auth.ContractResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java client library for using the Nuts Node's REST API.
/*
* Nuts Auth Service API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package nl.reinkrul.nuts.auth;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* ContractResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:35.626800+02:00[Europe/Amsterdam]")
public class ContractResponse {
public static final String SERIALIZED_NAME_MESSAGE = "message";
@SerializedName(SERIALIZED_NAME_MESSAGE)
private String message;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private String type;
public static final String SERIALIZED_NAME_LANGUAGE = "language";
@SerializedName(SERIALIZED_NAME_LANGUAGE)
private String language;
public static final String SERIALIZED_NAME_VERSION = "version";
@SerializedName(SERIALIZED_NAME_VERSION)
private String version;
public ContractResponse message(String message) {
this.message = message;
return this;
}
/**
* The contract message.
* @return message
**/
@ApiModelProperty(example = "I hereby declare that Pro Gen - Italia should be make requests in my name", required = true, value = "The contract message.")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public ContractResponse type(String type) {
this.type = type;
return this;
}
/**
* Type of which contract to sign.
* @return type
**/
@ApiModelProperty(example = "BehandelaarLogin", required = true, value = "Type of which contract to sign.")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public ContractResponse language(String language) {
this.language = language;
return this;
}
/**
* Language of the contract in all caps.
* @return language
**/
@ApiModelProperty(example = "NL", required = true, value = "Language of the contract in all caps.")
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public ContractResponse version(String version) {
this.version = version;
return this;
}
/**
* Version of the contract.
* @return version
**/
@ApiModelProperty(example = "v1", required = true, value = "Version of the contract.")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ContractResponse contractResponse = (ContractResponse) o;
return Objects.equals(this.message, contractResponse.message) &&
Objects.equals(this.type, contractResponse.type) &&
Objects.equals(this.language, contractResponse.language) &&
Objects.equals(this.version, contractResponse.version);
}
@Override
public int hashCode() {
return Objects.hash(message, type, language, version);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ContractResponse {\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy