Class StatusData.StatusDataBuilder
- java.lang.Object
-
- com.syntifi.casper.sdk.model.status.StatusData.StatusDataBuilder
-
- Enclosing class:
- StatusData
public static class StatusData.StatusDataBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusData.StatusDataBuilder
apiVersion(java.lang.String apiVersion)
The RPC API versionStatusData
build()
StatusData.StatusDataBuilder
buildVersion(java.lang.String buildVersion)
The compiled node versionStatusData.StatusDataBuilder
chainSpecName(java.lang.String chainSpecName)
The chainspec nameStatusData.StatusDataBuilder
lastAddedBlockInfo(MinimalBlockInfo lastAddedBlockInfo)
StatusData.StatusDataBuilder
nextUpgrade(NextUpgrade nextUpgrade)
StatusData.StatusDataBuilder
peers(java.util.List<PeerEntry> peers)
List ofStatusData.StatusDataBuilder
publicKey(PublicKey publicKey)
StatusData.StatusDataBuilder
roundLength(java.lang.String roundLength)
The next round length if this node is a validatorStatusData.StatusDataBuilder
startStateRootHash(java.lang.String startStateRootHash)
The state root hash used at the start of the current sessionjava.lang.String
toString()
StatusData.StatusDataBuilder
uptime(java.lang.String uptime)
Time passed since the node has started
-
-
-
Method Detail
-
apiVersion
public StatusData.StatusDataBuilder apiVersion(java.lang.String apiVersion)
The RPC API version- Returns:
this
.
-
buildVersion
public StatusData.StatusDataBuilder buildVersion(java.lang.String buildVersion)
The compiled node version- Returns:
this
.
-
chainSpecName
public StatusData.StatusDataBuilder chainSpecName(java.lang.String chainSpecName)
The chainspec name- Returns:
this
.
-
lastAddedBlockInfo
public StatusData.StatusDataBuilder lastAddedBlockInfo(MinimalBlockInfo lastAddedBlockInfo)
- Returns:
this
.- See Also:
MinimalBlockInfo
-
nextUpgrade
public StatusData.StatusDataBuilder nextUpgrade(NextUpgrade nextUpgrade)
- Returns:
this
.- See Also:
NextUpgrade
-
publicKey
public StatusData.StatusDataBuilder publicKey(PublicKey publicKey)
- Returns:
this
.- See Also:
PublicKey
-
peers
public StatusData.StatusDataBuilder peers(java.util.List<PeerEntry> peers)
List of- Returns:
this
.- See Also:
PeerEntry
-
roundLength
public StatusData.StatusDataBuilder roundLength(java.lang.String roundLength)
The next round length if this node is a validator- Returns:
this
.
-
uptime
public StatusData.StatusDataBuilder uptime(java.lang.String uptime)
Time passed since the node has started- Returns:
this
.
-
startStateRootHash
public StatusData.StatusDataBuilder startStateRootHash(java.lang.String startStateRootHash)
The state root hash used at the start of the current session- Returns:
this
.
-
build
public StatusData build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-