io.nem.sdk.openapi.jersey2.model.BlockMetaDTO 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.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* BlockMetaDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-02-07T22:44:38.001Z[UTC]")
public class BlockMetaDTO {
public static final String JSON_PROPERTY_HASH = "hash";
@JsonProperty(JSON_PROPERTY_HASH)
private String hash;
public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee";
@JsonProperty(JSON_PROPERTY_TOTAL_FEE)
private java.math.BigInteger totalFee = null;
public static final String JSON_PROPERTY_GENERATION_HASH = "generationHash";
@JsonProperty(JSON_PROPERTY_GENERATION_HASH)
private String generationHash;
public static final String JSON_PROPERTY_STATE_HASH_SUB_CACHE_MERKLE_ROOTS = "stateHashSubCacheMerkleRoots";
@JsonProperty(JSON_PROPERTY_STATE_HASH_SUB_CACHE_MERKLE_ROOTS)
private List stateHashSubCacheMerkleRoots = new ArrayList();
public static final String JSON_PROPERTY_NUM_TRANSACTIONS = "numTransactions";
@JsonProperty(JSON_PROPERTY_NUM_TRANSACTIONS)
private Integer numTransactions;
public static final String JSON_PROPERTY_NUM_STATEMENTS = "numStatements";
@JsonProperty(JSON_PROPERTY_NUM_STATEMENTS)
private Integer numStatements;
public BlockMetaDTO hash(String hash) {
this.hash = hash;
return this;
}
/**
* Get hash
* @return hash
**/
@ApiModelProperty(example = "C8FC3FB54FDDFBCE0E8C71224990124E4EEC5AD5D30E592EDFA9524669A23810", required = true, value = "")
public String getHash() {
return hash;
}
public void setHash(String hash) {
this.hash = hash;
}
public BlockMetaDTO totalFee(java.math.BigInteger totalFee) {
this.totalFee = totalFee;
return this;
}
/**
* Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative).
* @return totalFee
**/
@ApiModelProperty(example = "123456", required = true, value = "Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative).")
public java.math.BigInteger getTotalFee() {
return totalFee;
}
public void setTotalFee(java.math.BigInteger totalFee) {
this.totalFee = totalFee;
}
public BlockMetaDTO generationHash(String generationHash) {
this.generationHash = generationHash;
return this;
}
/**
* Get generationHash
* @return generationHash
**/
@ApiModelProperty(example = "C8FC3FB54FDDFBCE0E8C71224990124E4EEC5AD5D30E592EDFA9524669A23810", required = true, value = "")
public String getGenerationHash() {
return generationHash;
}
public void setGenerationHash(String generationHash) {
this.generationHash = generationHash;
}
public BlockMetaDTO stateHashSubCacheMerkleRoots(List stateHashSubCacheMerkleRoots) {
this.stateHashSubCacheMerkleRoots = stateHashSubCacheMerkleRoots;
return this;
}
public BlockMetaDTO addStateHashSubCacheMerkleRootsItem(String stateHashSubCacheMerkleRootsItem) {
this.stateHashSubCacheMerkleRoots.add(stateHashSubCacheMerkleRootsItem);
return this;
}
/**
* Get stateHashSubCacheMerkleRoots
* @return stateHashSubCacheMerkleRoots
**/
@ApiModelProperty(required = true, value = "")
public List getStateHashSubCacheMerkleRoots() {
return stateHashSubCacheMerkleRoots;
}
public void setStateHashSubCacheMerkleRoots(List stateHashSubCacheMerkleRoots) {
this.stateHashSubCacheMerkleRoots = stateHashSubCacheMerkleRoots;
}
public BlockMetaDTO numTransactions(Integer numTransactions) {
this.numTransactions = numTransactions;
return this;
}
/**
* Get numTransactions
* @return numTransactions
**/
@ApiModelProperty(example = "0", required = true, value = "")
public Integer getNumTransactions() {
return numTransactions;
}
public void setNumTransactions(Integer numTransactions) {
this.numTransactions = numTransactions;
}
public BlockMetaDTO numStatements(Integer numStatements) {
this.numStatements = numStatements;
return this;
}
/**
* Get numStatements
* @return numStatements
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "")
public Integer getNumStatements() {
return numStatements;
}
public void setNumStatements(Integer numStatements) {
this.numStatements = numStatements;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BlockMetaDTO blockMetaDTO = (BlockMetaDTO) o;
return Objects.equals(this.hash, blockMetaDTO.hash) &&
Objects.equals(this.totalFee, blockMetaDTO.totalFee) &&
Objects.equals(this.generationHash, blockMetaDTO.generationHash) &&
Objects.equals(this.stateHashSubCacheMerkleRoots, blockMetaDTO.stateHashSubCacheMerkleRoots) &&
Objects.equals(this.numTransactions, blockMetaDTO.numTransactions) &&
Objects.equals(this.numStatements, blockMetaDTO.numStatements);
}
@Override
public int hashCode() {
return Objects.hash(hash, totalFee, generationHash, stateHashSubCacheMerkleRoots, numTransactions, numStatements);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BlockMetaDTO {\n");
sb.append(" hash: ").append(toIndentedString(hash)).append("\n");
sb.append(" totalFee: ").append(toIndentedString(totalFee)).append("\n");
sb.append(" generationHash: ").append(toIndentedString(generationHash)).append("\n");
sb.append(" stateHashSubCacheMerkleRoots: ").append(toIndentedString(stateHashSubCacheMerkleRoots)).append("\n");
sb.append(" numTransactions: ").append(toIndentedString(numTransactions)).append("\n");
sb.append(" numStatements: ").append(toIndentedString(numStatements)).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 ");
}
}