io.nem.sdk.openapi.jersey2.model.AccountDTO 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.AccountTypeEnum;
import io.nem.sdk.openapi.jersey2.model.ActivityBucketDTO;
import io.nem.sdk.openapi.jersey2.model.Mosaic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* AccountDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-02-07T22:44:38.001Z[UTC]")
public class AccountDTO {
public static final String JSON_PROPERTY_ADDRESS = "address";
@JsonProperty(JSON_PROPERTY_ADDRESS)
private String address;
public static final String JSON_PROPERTY_ADDRESS_HEIGHT = "addressHeight";
@JsonProperty(JSON_PROPERTY_ADDRESS_HEIGHT)
private java.math.BigInteger addressHeight = null;
public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey";
@JsonProperty(JSON_PROPERTY_PUBLIC_KEY)
private String publicKey;
public static final String JSON_PROPERTY_PUBLIC_KEY_HEIGHT = "publicKeyHeight";
@JsonProperty(JSON_PROPERTY_PUBLIC_KEY_HEIGHT)
private java.math.BigInteger publicKeyHeight = null;
public static final String JSON_PROPERTY_ACCOUNT_TYPE = "accountType";
@JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
private AccountTypeEnum accountType;
public static final String JSON_PROPERTY_LINKED_ACCOUNT_KEY = "linkedAccountKey";
@JsonProperty(JSON_PROPERTY_LINKED_ACCOUNT_KEY)
private String linkedAccountKey;
public static final String JSON_PROPERTY_ACTIVITY_BUCKETS = "activityBuckets";
@JsonProperty(JSON_PROPERTY_ACTIVITY_BUCKETS)
private List activityBuckets = new ArrayList();
public static final String JSON_PROPERTY_MOSAICS = "mosaics";
@JsonProperty(JSON_PROPERTY_MOSAICS)
private List mosaics = new ArrayList();
public static final String JSON_PROPERTY_IMPORTANCE = "importance";
@JsonProperty(JSON_PROPERTY_IMPORTANCE)
private java.math.BigInteger importance = null;
public static final String JSON_PROPERTY_IMPORTANCE_HEIGHT = "importanceHeight";
@JsonProperty(JSON_PROPERTY_IMPORTANCE_HEIGHT)
private java.math.BigInteger importanceHeight = null;
public AccountDTO address(String address) {
this.address = address;
return this;
}
/**
* Address expressed in hexadecimal base.
* @return address
**/
@ApiModelProperty(example = "9081FCCB41F8C8409A9B99E485E0E28D23BD6304EF7215E01A", required = true, value = "Address expressed in hexadecimal base.")
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;
}
/**
* Public key.
* @return publicKey
**/
@ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "Public key.")
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;
}
/**
* Public key.
* @return linkedAccountKey
**/
@ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "Public key.")
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.
* @return mosaics
**/
@ApiModelProperty(required = true, value = "Mosaic units owned.")
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 ");
}
}