io.nem.symbol.sdk.openapi.okhttp_gson.model.AccountMetadataTransactionBodyDTO 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;
/**
* AccountMetadataTransactionBodyDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-06-30T14:27:18.729Z[UTC]")
public class AccountMetadataTransactionBodyDTO {
public static final String SERIALIZED_NAME_TARGET_ADDRESS = "targetAddress";
@SerializedName(SERIALIZED_NAME_TARGET_ADDRESS)
private String targetAddress;
public static final String SERIALIZED_NAME_SCOPED_METADATA_KEY = "scopedMetadataKey";
@SerializedName(SERIALIZED_NAME_SCOPED_METADATA_KEY)
private String scopedMetadataKey;
public static final String SERIALIZED_NAME_VALUE_SIZE_DELTA = "valueSizeDelta";
@SerializedName(SERIALIZED_NAME_VALUE_SIZE_DELTA)
private Integer valueSizeDelta;
public static final String SERIALIZED_NAME_VALUE_SIZE = "valueSize";
@SerializedName(SERIALIZED_NAME_VALUE_SIZE)
private Long valueSize;
public static final String SERIALIZED_NAME_VALUE = "value";
@SerializedName(SERIALIZED_NAME_VALUE)
private String value;
public AccountMetadataTransactionBodyDTO targetAddress(String targetAddress) {
this.targetAddress = targetAddress;
return this;
}
/**
* Address expressed in hexadecimal base. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1.
* @return targetAddress
**/
@ApiModelProperty(example = "90340017CFF3DD2BCF3B2670CDCB9FC8C75754E2325F297C", required = true, value = "Address expressed in hexadecimal base. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. ")
public String getTargetAddress() {
return targetAddress;
}
public void setTargetAddress(String targetAddress) {
this.targetAddress = targetAddress;
}
public AccountMetadataTransactionBodyDTO scopedMetadataKey(String scopedMetadataKey) {
this.scopedMetadataKey = scopedMetadataKey;
return this;
}
/**
* Metadata key scoped to source, target and type expressed.
* @return scopedMetadataKey
**/
@ApiModelProperty(example = "0DC67FBE1CAD29E3", required = true, value = "Metadata key scoped to source, target and type expressed.")
public String getScopedMetadataKey() {
return scopedMetadataKey;
}
public void setScopedMetadataKey(String scopedMetadataKey) {
this.scopedMetadataKey = scopedMetadataKey;
}
public AccountMetadataTransactionBodyDTO valueSizeDelta(Integer valueSizeDelta) {
this.valueSizeDelta = valueSizeDelta;
return this;
}
/**
* Change in value size in bytes.
* @return valueSizeDelta
**/
@ApiModelProperty(required = true, value = "Change in value size in bytes.")
public Integer getValueSizeDelta() {
return valueSizeDelta;
}
public void setValueSizeDelta(Integer valueSizeDelta) {
this.valueSizeDelta = valueSizeDelta;
}
public AccountMetadataTransactionBodyDTO valueSize(Long valueSize) {
this.valueSize = valueSize;
return this;
}
/**
* A number that allows uint 32 values.
* @return valueSize
**/
@ApiModelProperty(example = "2222212828", required = true, value = "A number that allows uint 32 values.")
public Long getValueSize() {
return valueSize;
}
public void setValueSize(Long valueSize) {
this.valueSize = valueSize;
}
public AccountMetadataTransactionBodyDTO value(String value) {
this.value = value;
return this;
}
/**
* Metadata value. If embedded in a transaction, this is calculated as xor(previous-value, value).
* @return value
**/
@ApiModelProperty(required = true, value = "Metadata value. If embedded in a transaction, this is calculated as xor(previous-value, value).")
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountMetadataTransactionBodyDTO accountMetadataTransactionBodyDTO = (AccountMetadataTransactionBodyDTO) o;
return Objects.equals(this.targetAddress, accountMetadataTransactionBodyDTO.targetAddress) &&
Objects.equals(this.scopedMetadataKey, accountMetadataTransactionBodyDTO.scopedMetadataKey) &&
Objects.equals(this.valueSizeDelta, accountMetadataTransactionBodyDTO.valueSizeDelta) &&
Objects.equals(this.valueSize, accountMetadataTransactionBodyDTO.valueSize) &&
Objects.equals(this.value, accountMetadataTransactionBodyDTO.value);
}
@Override
public int hashCode() {
return Objects.hash(targetAddress, scopedMetadataKey, valueSizeDelta, valueSize, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountMetadataTransactionBodyDTO {\n");
sb.append(" targetAddress: ").append(toIndentedString(targetAddress)).append("\n");
sb.append(" scopedMetadataKey: ").append(toIndentedString(scopedMetadataKey)).append("\n");
sb.append(" valueSizeDelta: ").append(toIndentedString(valueSizeDelta)).append("\n");
sb.append(" valueSize: ").append(toIndentedString(valueSize)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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 ");
}
}