Package org.onyx.api
Class Asset.TagUpdateBuilder
java.lang.Object
org.onyx.api.Asset.TagUpdateBuilder
- Enclosing class:
Asset
A builder for updating an asset's tags.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the asset to be updated.Specifies a new set of tags.voidUpdates the asset's tags.
-
Constructor Details
-
TagUpdateBuilder
public TagUpdateBuilder()
-
-
Method Details
-
forId
Specifies the asset to be updated.- Parameters:
id- the asset's ID- Returns:
- updated builder
-
setTags
Specifies a new set of tags.- Parameters:
tags- map of tag keys to tag values- Returns:
- updated builder
-
update
Updates the asset's tags.- Parameters:
client- ledger API connection object- Throws:
ChainException
-