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

io.nem.symbol.sdk.openapi.jersey2.model.MultisigNetworkPropertiesDTO Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
/*
 * Catapult REST Endpoints
 * OpenAPI Specification of catapult-rest 2.3.0
 *
 * The version of the OpenAPI document: 0.11.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.symbol.sdk.openapi.jersey2.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * MultisigNetworkPropertiesDTO
 */
@JsonPropertyOrder({
  MultisigNetworkPropertiesDTO.JSON_PROPERTY_MAX_MULTISIG_DEPTH,
  MultisigNetworkPropertiesDTO.JSON_PROPERTY_MAX_COSIGNATORIES_PER_ACCOUNT,
  MultisigNetworkPropertiesDTO.JSON_PROPERTY_MAX_COSIGNED_ACCOUNTS_PER_ACCOUNT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-02-02T19:39:53.661Z[UTC]")
public class MultisigNetworkPropertiesDTO {
  public static final String JSON_PROPERTY_MAX_MULTISIG_DEPTH = "maxMultisigDepth";
  private String maxMultisigDepth;

  public static final String JSON_PROPERTY_MAX_COSIGNATORIES_PER_ACCOUNT = "maxCosignatoriesPerAccount";
  private String maxCosignatoriesPerAccount;

  public static final String JSON_PROPERTY_MAX_COSIGNED_ACCOUNTS_PER_ACCOUNT = "maxCosignedAccountsPerAccount";
  private String maxCosignedAccountsPerAccount;


  public MultisigNetworkPropertiesDTO maxMultisigDepth(String maxMultisigDepth) {
    
    this.maxMultisigDepth = maxMultisigDepth;
    return this;
  }

   /**
   * Maximum number of multisig levels.
   * @return maxMultisigDepth
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "3", value = "Maximum number of multisig levels.")
  @JsonProperty(JSON_PROPERTY_MAX_MULTISIG_DEPTH)
  // @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getMaxMultisigDepth() {
    return maxMultisigDepth;
  }


  public void setMaxMultisigDepth(String maxMultisigDepth) {
    this.maxMultisigDepth = maxMultisigDepth;
  }


  public MultisigNetworkPropertiesDTO maxCosignatoriesPerAccount(String maxCosignatoriesPerAccount) {
    
    this.maxCosignatoriesPerAccount = maxCosignatoriesPerAccount;
    return this;
  }

   /**
   * Maximum number of cosignatories per account.
   * @return maxCosignatoriesPerAccount
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "10", value = "Maximum number of cosignatories per account.")
  @JsonProperty(JSON_PROPERTY_MAX_COSIGNATORIES_PER_ACCOUNT)
  // @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getMaxCosignatoriesPerAccount() {
    return maxCosignatoriesPerAccount;
  }


  public void setMaxCosignatoriesPerAccount(String maxCosignatoriesPerAccount) {
    this.maxCosignatoriesPerAccount = maxCosignatoriesPerAccount;
  }


  public MultisigNetworkPropertiesDTO maxCosignedAccountsPerAccount(String maxCosignedAccountsPerAccount) {
    
    this.maxCosignedAccountsPerAccount = maxCosignedAccountsPerAccount;
    return this;
  }

   /**
   * Maximum number of accounts a single account can cosign.
   * @return maxCosignedAccountsPerAccount
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "5", value = "Maximum number of accounts a single account can cosign.")
  @JsonProperty(JSON_PROPERTY_MAX_COSIGNED_ACCOUNTS_PER_ACCOUNT)
  // @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getMaxCosignedAccountsPerAccount() {
    return maxCosignedAccountsPerAccount;
  }


  public void setMaxCosignedAccountsPerAccount(String maxCosignedAccountsPerAccount) {
    this.maxCosignedAccountsPerAccount = maxCosignedAccountsPerAccount;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    MultisigNetworkPropertiesDTO multisigNetworkPropertiesDTO = (MultisigNetworkPropertiesDTO) o;
    return Objects.equals(this.maxMultisigDepth, multisigNetworkPropertiesDTO.maxMultisigDepth) &&
        Objects.equals(this.maxCosignatoriesPerAccount, multisigNetworkPropertiesDTO.maxCosignatoriesPerAccount) &&
        Objects.equals(this.maxCosignedAccountsPerAccount, multisigNetworkPropertiesDTO.maxCosignedAccountsPerAccount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(maxMultisigDepth, maxCosignatoriesPerAccount, maxCosignedAccountsPerAccount);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class MultisigNetworkPropertiesDTO {\n");
    sb.append("    maxMultisigDepth: ").append(toIndentedString(maxMultisigDepth)).append("\n");
    sb.append("    maxCosignatoriesPerAccount: ").append(toIndentedString(maxCosignatoriesPerAccount)).append("\n");
    sb.append("    maxCosignedAccountsPerAccount: ").append(toIndentedString(maxCosignedAccountsPerAccount)).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 - 2025 Weber Informatics LLC | Privacy Policy