
io.nem.symbol.sdk.openapi.jersey2.model.MosaicAddressRestrictionEntryWrapperDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of symbol-openapi-jersey2-client Show documentation
Show all versions of symbol-openapi-jersey2-client Show documentation
symbol-openapi-jersey2-client Generated Open API client for symbol-sdk-java
/*
* 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.nem.symbol.sdk.openapi.jersey2.model.MosaicAddressRestrictionEntryDTO;
import io.nem.symbol.sdk.openapi.jersey2.model.MosaicRestrictionEntryTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* MosaicAddressRestrictionEntryWrapperDTO
*/
@JsonPropertyOrder({
MosaicAddressRestrictionEntryWrapperDTO.JSON_PROPERTY_VERSION,
MosaicAddressRestrictionEntryWrapperDTO.JSON_PROPERTY_COMPOSITE_HASH,
MosaicAddressRestrictionEntryWrapperDTO.JSON_PROPERTY_ENTRY_TYPE,
MosaicAddressRestrictionEntryWrapperDTO.JSON_PROPERTY_MOSAIC_ID,
MosaicAddressRestrictionEntryWrapperDTO.JSON_PROPERTY_TARGET_ADDRESS,
MosaicAddressRestrictionEntryWrapperDTO.JSON_PROPERTY_RESTRICTIONS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-02-02T19:39:53.661Z[UTC]")
public class MosaicAddressRestrictionEntryWrapperDTO {
public static final String JSON_PROPERTY_VERSION = "version";
private Integer version;
public static final String JSON_PROPERTY_COMPOSITE_HASH = "compositeHash";
private String compositeHash;
public static final String JSON_PROPERTY_ENTRY_TYPE = "entryType";
private MosaicRestrictionEntryTypeEnum entryType;
public static final String JSON_PROPERTY_MOSAIC_ID = "mosaicId";
private String mosaicId;
public static final String JSON_PROPERTY_TARGET_ADDRESS = "targetAddress";
private String targetAddress;
public static final String JSON_PROPERTY_RESTRICTIONS = "restrictions";
private List restrictions = new ArrayList<>();
public MosaicAddressRestrictionEntryWrapperDTO version(Integer version) {
this.version = version;
return this;
}
/**
* The version of the state
* @return version
**/
@ApiModelProperty(example = "1", required = true, value = "The version of the state")
@JsonProperty(JSON_PROPERTY_VERSION)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
public MosaicAddressRestrictionEntryWrapperDTO compositeHash(String compositeHash) {
this.compositeHash = compositeHash;
return this;
}
/**
* Get compositeHash
* @return compositeHash
**/
@ApiModelProperty(example = "C8FC3FB54FDDFBCE0E8C71224990124E4EEC5AD5D30E592EDFA9524669A23810", required = true, value = "")
@JsonProperty(JSON_PROPERTY_COMPOSITE_HASH)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCompositeHash() {
return compositeHash;
}
public void setCompositeHash(String compositeHash) {
this.compositeHash = compositeHash;
}
public MosaicAddressRestrictionEntryWrapperDTO entryType(MosaicRestrictionEntryTypeEnum entryType) {
this.entryType = entryType;
return this;
}
/**
* Get entryType
* @return entryType
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENTRY_TYPE)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public MosaicRestrictionEntryTypeEnum getEntryType() {
return entryType;
}
public void setEntryType(MosaicRestrictionEntryTypeEnum entryType) {
this.entryType = entryType;
}
public MosaicAddressRestrictionEntryWrapperDTO mosaicId(String mosaicId) {
this.mosaicId = mosaicId;
return this;
}
/**
* Mosaic identifier.
* @return mosaicId
**/
@ApiModelProperty(example = "0DC67FBE1CAD29E3", required = true, value = "Mosaic identifier.")
@JsonProperty(JSON_PROPERTY_MOSAIC_ID)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getMosaicId() {
return mosaicId;
}
public void setMosaicId(String mosaicId) {
this.mosaicId = mosaicId;
}
public MosaicAddressRestrictionEntryWrapperDTO targetAddress(String targetAddress) {
this.targetAddress = targetAddress;
return this;
}
/**
* Address expressed in hexadecimal base.
* @return targetAddress
**/
@ApiModelProperty(example = "9081FCCB41F8C8409A9B99E485E0E28D23BD6304EF7215E0", required = true, value = "Address expressed in hexadecimal base.")
@JsonProperty(JSON_PROPERTY_TARGET_ADDRESS)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTargetAddress() {
return targetAddress;
}
public void setTargetAddress(String targetAddress) {
this.targetAddress = targetAddress;
}
public MosaicAddressRestrictionEntryWrapperDTO restrictions(List restrictions) {
this.restrictions = restrictions;
return this;
}
public MosaicAddressRestrictionEntryWrapperDTO addRestrictionsItem(MosaicAddressRestrictionEntryDTO restrictionsItem) {
this.restrictions.add(restrictionsItem);
return this;
}
/**
* Get restrictions
* @return restrictions
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_RESTRICTIONS)
// @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getRestrictions() {
return restrictions;
}
public void setRestrictions(List restrictions) {
this.restrictions = restrictions;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MosaicAddressRestrictionEntryWrapperDTO mosaicAddressRestrictionEntryWrapperDTO = (MosaicAddressRestrictionEntryWrapperDTO) o;
return Objects.equals(this.version, mosaicAddressRestrictionEntryWrapperDTO.version) &&
Objects.equals(this.compositeHash, mosaicAddressRestrictionEntryWrapperDTO.compositeHash) &&
Objects.equals(this.entryType, mosaicAddressRestrictionEntryWrapperDTO.entryType) &&
Objects.equals(this.mosaicId, mosaicAddressRestrictionEntryWrapperDTO.mosaicId) &&
Objects.equals(this.targetAddress, mosaicAddressRestrictionEntryWrapperDTO.targetAddress) &&
Objects.equals(this.restrictions, mosaicAddressRestrictionEntryWrapperDTO.restrictions);
}
@Override
public int hashCode() {
return Objects.hash(version, compositeHash, entryType, mosaicId, targetAddress, restrictions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MosaicAddressRestrictionEntryWrapperDTO {\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" compositeHash: ").append(toIndentedString(compositeHash)).append("\n");
sb.append(" entryType: ").append(toIndentedString(entryType)).append("\n");
sb.append(" mosaicId: ").append(toIndentedString(mosaicId)).append("\n");
sb.append(" targetAddress: ").append(toIndentedString(targetAddress)).append("\n");
sb.append(" restrictions: ").append(toIndentedString(restrictions)).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