io.nem.symbol.sdk.openapi.okhttp_gson.model.MultisigDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of symbol-openapi-okhttp-gson-client Show documentation
Show all versions of symbol-openapi-okhttp-gson-client Show documentation
symbol-openapi-okhttp-gson-client Generated Open API client for symbol-sdk-java
/*
* 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;
/**
* MultisigDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-06-30T14:27:18.729Z[UTC]")
public class MultisigDTO {
public static final String SERIALIZED_NAME_ACCOUNT_ADDRESS = "accountAddress";
@SerializedName(SERIALIZED_NAME_ACCOUNT_ADDRESS)
private String accountAddress;
public static final String SERIALIZED_NAME_MIN_APPROVAL = "minApproval";
@SerializedName(SERIALIZED_NAME_MIN_APPROVAL)
private Long minApproval;
public static final String SERIALIZED_NAME_MIN_REMOVAL = "minRemoval";
@SerializedName(SERIALIZED_NAME_MIN_REMOVAL)
private Long minRemoval;
public static final String SERIALIZED_NAME_COSIGNATORY_ADDRESSES = "cosignatoryAddresses";
@SerializedName(SERIALIZED_NAME_COSIGNATORY_ADDRESSES)
private List cosignatoryAddresses = new ArrayList<>();
public static final String SERIALIZED_NAME_MULTISIG_ADDRESSES = "multisigAddresses";
@SerializedName(SERIALIZED_NAME_MULTISIG_ADDRESSES)
private List multisigAddresses = new ArrayList<>();
public MultisigDTO accountAddress(String accountAddress) {
this.accountAddress = accountAddress;
return this;
}
/**
* Address expressed in hexadecimal base.
* @return accountAddress
**/
@ApiModelProperty(example = "9081FCCB41F8C8409A9B99E485E0E28D23BD6304EF7215E0", required = true, value = "Address expressed in hexadecimal base.")
public String getAccountAddress() {
return accountAddress;
}
public void setAccountAddress(String accountAddress) {
this.accountAddress = accountAddress;
}
public MultisigDTO minApproval(Long minApproval) {
this.minApproval = minApproval;
return this;
}
/**
* A number that allows uint 32 values.
* @return minApproval
**/
@ApiModelProperty(example = "2222212828", required = true, value = "A number that allows uint 32 values.")
public Long getMinApproval() {
return minApproval;
}
public void setMinApproval(Long minApproval) {
this.minApproval = minApproval;
}
public MultisigDTO minRemoval(Long minRemoval) {
this.minRemoval = minRemoval;
return this;
}
/**
* A number that allows uint 32 values.
* @return minRemoval
**/
@ApiModelProperty(example = "2222212828", required = true, value = "A number that allows uint 32 values.")
public Long getMinRemoval() {
return minRemoval;
}
public void setMinRemoval(Long minRemoval) {
this.minRemoval = minRemoval;
}
public MultisigDTO cosignatoryAddresses(List cosignatoryAddresses) {
this.cosignatoryAddresses = cosignatoryAddresses;
return this;
}
public MultisigDTO addCosignatoryAddressesItem(String cosignatoryAddressesItem) {
this.cosignatoryAddresses.add(cosignatoryAddressesItem);
return this;
}
/**
* Addresses of the cosignatory accounts.
* @return cosignatoryAddresses
**/
@ApiModelProperty(required = true, value = "Addresses of the cosignatory accounts.")
public List getCosignatoryAddresses() {
return cosignatoryAddresses;
}
public void setCosignatoryAddresses(List cosignatoryAddresses) {
this.cosignatoryAddresses = cosignatoryAddresses;
}
public MultisigDTO multisigAddresses(List multisigAddresses) {
this.multisigAddresses = multisigAddresses;
return this;
}
public MultisigDTO addMultisigAddressesItem(String multisigAddressesItem) {
this.multisigAddresses.add(multisigAddressesItem);
return this;
}
/**
* Multisig accounts where the account is cosignatory.
* @return multisigAddresses
**/
@ApiModelProperty(required = true, value = "Multisig accounts where the account is cosignatory.")
public List getMultisigAddresses() {
return multisigAddresses;
}
public void setMultisigAddresses(List multisigAddresses) {
this.multisigAddresses = multisigAddresses;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MultisigDTO multisigDTO = (MultisigDTO) o;
return Objects.equals(this.accountAddress, multisigDTO.accountAddress) &&
Objects.equals(this.minApproval, multisigDTO.minApproval) &&
Objects.equals(this.minRemoval, multisigDTO.minRemoval) &&
Objects.equals(this.cosignatoryAddresses, multisigDTO.cosignatoryAddresses) &&
Objects.equals(this.multisigAddresses, multisigDTO.multisigAddresses);
}
@Override
public int hashCode() {
return Objects.hash(accountAddress, minApproval, minRemoval, cosignatoryAddresses, multisigAddresses);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MultisigDTO {\n");
sb.append(" accountAddress: ").append(toIndentedString(accountAddress)).append("\n");
sb.append(" minApproval: ").append(toIndentedString(minApproval)).append("\n");
sb.append(" minRemoval: ").append(toIndentedString(minRemoval)).append("\n");
sb.append(" cosignatoryAddresses: ").append(toIndentedString(cosignatoryAddresses)).append("\n");
sb.append(" multisigAddresses: ").append(toIndentedString(multisigAddresses)).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 ");
}
}