
io.nem.symbol.sdk.openapi.jersey2.model.ParentPublicKeySignaturePair 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.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ParentPublicKeySignaturePair
*/
@JsonPropertyOrder({
ParentPublicKeySignaturePair.JSON_PROPERTY_PARENT_PUBLIC_KEY,
ParentPublicKeySignaturePair.JSON_PROPERTY_SIGNATURE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-02-02T19:39:53.661Z[UTC]")
public class ParentPublicKeySignaturePair {
public static final String JSON_PROPERTY_PARENT_PUBLIC_KEY = "parentPublicKey";
private String parentPublicKey;
public static final String JSON_PROPERTY_SIGNATURE = "signature";
private String signature;
public ParentPublicKeySignaturePair parentPublicKey(String parentPublicKey) {
this.parentPublicKey = parentPublicKey;
return this;
}
/**
* Public key.
* @return parentPublicKey
**/
@ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "Public key.")
@JsonProperty(JSON_PROPERTY_PARENT_PUBLIC_KEY)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getParentPublicKey() {
return parentPublicKey;
}
public void setParentPublicKey(String parentPublicKey) {
this.parentPublicKey = parentPublicKey;
}
public ParentPublicKeySignaturePair 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ParentPublicKeySignaturePair parentPublicKeySignaturePair = (ParentPublicKeySignaturePair) o;
return Objects.equals(this.parentPublicKey, parentPublicKeySignaturePair.parentPublicKey) &&
Objects.equals(this.signature, parentPublicKeySignaturePair.signature);
}
@Override
public int hashCode() {
return Objects.hash(parentPublicKey, signature);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ParentPublicKeySignaturePair {\n");
sb.append(" parentPublicKey: ").append(toIndentedString(parentPublicKey)).append("\n");
sb.append(" signature: ").append(toIndentedString(signature)).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