nl.reinkrul.nuts.extra.NutsOrganizationCredential Maven / Gradle / Ivy
/*
* Additional OpenAPI spec for interacting with the Nuts APIs.
* 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.extra;
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.extra.Organization;
/**
* A credential according to the W3C and Nuts specs.
*/
@ApiModel(description = "A credential according to the W3C and Nuts specs.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:35.909931+02:00[Europe/Amsterdam]")
public class NutsOrganizationCredential {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_ORGANIZATION = "organization";
@SerializedName(SERIALIZED_NAME_ORGANIZATION)
private Organization organization;
public NutsOrganizationCredential id(String id) {
this.id = id;
return this;
}
/**
* Identifies the subject of the credential. In other words, the ID of the entity to which the credential was issued. Generally a Nuts DID.
* @return id
**/
@ApiModelProperty(required = true, value = "Identifies the subject of the credential. In other words, the ID of the entity to which the credential was issued. Generally a Nuts DID.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public NutsOrganizationCredential organization(Organization organization) {
this.organization = organization;
return this;
}
/**
* Get organization
* @return organization
**/
@ApiModelProperty(required = true, value = "")
public Organization getOrganization() {
return organization;
}
public void setOrganization(Organization organization) {
this.organization = organization;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NutsOrganizationCredential nutsOrganizationCredential = (NutsOrganizationCredential) o;
return Objects.equals(this.id, nutsOrganizationCredential.id) &&
Objects.equals(this.organization, nutsOrganizationCredential.organization);
}
@Override
public int hashCode() {
return Objects.hash(id, organization);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NutsOrganizationCredential {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" organization: ").append(toIndentedString(organization)).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