nl.reinkrul.nuts.vdr.DIDResolutionResult 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;
import nl.reinkrul.nuts.vdr.DIDDocumentMetadata;
/**
* DIDResolutionResult
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:34.319584+02:00[Europe/Amsterdam]")
public class DIDResolutionResult {
public static final String SERIALIZED_NAME_DOCUMENT = "document";
@SerializedName(SERIALIZED_NAME_DOCUMENT)
private DIDDocument document;
public static final String SERIALIZED_NAME_DOCUMENT_METADATA = "documentMetadata";
@SerializedName(SERIALIZED_NAME_DOCUMENT_METADATA)
private DIDDocumentMetadata documentMetadata;
public DIDResolutionResult 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 DIDResolutionResult documentMetadata(DIDDocumentMetadata documentMetadata) {
this.documentMetadata = documentMetadata;
return this;
}
/**
* Get documentMetadata
* @return documentMetadata
**/
@ApiModelProperty(required = true, value = "")
public DIDDocumentMetadata getDocumentMetadata() {
return documentMetadata;
}
public void setDocumentMetadata(DIDDocumentMetadata documentMetadata) {
this.documentMetadata = documentMetadata;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DIDResolutionResult diDResolutionResult = (DIDResolutionResult) o;
return Objects.equals(this.document, diDResolutionResult.document) &&
Objects.equals(this.documentMetadata, diDResolutionResult.documentMetadata);
}
@Override
public int hashCode() {
return Objects.hash(document, documentMetadata);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DIDResolutionResult {\n");
sb.append(" document: ").append(toIndentedString(document)).append("\n");
sb.append(" documentMetadata: ").append(toIndentedString(documentMetadata)).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