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

io.nem.sdk.openapi.jersey2.model.BlockDTOAllOf Maven / Gradle / Ivy

There is a newer version: 0.8.4
Show newest version
/*
 * 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;

/**
 * BlockDTOAllOf
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-02-07T22:44:38.001Z[UTC]")
public class BlockDTOAllOf {
  public static final String JSON_PROPERTY_HEIGHT = "height";
  @JsonProperty(JSON_PROPERTY_HEIGHT)
  private java.math.BigInteger height = null;

  public static final String JSON_PROPERTY_TIMESTAMP = "timestamp";
  @JsonProperty(JSON_PROPERTY_TIMESTAMP)
  private java.math.BigInteger timestamp = null;

  public static final String JSON_PROPERTY_DIFFICULTY = "difficulty";
  @JsonProperty(JSON_PROPERTY_DIFFICULTY)
  private java.math.BigInteger difficulty = null;

  public static final String JSON_PROPERTY_PREVIOUS_BLOCK_HASH = "previousBlockHash";
  @JsonProperty(JSON_PROPERTY_PREVIOUS_BLOCK_HASH)
  private String previousBlockHash;

  public static final String JSON_PROPERTY_TRANSACTIONS_HASH = "transactionsHash";
  @JsonProperty(JSON_PROPERTY_TRANSACTIONS_HASH)
  private String transactionsHash;

  public static final String JSON_PROPERTY_RECEIPTS_HASH = "receiptsHash";
  @JsonProperty(JSON_PROPERTY_RECEIPTS_HASH)
  private String receiptsHash;

  public static final String JSON_PROPERTY_STATE_HASH = "stateHash";
  @JsonProperty(JSON_PROPERTY_STATE_HASH)
  private String stateHash;

  public static final String JSON_PROPERTY_BENEFICIARY_PUBLIC_KEY = "beneficiaryPublicKey";
  @JsonProperty(JSON_PROPERTY_BENEFICIARY_PUBLIC_KEY)
  private String beneficiaryPublicKey;

  public static final String JSON_PROPERTY_FEE_MULTIPLIER = "feeMultiplier";
  @JsonProperty(JSON_PROPERTY_FEE_MULTIPLIER)
  private Integer feeMultiplier;

  public BlockDTOAllOf height(java.math.BigInteger height) {
    this.height = height;
    return this;
  }

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

  public void setHeight(java.math.BigInteger height) {
    this.height = height;
  }

  public BlockDTOAllOf timestamp(java.math.BigInteger timestamp) {
    this.timestamp = timestamp;
    return this;
  }

   /**
   * Number of seconds elapsed since the creation of the nemesis block.
   * @return timestamp
  **/
  @ApiModelProperty(example = "108303181802", required = true, value = "Number of seconds elapsed since the creation of the nemesis block.")
  public java.math.BigInteger getTimestamp() {
    return timestamp;
  }

  public void setTimestamp(java.math.BigInteger timestamp) {
    this.timestamp = timestamp;
  }

  public BlockDTOAllOf difficulty(java.math.BigInteger difficulty) {
    this.difficulty = difficulty;
    return this;
  }

   /**
   * Determines how hard is to harvest a new block, based on previous blocks.
   * @return difficulty
  **/
  @ApiModelProperty(example = "100000000000000", required = true, value = "Determines how hard is to harvest a new block, based on previous blocks.")
  public java.math.BigInteger getDifficulty() {
    return difficulty;
  }

  public void setDifficulty(java.math.BigInteger difficulty) {
    this.difficulty = difficulty;
  }

  public BlockDTOAllOf previousBlockHash(String previousBlockHash) {
    this.previousBlockHash = previousBlockHash;
    return this;
  }

   /**
   * Get previousBlockHash
   * @return previousBlockHash
  **/
  @ApiModelProperty(example = "C8FC3FB54FDDFBCE0E8C71224990124E4EEC5AD5D30E592EDFA9524669A23810", required = true, value = "")
  public String getPreviousBlockHash() {
    return previousBlockHash;
  }

  public void setPreviousBlockHash(String previousBlockHash) {
    this.previousBlockHash = previousBlockHash;
  }

  public BlockDTOAllOf transactionsHash(String transactionsHash) {
    this.transactionsHash = transactionsHash;
    return this;
  }

   /**
   * Get transactionsHash
   * @return transactionsHash
  **/
  @ApiModelProperty(example = "C8FC3FB54FDDFBCE0E8C71224990124E4EEC5AD5D30E592EDFA9524669A23810", required = true, value = "")
  public String getTransactionsHash() {
    return transactionsHash;
  }

  public void setTransactionsHash(String transactionsHash) {
    this.transactionsHash = transactionsHash;
  }

  public BlockDTOAllOf receiptsHash(String receiptsHash) {
    this.receiptsHash = receiptsHash;
    return this;
  }

   /**
   * Get receiptsHash
   * @return receiptsHash
  **/
  @ApiModelProperty(example = "C8FC3FB54FDDFBCE0E8C71224990124E4EEC5AD5D30E592EDFA9524669A23810", required = true, value = "")
  public String getReceiptsHash() {
    return receiptsHash;
  }

  public void setReceiptsHash(String receiptsHash) {
    this.receiptsHash = receiptsHash;
  }

  public BlockDTOAllOf stateHash(String stateHash) {
    this.stateHash = stateHash;
    return this;
  }

   /**
   * Get stateHash
   * @return stateHash
  **/
  @ApiModelProperty(example = "C8FC3FB54FDDFBCE0E8C71224990124E4EEC5AD5D30E592EDFA9524669A23810", required = true, value = "")
  public String getStateHash() {
    return stateHash;
  }

  public void setStateHash(String stateHash) {
    this.stateHash = stateHash;
  }

  public BlockDTOAllOf beneficiaryPublicKey(String beneficiaryPublicKey) {
    this.beneficiaryPublicKey = beneficiaryPublicKey;
    return this;
  }

   /**
   * Public key.
   * @return beneficiaryPublicKey
  **/
  @ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "Public key.")
  public String getBeneficiaryPublicKey() {
    return beneficiaryPublicKey;
  }

  public void setBeneficiaryPublicKey(String beneficiaryPublicKey) {
    this.beneficiaryPublicKey = beneficiaryPublicKey;
  }

  public BlockDTOAllOf feeMultiplier(Integer feeMultiplier) {
    this.feeMultiplier = feeMultiplier;
    return this;
  }

   /**
   * Fee multiplier applied to transactions contained in block.
   * @return feeMultiplier
  **/
  @ApiModelProperty(example = "0", required = true, value = "Fee multiplier applied to transactions contained in block.")
  public Integer getFeeMultiplier() {
    return feeMultiplier;
  }

  public void setFeeMultiplier(Integer feeMultiplier) {
    this.feeMultiplier = feeMultiplier;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BlockDTOAllOf blockDTOAllOf = (BlockDTOAllOf) o;
    return Objects.equals(this.height, blockDTOAllOf.height) &&
        Objects.equals(this.timestamp, blockDTOAllOf.timestamp) &&
        Objects.equals(this.difficulty, blockDTOAllOf.difficulty) &&
        Objects.equals(this.previousBlockHash, blockDTOAllOf.previousBlockHash) &&
        Objects.equals(this.transactionsHash, blockDTOAllOf.transactionsHash) &&
        Objects.equals(this.receiptsHash, blockDTOAllOf.receiptsHash) &&
        Objects.equals(this.stateHash, blockDTOAllOf.stateHash) &&
        Objects.equals(this.beneficiaryPublicKey, blockDTOAllOf.beneficiaryPublicKey) &&
        Objects.equals(this.feeMultiplier, blockDTOAllOf.feeMultiplier);
  }

  @Override
  public int hashCode() {
    return Objects.hash(height, timestamp, difficulty, previousBlockHash, transactionsHash, receiptsHash, stateHash, beneficiaryPublicKey, feeMultiplier);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BlockDTOAllOf {\n");
    sb.append("    height: ").append(toIndentedString(height)).append("\n");
    sb.append("    timestamp: ").append(toIndentedString(timestamp)).append("\n");
    sb.append("    difficulty: ").append(toIndentedString(difficulty)).append("\n");
    sb.append("    previousBlockHash: ").append(toIndentedString(previousBlockHash)).append("\n");
    sb.append("    transactionsHash: ").append(toIndentedString(transactionsHash)).append("\n");
    sb.append("    receiptsHash: ").append(toIndentedString(receiptsHash)).append("\n");
    sb.append("    stateHash: ").append(toIndentedString(stateHash)).append("\n");
    sb.append("    beneficiaryPublicKey: ").append(toIndentedString(beneficiaryPublicKey)).append("\n");
    sb.append("    feeMultiplier: ").append(toIndentedString(feeMultiplier)).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