nl.reinkrul.nuts.auth.DrawUpContractRequest Maven / Gradle / Ivy
/*
* 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;
/**
* DrawUpContractRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:35.626800+02:00[Europe/Amsterdam]")
public class DrawUpContractRequest {
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 static final String SERIALIZED_NAME_LEGAL_ENTITY = "legalEntity";
@SerializedName(SERIALIZED_NAME_LEGAL_ENTITY)
private String legalEntity;
public static final String SERIALIZED_NAME_VALID_FROM = "validFrom";
@SerializedName(SERIALIZED_NAME_VALID_FROM)
private String validFrom;
public static final String SERIALIZED_NAME_VALID_DURATION = "validDuration";
@SerializedName(SERIALIZED_NAME_VALID_DURATION)
private String validDuration;
public DrawUpContractRequest 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 DrawUpContractRequest 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 DrawUpContractRequest 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;
}
public DrawUpContractRequest legalEntity(String legalEntity) {
this.legalEntity = legalEntity;
return this;
}
/**
* DID of the organization as registered in the Nuts registry.
* @return legalEntity
**/
@ApiModelProperty(example = "did:nuts:128903fjgfslcnmgpe84", required = true, value = "DID of the organization as registered in the Nuts registry.")
public String getLegalEntity() {
return legalEntity;
}
public void setLegalEntity(String legalEntity) {
this.legalEntity = legalEntity;
}
public DrawUpContractRequest validFrom(String validFrom) {
this.validFrom = validFrom;
return this;
}
/**
* validFrom describes the time from which this contract should be considered valid. Current time is used when omitted.
* @return validFrom
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2019-06-24T14:32:00+02:00", value = "validFrom describes the time from which this contract should be considered valid. Current time is used when omitted.")
public String getValidFrom() {
return validFrom;
}
public void setValidFrom(String validFrom) {
this.validFrom = validFrom;
}
public DrawUpContractRequest validDuration(String validDuration) {
this.validDuration = validDuration;
return this;
}
/**
* The duration this contract is valid, starting from validFrom or current time if validFrom is omitted. Uses this node default when omitted. Valid time units are: 's', 'm', 'h'
* @return validDuration
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2h", value = "The duration this contract is valid, starting from validFrom or current time if validFrom is omitted. Uses this node default when omitted. Valid time units are: 's', 'm', 'h'")
public String getValidDuration() {
return validDuration;
}
public void setValidDuration(String validDuration) {
this.validDuration = validDuration;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DrawUpContractRequest drawUpContractRequest = (DrawUpContractRequest) o;
return Objects.equals(this.type, drawUpContractRequest.type) &&
Objects.equals(this.language, drawUpContractRequest.language) &&
Objects.equals(this.version, drawUpContractRequest.version) &&
Objects.equals(this.legalEntity, drawUpContractRequest.legalEntity) &&
Objects.equals(this.validFrom, drawUpContractRequest.validFrom) &&
Objects.equals(this.validDuration, drawUpContractRequest.validDuration);
}
@Override
public int hashCode() {
return Objects.hash(type, language, version, legalEntity, validFrom, validDuration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DrawUpContractRequest {\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(" legalEntity: ").append(toIndentedString(legalEntity)).append("\n");
sb.append(" validFrom: ").append(toIndentedString(validFrom)).append("\n");
sb.append(" validDuration: ").append(toIndentedString(validDuration)).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