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

io.nem.sdk.openapi.okhttp_gson.model.AccountDTO Maven / Gradle / Ivy

/*
 * Catapult REST Endpoints
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.7.21
 * 
 *
 * 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.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.sdk.openapi.okhttp_gson.model.AccountTypeEnum;
import io.nem.sdk.openapi.okhttp_gson.model.ActivityBucketDTO;
import io.nem.sdk.openapi.okhttp_gson.model.Mosaic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * AccountDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-11-23T10:27:05.030209+01:00[Europe/Madrid]")
public class AccountDTO {
  public static final String SERIALIZED_NAME_ADDRESS = "address";
  @SerializedName(SERIALIZED_NAME_ADDRESS)
  private String address;

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

  public static final String SERIALIZED_NAME_PUBLIC_KEY = "publicKey";
  @SerializedName(SERIALIZED_NAME_PUBLIC_KEY)
  private String publicKey;

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

  public static final String SERIALIZED_NAME_ACCOUNT_TYPE = "accountType";
  @SerializedName(SERIALIZED_NAME_ACCOUNT_TYPE)
  private AccountTypeEnum accountType;

  public static final String SERIALIZED_NAME_LINKED_ACCOUNT_KEY = "linkedAccountKey";
  @SerializedName(SERIALIZED_NAME_LINKED_ACCOUNT_KEY)
  private String linkedAccountKey;

  public static final String SERIALIZED_NAME_ACTIVITY_BUCKETS = "activityBuckets";
  @SerializedName(SERIALIZED_NAME_ACTIVITY_BUCKETS)
  private List activityBuckets = new ArrayList();

  public static final String SERIALIZED_NAME_MOSAICS = "mosaics";
  @SerializedName(SERIALIZED_NAME_MOSAICS)
  private List mosaics = new ArrayList();

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

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

  public AccountDTO address(String address) {
    this.address = address;
    return this;
  }

   /**
   * Decoded address.
   * @return address
  **/
  @ApiModelProperty(example = "9081FCCB41F8C8409A9B99E485E0E28D23BD6304EF7215E01A", required = true, value = "Decoded address.")
  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public AccountDTO addressHeight(java.math.BigInteger addressHeight) {
    this.addressHeight = addressHeight;
    return this;
  }

   /**
   * Height of the blockchain.
   * @return addressHeight
  **/
  @ApiModelProperty(example = "1", required = true, value = "Height of the blockchain.")
  public java.math.BigInteger getAddressHeight() {
    return addressHeight;
  }

  public void setAddressHeight(java.math.BigInteger addressHeight) {
    this.addressHeight = addressHeight;
  }

  public AccountDTO publicKey(String publicKey) {
    this.publicKey = publicKey;
    return this;
  }

   /**
   * Get publicKey
   * @return publicKey
  **/
  @ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "")
  public String getPublicKey() {
    return publicKey;
  }

  public void setPublicKey(String publicKey) {
    this.publicKey = publicKey;
  }

  public AccountDTO publicKeyHeight(java.math.BigInteger publicKeyHeight) {
    this.publicKeyHeight = publicKeyHeight;
    return this;
  }

   /**
   * Height of the blockchain.
   * @return publicKeyHeight
  **/
  @ApiModelProperty(example = "1", required = true, value = "Height of the blockchain.")
  public java.math.BigInteger getPublicKeyHeight() {
    return publicKeyHeight;
  }

  public void setPublicKeyHeight(java.math.BigInteger publicKeyHeight) {
    this.publicKeyHeight = publicKeyHeight;
  }

  public AccountDTO accountType(AccountTypeEnum accountType) {
    this.accountType = accountType;
    return this;
  }

   /**
   * Get accountType
   * @return accountType
  **/
  @ApiModelProperty(required = true, value = "")
  public AccountTypeEnum getAccountType() {
    return accountType;
  }

  public void setAccountType(AccountTypeEnum accountType) {
    this.accountType = accountType;
  }

  public AccountDTO linkedAccountKey(String linkedAccountKey) {
    this.linkedAccountKey = linkedAccountKey;
    return this;
  }

   /**
   * Get linkedAccountKey
   * @return linkedAccountKey
  **/
  @ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "")
  public String getLinkedAccountKey() {
    return linkedAccountKey;
  }

  public void setLinkedAccountKey(String linkedAccountKey) {
    this.linkedAccountKey = linkedAccountKey;
  }

  public AccountDTO activityBuckets(List activityBuckets) {
    this.activityBuckets = activityBuckets;
    return this;
  }

  public AccountDTO addActivityBucketsItem(ActivityBucketDTO activityBucketsItem) {
    this.activityBuckets.add(activityBucketsItem);
    return this;
  }

   /**
   * Get activityBuckets
   * @return activityBuckets
  **/
  @ApiModelProperty(required = true, value = "")
  public List getActivityBuckets() {
    return activityBuckets;
  }

  public void setActivityBuckets(List activityBuckets) {
    this.activityBuckets = activityBuckets;
  }

  public AccountDTO mosaics(List mosaics) {
    this.mosaics = mosaics;
    return this;
  }

  public AccountDTO addMosaicsItem(Mosaic mosaicsItem) {
    this.mosaics.add(mosaicsItem);
    return this;
  }

   /**
   * Mosaic units owned. The amount is represented in absolute amount. Thus a balance of 123456789 for a mosaic with divisibility 6 (absolute) means the account owns 123.456789. 
   * @return mosaics
  **/
  @ApiModelProperty(required = true, value = "Mosaic units owned. The amount is represented in absolute amount. Thus a balance of 123456789 for a mosaic with divisibility 6 (absolute) means the account owns 123.456789. ")
  public List getMosaics() {
    return mosaics;
  }

  public void setMosaics(List mosaics) {
    this.mosaics = mosaics;
  }

  public AccountDTO importance(java.math.BigInteger importance) {
    this.importance = importance;
    return this;
  }

   /**
   * Probability of an account to harvest the next block.
   * @return importance
  **/
  @ApiModelProperty(example = "0", required = true, value = "Probability of an account to harvest the next block.")
  public java.math.BigInteger getImportance() {
    return importance;
  }

  public void setImportance(java.math.BigInteger importance) {
    this.importance = importance;
  }

  public AccountDTO importanceHeight(java.math.BigInteger importanceHeight) {
    this.importanceHeight = importanceHeight;
    return this;
  }

   /**
   * Height of the blockchain.
   * @return importanceHeight
  **/
  @ApiModelProperty(example = "1", required = true, value = "Height of the blockchain.")
  public java.math.BigInteger getImportanceHeight() {
    return importanceHeight;
  }

  public void setImportanceHeight(java.math.BigInteger importanceHeight) {
    this.importanceHeight = importanceHeight;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AccountDTO accountDTO = (AccountDTO) o;
    return Objects.equals(this.address, accountDTO.address) &&
        Objects.equals(this.addressHeight, accountDTO.addressHeight) &&
        Objects.equals(this.publicKey, accountDTO.publicKey) &&
        Objects.equals(this.publicKeyHeight, accountDTO.publicKeyHeight) &&
        Objects.equals(this.accountType, accountDTO.accountType) &&
        Objects.equals(this.linkedAccountKey, accountDTO.linkedAccountKey) &&
        Objects.equals(this.activityBuckets, accountDTO.activityBuckets) &&
        Objects.equals(this.mosaics, accountDTO.mosaics) &&
        Objects.equals(this.importance, accountDTO.importance) &&
        Objects.equals(this.importanceHeight, accountDTO.importanceHeight);
  }

  @Override
  public int hashCode() {
    return Objects.hash(address, addressHeight, publicKey, publicKeyHeight, accountType, linkedAccountKey, activityBuckets, mosaics, importance, importanceHeight);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AccountDTO {\n");
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("    addressHeight: ").append(toIndentedString(addressHeight)).append("\n");
    sb.append("    publicKey: ").append(toIndentedString(publicKey)).append("\n");
    sb.append("    publicKeyHeight: ").append(toIndentedString(publicKeyHeight)).append("\n");
    sb.append("    accountType: ").append(toIndentedString(accountType)).append("\n");
    sb.append("    linkedAccountKey: ").append(toIndentedString(linkedAccountKey)).append("\n");
    sb.append("    activityBuckets: ").append(toIndentedString(activityBuckets)).append("\n");
    sb.append("    mosaics: ").append(toIndentedString(mosaics)).append("\n");
    sb.append("    importance: ").append(toIndentedString(importance)).append("\n");
    sb.append("    importanceHeight: ").append(toIndentedString(importanceHeight)).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