Class DeployHeader
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.DeployHeader
-
- All Implemented Interfaces:
EncodableValue
public class DeployHeader extends java.lang.Object implements EncodableValue
The header portion of a [`Deploy`](struct.Deploy.html).- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeployHeader.DeployHeaderBuilder
-
Constructor Summary
Constructors Constructor Description DeployHeader()DeployHeader(PublicKey account, Digest bodyHash, java.lang.String chainName, java.util.List<Digest> dependencies, java.lang.Long gasPrice, java.util.Date timeStamp, Ttl ttl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeployHeader.DeployHeaderBuilderbuilder()voidencode(CLValueEncoder clve, boolean encodeType)Implements DeployHearder encoderPublicKeygetAccount()DigestgetBodyHash()Body hashjava.lang.StringgetChainName()Chain namejava.util.List<Digest>getDependencies()Dependenciesjava.lang.LonggetGasPrice()Gas pricejava.util.DategetTimeStamp()Timestamp formatted as per RFC 3339TtlgetTtl()Human-readable durationvoidsetAccount(PublicKey account)voidsetBodyHash(Digest bodyHash)Body hashvoidsetChainName(java.lang.String chainName)Chain namevoidsetDependencies(java.util.List<Digest> dependencies)DependenciesvoidsetGasPrice(java.lang.Long gasPrice)Gas pricevoidsetTimeStamp(java.util.Date timeStamp)Timestamp formatted as per RFC 3339voidsetTtl(Ttl ttl)Human-readable duration
-
-
-
Method Detail
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements DeployHearder encoder- Specified by:
encodein interfaceEncodableValue- Parameters:
clve- the encoder to be usedencodeType- append encoded type?- Throws:
java.io.IOException- thrown if an IO error occursCLValueEncodeException- thrown if failed to encode a cl valueDynamicInstanceException- thrown if it could not instantiate a typeNoSuchTypeException- thrown if type not found
-
builder
public static DeployHeader.DeployHeaderBuilder builder()
-
getBodyHash
public Digest getBodyHash()
Body hash
-
getChainName
public java.lang.String getChainName()
Chain name
-
getDependencies
public java.util.List<Digest> getDependencies()
Dependencies
-
getGasPrice
public java.lang.Long getGasPrice()
Gas price
-
getTimeStamp
public java.util.Date getTimeStamp()
Timestamp formatted as per RFC 3339
-
getTtl
public Ttl getTtl()
Human-readable duration
-
setBodyHash
public void setBodyHash(Digest bodyHash)
Body hash
-
setChainName
public void setChainName(java.lang.String chainName)
Chain name
-
setDependencies
public void setDependencies(java.util.List<Digest> dependencies)
Dependencies
-
setGasPrice
public void setGasPrice(java.lang.Long gasPrice)
Gas price
-
setTimeStamp
public void setTimeStamp(java.util.Date timeStamp)
Timestamp formatted as per RFC 3339
-
setTtl
public void setTtl(Ttl ttl)
Human-readable duration
-
-