Package com.casper.sdk.model.entity
Class Entity.EntityBuilder
- java.lang.Object
-
- com.casper.sdk.model.entity.Entity.EntityBuilder
-
- Enclosing class:
- Entity
public static class Entity.EntityBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity.EntityBuilderactionThresholds(ActionThresholds actionThresholds)Thresholds that have to be met when executing an action of a certain type.Entity.EntityBuilderassociatedKeys(java.util.List<AssociatedKey> associatedKeys)A collection of weighted public keys (represented as account hashes) associated with an account.Entitybuild()Entity.EntityBuilderbyteCodeHash(java.lang.String byteCodeHash)HashAddr which is the raw bytes of the ByteCodeHashEntity.EntityBuilderentityAddressKind(EntityAddressKind entityAddressKind)The type of Package.Entity.EntityBuildermainPurse(URef mainPurse)Purse addressEntity.EntityBuildermessageTopics(java.util.List<MessageTopic> messageTopics)Collection of named message topics.Entity.EntityBuilderpackageHash(java.lang.String packageHash)A Package in the global state.Entity.EntityBuilderprotocolVersion(java.lang.String protocolVersion)Casper Platform protocol versionjava.lang.StringtoString()
-
-
-
Method Detail
-
protocolVersion
public Entity.EntityBuilder protocolVersion(java.lang.String protocolVersion)
Casper Platform protocol version- Returns:
this.
-
entityAddressKind
public Entity.EntityBuilder entityAddressKind(EntityAddressKind entityAddressKind)
The type of Package.- Returns:
this.
-
packageHash
public Entity.EntityBuilder packageHash(java.lang.String packageHash)
A Package in the global state.- Returns:
this.
-
byteCodeHash
public Entity.EntityBuilder byteCodeHash(java.lang.String byteCodeHash)
HashAddr which is the raw bytes of the ByteCodeHash- Returns:
this.
-
mainPurse
public Entity.EntityBuilder mainPurse(URef mainPurse)
Purse address- Returns:
this.
-
associatedKeys
public Entity.EntityBuilder associatedKeys(java.util.List<AssociatedKey> associatedKeys)
A collection of weighted public keys (represented as account hashes) associated with an account.- Returns:
this.
-
actionThresholds
public Entity.EntityBuilder actionThresholds(ActionThresholds actionThresholds)
Thresholds that have to be met when executing an action of a certain type.- Returns:
this.
-
messageTopics
public Entity.EntityBuilder messageTopics(java.util.List<MessageTopic> messageTopics)
Collection of named message topics.- Returns:
this.
-
build
public Entity build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-