io.nem.sdk.openapi.jersey2.model.NamespaceDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-jersey2-client Show documentation
Show all versions of api-jersey2-client Show documentation
Generated Open API client for NEM
/*
* Catapult REST Endpoints
* OpenAPI Specification of catapult-rest 1.0.20.10
*
* The version of the OpenAPI document: 0.8.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.sdk.openapi.jersey2.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.nem.sdk.openapi.jersey2.model.AliasDTO;
import io.nem.sdk.openapi.jersey2.model.NamespaceRegistrationTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* NamespaceDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-02-07T22:44:38.001Z[UTC]")
public class NamespaceDTO {
public static final String JSON_PROPERTY_REGISTRATION_TYPE = "registrationType";
@JsonProperty(JSON_PROPERTY_REGISTRATION_TYPE)
private NamespaceRegistrationTypeEnum registrationType;
public static final String JSON_PROPERTY_DEPTH = "depth";
@JsonProperty(JSON_PROPERTY_DEPTH)
private Integer depth;
public static final String JSON_PROPERTY_LEVEL0 = "level0";
@JsonProperty(JSON_PROPERTY_LEVEL0)
private String level0;
public static final String JSON_PROPERTY_LEVEL1 = "level1";
@JsonProperty(JSON_PROPERTY_LEVEL1)
private String level1;
public static final String JSON_PROPERTY_LEVEL2 = "level2";
@JsonProperty(JSON_PROPERTY_LEVEL2)
private String level2;
public static final String JSON_PROPERTY_ALIAS = "alias";
@JsonProperty(JSON_PROPERTY_ALIAS)
private AliasDTO alias = null;
public static final String JSON_PROPERTY_PARENT_ID = "parentId";
@JsonProperty(JSON_PROPERTY_PARENT_ID)
private String parentId;
public static final String JSON_PROPERTY_OWNER_PUBLIC_KEY = "ownerPublicKey";
@JsonProperty(JSON_PROPERTY_OWNER_PUBLIC_KEY)
private String ownerPublicKey;
public static final String JSON_PROPERTY_OWNER_ADDRESS = "ownerAddress";
@JsonProperty(JSON_PROPERTY_OWNER_ADDRESS)
private String ownerAddress;
public static final String JSON_PROPERTY_START_HEIGHT = "startHeight";
@JsonProperty(JSON_PROPERTY_START_HEIGHT)
private java.math.BigInteger startHeight = null;
public static final String JSON_PROPERTY_END_HEIGHT = "endHeight";
@JsonProperty(JSON_PROPERTY_END_HEIGHT)
private java.math.BigInteger endHeight = null;
public NamespaceDTO registrationType(NamespaceRegistrationTypeEnum registrationType) {
this.registrationType = registrationType;
return this;
}
/**
* Get registrationType
* @return registrationType
**/
@ApiModelProperty(required = true, value = "")
public NamespaceRegistrationTypeEnum getRegistrationType() {
return registrationType;
}
public void setRegistrationType(NamespaceRegistrationTypeEnum registrationType) {
this.registrationType = registrationType;
}
public NamespaceDTO depth(Integer depth) {
this.depth = depth;
return this;
}
/**
* Level of the namespace.
* @return depth
**/
@ApiModelProperty(example = "1", required = true, value = "Level of the namespace.")
public Integer getDepth() {
return depth;
}
public void setDepth(Integer depth) {
this.depth = depth;
}
public NamespaceDTO level0(String level0) {
this.level0 = level0;
return this;
}
/**
* Namespace identifier.
* @return level0
**/
@ApiModelProperty(example = "85BBEA6CC462B244", required = true, value = "Namespace identifier.")
public String getLevel0() {
return level0;
}
public void setLevel0(String level0) {
this.level0 = level0;
}
public NamespaceDTO level1(String level1) {
this.level1 = level1;
return this;
}
/**
* Namespace identifier.
* @return level1
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "85BBEA6CC462B244", value = "Namespace identifier.")
public String getLevel1() {
return level1;
}
public void setLevel1(String level1) {
this.level1 = level1;
}
public NamespaceDTO level2(String level2) {
this.level2 = level2;
return this;
}
/**
* Namespace identifier.
* @return level2
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "85BBEA6CC462B244", value = "Namespace identifier.")
public String getLevel2() {
return level2;
}
public void setLevel2(String level2) {
this.level2 = level2;
}
public NamespaceDTO alias(AliasDTO alias) {
this.alias = alias;
return this;
}
/**
* Get alias
* @return alias
**/
@ApiModelProperty(required = true, value = "")
public AliasDTO getAlias() {
return alias;
}
public void setAlias(AliasDTO alias) {
this.alias = alias;
}
public NamespaceDTO parentId(String parentId) {
this.parentId = parentId;
return this;
}
/**
* Namespace identifier.
* @return parentId
**/
@ApiModelProperty(example = "85BBEA6CC462B244", required = true, value = "Namespace identifier.")
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public NamespaceDTO ownerPublicKey(String ownerPublicKey) {
this.ownerPublicKey = ownerPublicKey;
return this;
}
/**
* Public key.
* @return ownerPublicKey
**/
@ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "Public key.")
public String getOwnerPublicKey() {
return ownerPublicKey;
}
public void setOwnerPublicKey(String ownerPublicKey) {
this.ownerPublicKey = ownerPublicKey;
}
public NamespaceDTO ownerAddress(String ownerAddress) {
this.ownerAddress = ownerAddress;
return this;
}
/**
* Address expressed in hexadecimal base.
* @return ownerAddress
**/
@ApiModelProperty(example = "9081FCCB41F8C8409A9B99E485E0E28D23BD6304EF7215E01A", required = true, value = "Address expressed in hexadecimal base.")
public String getOwnerAddress() {
return ownerAddress;
}
public void setOwnerAddress(String ownerAddress) {
this.ownerAddress = ownerAddress;
}
public NamespaceDTO startHeight(java.math.BigInteger startHeight) {
this.startHeight = startHeight;
return this;
}
/**
* Height of the blockchain.
* @return startHeight
**/
@ApiModelProperty(example = "1", required = true, value = "Height of the blockchain.")
public java.math.BigInteger getStartHeight() {
return startHeight;
}
public void setStartHeight(java.math.BigInteger startHeight) {
this.startHeight = startHeight;
}
public NamespaceDTO endHeight(java.math.BigInteger endHeight) {
this.endHeight = endHeight;
return this;
}
/**
* Height of the blockchain.
* @return endHeight
**/
@ApiModelProperty(example = "1", required = true, value = "Height of the blockchain.")
public java.math.BigInteger getEndHeight() {
return endHeight;
}
public void setEndHeight(java.math.BigInteger endHeight) {
this.endHeight = endHeight;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NamespaceDTO namespaceDTO = (NamespaceDTO) o;
return Objects.equals(this.registrationType, namespaceDTO.registrationType) &&
Objects.equals(this.depth, namespaceDTO.depth) &&
Objects.equals(this.level0, namespaceDTO.level0) &&
Objects.equals(this.level1, namespaceDTO.level1) &&
Objects.equals(this.level2, namespaceDTO.level2) &&
Objects.equals(this.alias, namespaceDTO.alias) &&
Objects.equals(this.parentId, namespaceDTO.parentId) &&
Objects.equals(this.ownerPublicKey, namespaceDTO.ownerPublicKey) &&
Objects.equals(this.ownerAddress, namespaceDTO.ownerAddress) &&
Objects.equals(this.startHeight, namespaceDTO.startHeight) &&
Objects.equals(this.endHeight, namespaceDTO.endHeight);
}
@Override
public int hashCode() {
return Objects.hash(registrationType, depth, level0, level1, level2, alias, parentId, ownerPublicKey, ownerAddress, startHeight, endHeight);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NamespaceDTO {\n");
sb.append(" registrationType: ").append(toIndentedString(registrationType)).append("\n");
sb.append(" depth: ").append(toIndentedString(depth)).append("\n");
sb.append(" level0: ").append(toIndentedString(level0)).append("\n");
sb.append(" level1: ").append(toIndentedString(level1)).append("\n");
sb.append(" level2: ").append(toIndentedString(level2)).append("\n");
sb.append(" alias: ").append(toIndentedString(alias)).append("\n");
sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n");
sb.append(" ownerPublicKey: ").append(toIndentedString(ownerPublicKey)).append("\n");
sb.append(" ownerAddress: ").append(toIndentedString(ownerAddress)).append("\n");
sb.append(" startHeight: ").append(toIndentedString(startHeight)).append("\n");
sb.append(" endHeight: ").append(toIndentedString(endHeight)).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 ");
}
}