de.id4i.api.model.TransferSendInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of id4i-api-client Show documentation
Show all versions of id4i-api-client Show documentation
The ID4i API is an HTTP API that allows developer to implement applications on top of http://id4i.de. This provides for automating GUID creation and object registration, working with Collections of GUIDs and Routing.
The newest version!
/*
* ID4i API
* ID4i HTTP API
*
* OpenAPI spec version: 0.9.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package de.id4i.api.model;
import java.util.Objects;
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 java.util.ArrayList;
import java.util.List;
/**
* TransferSendInfo
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-11-21T14:03:07.356Z")
public class TransferSendInfo {
@SerializedName("holderOrganizationId")
private String holderOrganizationId = null;
@SerializedName("keepOwnership")
private Boolean keepOwnership = null;
@SerializedName("openForClaims")
private Boolean openForClaims = null;
@SerializedName("ownerOrganizationId")
private String ownerOrganizationId = null;
@SerializedName("recipientOrganizationIds")
private List recipientOrganizationIds = new ArrayList<>();
/**
* The current holder of the object
* @return holderOrganizationId
**/
@ApiModelProperty(example = "de.id4i", value = "The current holder of the object")
public String getHolderOrganizationId() {
return holderOrganizationId;
}
public TransferSendInfo keepOwnership(Boolean keepOwnership) {
this.keepOwnership = keepOwnership;
return this;
}
/**
* Keep the public ownership while transferring the object
* @return keepOwnership
**/
@ApiModelProperty(example = "true", required = true, value = "Keep the public ownership while transferring the object")
public Boolean isKeepOwnership() {
return keepOwnership;
}
public void setKeepOwnership(Boolean keepOwnership) {
this.keepOwnership = keepOwnership;
}
public TransferSendInfo openForClaims(Boolean openForClaims) {
this.openForClaims = openForClaims;
return this;
}
/**
* Allow anyone who knows (or can scan) the ID4N to claim ownership of this object
* @return openForClaims
**/
@ApiModelProperty(example = "false", required = true, value = "Allow anyone who knows (or can scan) the ID4N to claim ownership of this object")
public Boolean isOpenForClaims() {
return openForClaims;
}
public void setOpenForClaims(Boolean openForClaims) {
this.openForClaims = openForClaims;
}
/**
* The current publicly visible owner of the object
* @return ownerOrganizationId
**/
@ApiModelProperty(example = "de.bluerain", value = "The current publicly visible owner of the object")
public String getOwnerOrganizationId() {
return ownerOrganizationId;
}
public TransferSendInfo recipientOrganizationIds(List recipientOrganizationIds) {
this.recipientOrganizationIds = recipientOrganizationIds;
return this;
}
public TransferSendInfo addRecipientOrganizationIdsItem(String recipientOrganizationIdsItem) {
this.recipientOrganizationIds.add(recipientOrganizationIdsItem);
return this;
}
/**
* Allow only these organizations to obtain this object
* @return recipientOrganizationIds
**/
@ApiModelProperty(example = "[\"de.acme\",\"com.porsche\",\"de.bluerain\"]", required = true, value = "Allow only these organizations to obtain this object")
public List getRecipientOrganizationIds() {
return recipientOrganizationIds;
}
public void setRecipientOrganizationIds(List recipientOrganizationIds) {
this.recipientOrganizationIds = recipientOrganizationIds;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TransferSendInfo transferSendInfo = (TransferSendInfo) o;
return Objects.equals(this.holderOrganizationId, transferSendInfo.holderOrganizationId) &&
Objects.equals(this.keepOwnership, transferSendInfo.keepOwnership) &&
Objects.equals(this.openForClaims, transferSendInfo.openForClaims) &&
Objects.equals(this.ownerOrganizationId, transferSendInfo.ownerOrganizationId) &&
Objects.equals(this.recipientOrganizationIds, transferSendInfo.recipientOrganizationIds);
}
@Override
public int hashCode() {
return Objects.hash(holderOrganizationId, keepOwnership, openForClaims, ownerOrganizationId, recipientOrganizationIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TransferSendInfo {\n");
sb.append(" holderOrganizationId: ").append(toIndentedString(holderOrganizationId)).append("\n");
sb.append(" keepOwnership: ").append(toIndentedString(keepOwnership)).append("\n");
sb.append(" openForClaims: ").append(toIndentedString(openForClaims)).append("\n");
sb.append(" ownerOrganizationId: ").append(toIndentedString(ownerOrganizationId)).append("\n");
sb.append(" recipientOrganizationIds: ").append(toIndentedString(recipientOrganizationIds)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy