Class JsonBlock.JsonBlockBuilder
- java.lang.Object
-
- com.syntifi.casper.sdk.model.block.JsonBlock.JsonBlockBuilder
-
- Enclosing class:
- JsonBlock
public static class JsonBlock.JsonBlockBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonBlock.JsonBlockBuilder
body(JsonBlockBody body)
JsonBlock
build()
JsonBlock.JsonBlockBuilder
hash(java.lang.String hash)
The block's hash.JsonBlock.JsonBlockBuilder
header(JsonBlockHeader header)
JsonBlock.JsonBlockBuilder
proofs(java.util.List<JsonProof> proofs)
List ofJsonProof
java.lang.String
toString()
-
-
-
Method Detail
-
hash
public JsonBlock.JsonBlockBuilder hash(java.lang.String hash)
The block's hash.- Returns:
this
.
-
header
public JsonBlock.JsonBlockBuilder header(JsonBlockHeader header)
- Returns:
this
.
-
body
public JsonBlock.JsonBlockBuilder body(JsonBlockBody body)
- Returns:
this
.
-
proofs
public JsonBlock.JsonBlockBuilder proofs(java.util.List<JsonProof> proofs)
List ofJsonProof
- Returns:
this
.
-
build
public JsonBlock build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-