io.nem.sdk.openapi.okhttp_gson.model.MosaicSupplyChangeTransactionBodyDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-okhttp-gson-client Show documentation
Show all versions of api-okhttp-gson-client Show documentation
api-okhttp-gson-client Generated Open API client for nem2-sdk-java
/*
* Catapult REST Endpoints
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.7.21
*
*
* 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.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.nem.sdk.openapi.okhttp_gson.model.MosaicSupplyChangeActionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* MosaicSupplyChangeTransactionBodyDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-11-23T10:27:05.030209+01:00[Europe/Madrid]")
public class MosaicSupplyChangeTransactionBodyDTO {
public static final String SERIALIZED_NAME_MOSAIC_ID = "mosaicId";
@SerializedName(SERIALIZED_NAME_MOSAIC_ID)
private String mosaicId;
public static final String SERIALIZED_NAME_DELTA = "delta";
@SerializedName(SERIALIZED_NAME_DELTA)
private java.math.BigInteger delta = null;
public static final String SERIALIZED_NAME_ACTION = "action";
@SerializedName(SERIALIZED_NAME_ACTION)
private MosaicSupplyChangeActionEnum action;
public MosaicSupplyChangeTransactionBodyDTO mosaicId(String mosaicId) {
this.mosaicId = mosaicId;
return this;
}
/**
* Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier.
* @return mosaicId
**/
@ApiModelProperty(example = "85BBEA6CC462B244", required = true, value = "Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. ")
public String getMosaicId() {
return mosaicId;
}
public void setMosaicId(String mosaicId) {
this.mosaicId = mosaicId;
}
public MosaicSupplyChangeTransactionBodyDTO delta(java.math.BigInteger delta) {
this.delta = delta;
return this;
}
/**
* Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative).
* @return delta
**/
@ApiModelProperty(required = true, value = "Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative).")
public java.math.BigInteger getDelta() {
return delta;
}
public void setDelta(java.math.BigInteger delta) {
this.delta = delta;
}
public MosaicSupplyChangeTransactionBodyDTO action(MosaicSupplyChangeActionEnum action) {
this.action = action;
return this;
}
/**
* Get action
* @return action
**/
@ApiModelProperty(required = true, value = "")
public MosaicSupplyChangeActionEnum getAction() {
return action;
}
public void setAction(MosaicSupplyChangeActionEnum action) {
this.action = action;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MosaicSupplyChangeTransactionBodyDTO mosaicSupplyChangeTransactionBodyDTO = (MosaicSupplyChangeTransactionBodyDTO) o;
return Objects.equals(this.mosaicId, mosaicSupplyChangeTransactionBodyDTO.mosaicId) &&
Objects.equals(this.delta, mosaicSupplyChangeTransactionBodyDTO.delta) &&
Objects.equals(this.action, mosaicSupplyChangeTransactionBodyDTO.action);
}
@Override
public int hashCode() {
return Objects.hash(mosaicId, delta, action);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MosaicSupplyChangeTransactionBodyDTO {\n");
sb.append(" mosaicId: ").append(toIndentedString(mosaicId)).append("\n");
sb.append(" delta: ").append(toIndentedString(delta)).append("\n");
sb.append(" action: ").append(toIndentedString(action)).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