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

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

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

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

  public static final String SERIALIZED_NAME_GENERATION_HASH = "generationHash";
  @SerializedName(SERIALIZED_NAME_GENERATION_HASH)
  private String generationHash;

  public static final String SERIALIZED_NAME_STATE_HASH_SUB_CACHE_MERKLE_ROOTS = "stateHashSubCacheMerkleRoots";
  @SerializedName(SERIALIZED_NAME_STATE_HASH_SUB_CACHE_MERKLE_ROOTS)
  private List stateHashSubCacheMerkleRoots = new ArrayList<>();

  public static final String SERIALIZED_NAME_NUM_TRANSACTIONS = "numTransactions";
  @SerializedName(SERIALIZED_NAME_NUM_TRANSACTIONS)
  private Integer numTransactions;

  public static final String SERIALIZED_NAME_NUM_STATEMENTS = "numStatements";
  @SerializedName(SERIALIZED_NAME_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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy