nl.reinkrul.nuts.vdr.DIDUpdateRequest 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 Verifiable Data Registry API spec
* API specification for the Verifiable Data Registry
*
* 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.vdr;
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;
import nl.reinkrul.nuts.vdr.DIDDocument;
/**
* DIDUpdateRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:34.319584+02:00[Europe/Amsterdam]")
public class DIDUpdateRequest {
public static final String SERIALIZED_NAME_DOCUMENT = "document";
@SerializedName(SERIALIZED_NAME_DOCUMENT)
private DIDDocument document;
public static final String SERIALIZED_NAME_CURRENT_HASH = "currentHash";
@SerializedName(SERIALIZED_NAME_CURRENT_HASH)
private String currentHash;
public DIDUpdateRequest document(DIDDocument document) {
this.document = document;
return this;
}
/**
* Get document
* @return document
**/
@ApiModelProperty(required = true, value = "")
public DIDDocument getDocument() {
return document;
}
public void setDocument(DIDDocument document) {
this.document = document;
}
public DIDUpdateRequest currentHash(String currentHash) {
this.currentHash = currentHash;
return this;
}
/**
* The hash of the document in hex format.
* @return currentHash
**/
@ApiModelProperty(required = true, value = "The hash of the document in hex format.")
public String getCurrentHash() {
return currentHash;
}
public void setCurrentHash(String currentHash) {
this.currentHash = currentHash;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DIDUpdateRequest diDUpdateRequest = (DIDUpdateRequest) o;
return Objects.equals(this.document, diDUpdateRequest.document) &&
Objects.equals(this.currentHash, diDUpdateRequest.currentHash);
}
@Override
public int hashCode() {
return Objects.hash(document, currentHash);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DIDUpdateRequest {\n");
sb.append(" document: ").append(toIndentedString(document)).append("\n");
sb.append(" currentHash: ").append(toIndentedString(currentHash)).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