Class DeployHeader.DeployHeaderBuilder
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.DeployHeader.DeployHeaderBuilder
-
- Enclosing class:
- DeployHeader
public static class DeployHeader.DeployHeaderBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeployHeader.DeployHeaderBuilder
account(PublicKey account)
DeployHeader.DeployHeaderBuilder
bodyHash(Digest bodyHash)
Body hashDeployHeader
build()
DeployHeader.DeployHeaderBuilder
chainName(java.lang.String chainName)
Chain nameDeployHeader.DeployHeaderBuilder
dependencies(java.util.List<Digest> dependencies)
DependenciesDeployHeader.DeployHeaderBuilder
gasPrice(java.lang.Long gasPrice)
Gas priceDeployHeader.DeployHeaderBuilder
timeStamp(java.util.Date timeStamp)
Timestamp formatted as per RFC 3339java.lang.String
toString()
DeployHeader.DeployHeaderBuilder
ttl(Ttl ttl)
Human-readable duration
-
-
-
Method Detail
-
account
public DeployHeader.DeployHeaderBuilder account(PublicKey account)
- Returns:
this
.- See Also:
PublicKey
-
bodyHash
public DeployHeader.DeployHeaderBuilder bodyHash(Digest bodyHash)
Body hash- Returns:
this
.
-
chainName
public DeployHeader.DeployHeaderBuilder chainName(java.lang.String chainName)
Chain name- Returns:
this
.
-
dependencies
public DeployHeader.DeployHeaderBuilder dependencies(java.util.List<Digest> dependencies)
Dependencies- Returns:
this
.
-
gasPrice
public DeployHeader.DeployHeaderBuilder gasPrice(java.lang.Long gasPrice)
Gas price- Returns:
this
.
-
timeStamp
public DeployHeader.DeployHeaderBuilder timeStamp(java.util.Date timeStamp)
Timestamp formatted as per RFC 3339- Returns:
this
.
-
ttl
public DeployHeader.DeployHeaderBuilder ttl(Ttl ttl)
Human-readable duration- Returns:
this
.
-
build
public DeployHeader build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-