io.proximax.sdk.gen.model.AccountDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-xpx-chain-sdk Show documentation
Show all versions of java-xpx-chain-sdk Show documentation
The ProximaX Sirius Chain Java SDK is a Java library for interacting with the Sirius Blockchain.
The newest version!
/*
* Catapult REST API Reference
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.7.15
*
*
* 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.proximax.sdk.gen.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.proximax.sdk.gen.model.AccountLinkTypeEnum;
import io.proximax.sdk.gen.model.MosaicDTO;
import io.proximax.sdk.gen.model.UInt64DTO;
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-09-22T22:57:50.932+02:00[Europe/Prague]")
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 UInt64DTO addressHeight = new UInt64DTO();
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 UInt64DTO publicKeyHeight = new UInt64DTO();
public static final String SERIALIZED_NAME_MOSAICS = "mosaics";
@SerializedName(SERIALIZED_NAME_MOSAICS)
private List mosaics = new ArrayList<>();
public static final String SERIALIZED_NAME_ACCOUNT_TYPE = "accountType";
@SerializedName(SERIALIZED_NAME_ACCOUNT_TYPE)
private AccountLinkTypeEnum accountType;
public static final String SERIALIZED_NAME_LINKED_ACCOUNT_KEY = "linkedAccountKey";
@SerializedName(SERIALIZED_NAME_LINKED_ACCOUNT_KEY)
private String linkedAccountKey;
public AccountDTO address(String address) {
this.address = address;
return this;
}
/**
* The account unique address in hexadecimal.
* @return address
**/
@ApiModelProperty(example = "9081FCCB41F8C8409A9B99E485E0E28D23BD6304EF7215E01A", required = true, value = "The account unique address in hexadecimal. ")
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public AccountDTO addressHeight(UInt64DTO addressHeight) {
this.addressHeight = addressHeight;
return this;
}
/**
* Get addressHeight
* @return addressHeight
**/
@ApiModelProperty(required = true, value = "")
public UInt64DTO getAddressHeight() {
return addressHeight;
}
public void setAddressHeight(UInt64DTO addressHeight) {
this.addressHeight = addressHeight;
}
public AccountDTO publicKey(String publicKey) {
this.publicKey = publicKey;
return this;
}
/**
* The public key of an account can be used to verify signatures of the account. Only accounts that have already published a transaction have a public key assigned to the account. Otherwise, the field is null.
* @return publicKey
**/
@ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "The public key of an account can be used to verify signatures of the account. Only accounts that have already published a transaction have a public key assigned to the account. Otherwise, the field is null. ")
public String getPublicKey() {
return publicKey;
}
public void setPublicKey(String publicKey) {
this.publicKey = publicKey;
}
public AccountDTO publicKeyHeight(UInt64DTO publicKeyHeight) {
this.publicKeyHeight = publicKeyHeight;
return this;
}
/**
* Get publicKeyHeight
* @return publicKeyHeight
**/
@ApiModelProperty(required = true, value = "")
public UInt64DTO getPublicKeyHeight() {
return publicKeyHeight;
}
public void setPublicKeyHeight(UInt64DTO publicKeyHeight) {
this.publicKeyHeight = publicKeyHeight;
}
public AccountDTO mosaics(List mosaics) {
this.mosaics = mosaics;
return this;
}
public AccountDTO addMosaicsItem(MosaicDTO mosaicsItem) {
this.mosaics.add(mosaicsItem);
return this;
}
/**
* The list of mosaics the account owns. 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 instead.
* @return mosaics
**/
@ApiModelProperty(required = true, value = "The list of mosaics the account owns. 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 instead. ")
public List getMosaics() {
return mosaics;
}
public void setMosaics(List mosaics) {
this.mosaics = mosaics;
}
public AccountDTO accountType(AccountLinkTypeEnum accountType) {
this.accountType = accountType;
return this;
}
/**
* Get accountType
* @return accountType
**/
@ApiModelProperty(required = true, value = "")
public AccountLinkTypeEnum getAccountType() {
return accountType;
}
public void setAccountType(AccountLinkTypeEnum accountType) {
this.accountType = accountType;
}
public AccountDTO linkedAccountKey(String linkedAccountKey) {
this.linkedAccountKey = linkedAccountKey;
return this;
}
/**
* The public key of a linked account. The linked account can use|provide balance for delegated harvesting.
* @return linkedAccountKey
**/
@ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "The public key of a linked account. The linked account can use|provide balance for delegated harvesting. ")
public String getLinkedAccountKey() {
return linkedAccountKey;
}
public void setLinkedAccountKey(String linkedAccountKey) {
this.linkedAccountKey = linkedAccountKey;
}
@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.mosaics, accountDTO.mosaics) &&
Objects.equals(this.accountType, accountDTO.accountType) &&
Objects.equals(this.linkedAccountKey, accountDTO.linkedAccountKey);
}
@Override
public int hashCode() {
return Objects.hash(address, addressHeight, publicKey, publicKeyHeight, mosaics, accountType, linkedAccountKey);
}
@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(" mosaics: ").append(toIndentedString(mosaics)).append("\n");
sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n");
sb.append(" linkedAccountKey: ").append(toIndentedString(linkedAccountKey)).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 ");
}
}