![JAR search and dependency download from the Maven repository](/logo.png)
io.nem.symbol.sdk.openapi.jersey2.model.CosignatureDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of symbol-openapi-jersey2-client Show documentation
Show all versions of symbol-openapi-jersey2-client Show documentation
symbol-openapi-jersey2-client Generated Open API client for symbol-sdk-java
/*
* Catapult REST Endpoints
* OpenAPI Specification of catapult-rest 2.3.0
*
* The version of the OpenAPI document: 0.11.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.nem.symbol.sdk.openapi.jersey2.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.nem.symbol.sdk.openapi.jersey2.model.CosignatureDTOAllOf;
import io.nem.symbol.sdk.openapi.jersey2.model.VerifiableEntityDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* CosignatureDTO
*/
@JsonPropertyOrder({
CosignatureDTO.JSON_PROPERTY_SIGNATURE,
CosignatureDTO.JSON_PROPERTY_VERSION,
CosignatureDTO.JSON_PROPERTY_SIGNER_PUBLIC_KEY
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-02-02T19:39:53.661Z[UTC]")
public class CosignatureDTO {
public static final String JSON_PROPERTY_SIGNATURE = "signature";
private String signature;
public static final String JSON_PROPERTY_VERSION = "version";
private java.math.BigInteger version = null;
public static final String JSON_PROPERTY_SIGNER_PUBLIC_KEY = "signerPublicKey";
private String signerPublicKey;
public CosignatureDTO signature(String signature) {
this.signature = signature;
return this;
}
/**
* Entity's signature generated by the signer.
* @return signature
**/
@ApiModelProperty(example = "4B408BBEDF25F2AC8E0E44A6E51E3CCBA03885902055F75EB9FF50433532CA44BF9175FDA7502EEE2FC1617126E453A2BD692BAFDAAF06BC8EDEBA7961B3730D", required = true, value = "Entity's signature generated by the signer.")
@JsonProperty(JSON_PROPERTY_SIGNATURE)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSignature() {
return signature;
}
public void setSignature(String signature) {
this.signature = signature;
}
public CosignatureDTO version(java.math.BigInteger version) {
this.version = version;
return this;
}
/**
* Cosignature version.
* @return version
**/
@ApiModelProperty(example = "0", required = true, value = "Cosignature version.")
@JsonProperty(JSON_PROPERTY_VERSION)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public java.math.BigInteger getVersion() {
return version;
}
public void setVersion(java.math.BigInteger version) {
this.version = version;
}
public CosignatureDTO signerPublicKey(String signerPublicKey) {
this.signerPublicKey = signerPublicKey;
return this;
}
/**
* Public key.
* @return signerPublicKey
**/
@ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "Public key.")
@JsonProperty(JSON_PROPERTY_SIGNER_PUBLIC_KEY)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSignerPublicKey() {
return signerPublicKey;
}
public void setSignerPublicKey(String signerPublicKey) {
this.signerPublicKey = signerPublicKey;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CosignatureDTO cosignatureDTO = (CosignatureDTO) o;
return Objects.equals(this.signature, cosignatureDTO.signature) &&
Objects.equals(this.version, cosignatureDTO.version) &&
Objects.equals(this.signerPublicKey, cosignatureDTO.signerPublicKey);
}
@Override
public int hashCode() {
return Objects.hash(signature, version, signerPublicKey);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CosignatureDTO {\n");
sb.append(" signature: ").append(toIndentedString(signature)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" signerPublicKey: ").append(toIndentedString(signerPublicKey)).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