All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nem.symbol.sdk.openapi.okhttp_gson.model.NamespaceDTO Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
/*
 * Catapult REST Endpoints
 * OpenAPI Specification of catapult-rest 1.1.2
 *
 * The version of the OpenAPI document: 0.9.4
 * 
 *
 * 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.okhttp_gson.model;

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.nem.symbol.sdk.openapi.okhttp_gson.model.AliasDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.NamespaceRegistrationTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * NamespaceDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-06-30T14:27:18.729Z[UTC]")
public class NamespaceDTO {
  public static final String SERIALIZED_NAME_REGISTRATION_TYPE = "registrationType";
  @SerializedName(SERIALIZED_NAME_REGISTRATION_TYPE)
  private NamespaceRegistrationTypeEnum registrationType;

  public static final String SERIALIZED_NAME_DEPTH = "depth";
  @SerializedName(SERIALIZED_NAME_DEPTH)
  private Integer depth;

  public static final String SERIALIZED_NAME_LEVEL0 = "level0";
  @SerializedName(SERIALIZED_NAME_LEVEL0)
  private String level0;

  public static final String SERIALIZED_NAME_LEVEL1 = "level1";
  @SerializedName(SERIALIZED_NAME_LEVEL1)
  private String level1;

  public static final String SERIALIZED_NAME_LEVEL2 = "level2";
  @SerializedName(SERIALIZED_NAME_LEVEL2)
  private String level2;

  public static final String SERIALIZED_NAME_ALIAS = "alias";
  @SerializedName(SERIALIZED_NAME_ALIAS)
  private AliasDTO alias;

  public static final String SERIALIZED_NAME_PARENT_ID = "parentId";
  @SerializedName(SERIALIZED_NAME_PARENT_ID)
  private String parentId;

  public static final String SERIALIZED_NAME_OWNER_ADDRESS = "ownerAddress";
  @SerializedName(SERIALIZED_NAME_OWNER_ADDRESS)
  private String ownerAddress;

  public static final String SERIALIZED_NAME_START_HEIGHT = "startHeight";
  @SerializedName(SERIALIZED_NAME_START_HEIGHT)
  private java.math.BigInteger startHeight = null;

  public static final String SERIALIZED_NAME_END_HEIGHT = "endHeight";
  @SerializedName(SERIALIZED_NAME_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 ownerAddress(String ownerAddress) {
    
    this.ownerAddress = ownerAddress;
    return this;
  }

   /**
   * Address expressed in hexadecimal base.
   * @return ownerAddress
  **/
  @ApiModelProperty(example = "9081FCCB41F8C8409A9B99E485E0E28D23BD6304EF7215E0", 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.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, 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("    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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy