Class SecretLockTransactionBodyDTO
- java.lang.Object
-
- io.nem.symbol.sdk.openapi.jersey2.model.SecretLockTransactionBodyDTO
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-05-15T14:38:14.328808-03:00[America/Argentina/Buenos_Aires]") public class SecretLockTransactionBodyDTO extends java.lang.ObjectSecretLockTransactionBodyDTO
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_AMOUNTstatic java.lang.StringJSON_PROPERTY_DURATIONstatic java.lang.StringJSON_PROPERTY_HASH_ALGORITHMstatic java.lang.StringJSON_PROPERTY_MOSAIC_IDstatic java.lang.StringJSON_PROPERTY_RECIPIENT_ADDRESSstatic java.lang.StringJSON_PROPERTY_SECRET
-
Constructor Summary
Constructors Constructor Description SecretLockTransactionBodyDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretLockTransactionBodyDTOamount(java.math.BigInteger amount)SecretLockTransactionBodyDTOduration(java.math.BigInteger duration)booleanequals(java.lang.Object o)java.math.BigIntegergetAmount()Absolute amount.java.math.BigIntegergetDuration()Duration expressed in number of blocks.LockHashAlgorithmEnumgetHashAlgorithm()Get hashAlgorithmjava.lang.StringgetMosaicId()Mosaic identifier.java.lang.StringgetRecipientAddress()Address expressed in hexadecimal base.java.lang.StringgetSecret()Get secretSecretLockTransactionBodyDTOhashAlgorithm(LockHashAlgorithmEnum hashAlgorithm)inthashCode()SecretLockTransactionBodyDTOmosaicId(java.lang.String mosaicId)SecretLockTransactionBodyDTOrecipientAddress(java.lang.String recipientAddress)SecretLockTransactionBodyDTOsecret(java.lang.String secret)voidsetAmount(java.math.BigInteger amount)voidsetDuration(java.math.BigInteger duration)voidsetHashAlgorithm(LockHashAlgorithmEnum hashAlgorithm)voidsetMosaicId(java.lang.String mosaicId)voidsetRecipientAddress(java.lang.String recipientAddress)voidsetSecret(java.lang.String secret)java.lang.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_SECRET
public static final java.lang.String JSON_PROPERTY_SECRET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MOSAIC_ID
public static final java.lang.String JSON_PROPERTY_MOSAIC_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT
public static final java.lang.String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DURATION
public static final java.lang.String JSON_PROPERTY_DURATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HASH_ALGORITHM
public static final java.lang.String JSON_PROPERTY_HASH_ALGORITHM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECIPIENT_ADDRESS
public static final java.lang.String JSON_PROPERTY_RECIPIENT_ADDRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
secret
public SecretLockTransactionBodyDTO secret(java.lang.String secret)
-
getSecret
public java.lang.String getSecret()
Get secret- Returns:
- secret
-
setSecret
public void setSecret(java.lang.String secret)
-
mosaicId
public SecretLockTransactionBodyDTO mosaicId(java.lang.String mosaicId)
-
getMosaicId
public java.lang.String getMosaicId()
Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier.- Returns:
- mosaicId
-
setMosaicId
public void setMosaicId(java.lang.String mosaicId)
-
amount
public SecretLockTransactionBodyDTO amount(java.math.BigInteger amount)
-
getAmount
public java.math.BigInteger getAmount()
Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative).- Returns:
- amount
-
setAmount
public void setAmount(java.math.BigInteger amount)
-
duration
public SecretLockTransactionBodyDTO duration(java.math.BigInteger duration)
-
getDuration
public java.math.BigInteger getDuration()
Duration expressed in number of blocks.- Returns:
- duration
-
setDuration
public void setDuration(java.math.BigInteger duration)
-
hashAlgorithm
public SecretLockTransactionBodyDTO hashAlgorithm(LockHashAlgorithmEnum hashAlgorithm)
-
getHashAlgorithm
public LockHashAlgorithmEnum getHashAlgorithm()
Get hashAlgorithm- Returns:
- hashAlgorithm
-
setHashAlgorithm
public void setHashAlgorithm(LockHashAlgorithmEnum hashAlgorithm)
-
recipientAddress
public SecretLockTransactionBodyDTO recipientAddress(java.lang.String recipientAddress)
-
getRecipientAddress
public java.lang.String getRecipientAddress()
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.- Returns:
- recipientAddress
-
setRecipientAddress
public void setRecipientAddress(java.lang.String recipientAddress)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-