Class AccountMosaicRestrictionTransactionV1Descriptor
java.lang.Object
org.symbol.sdk.symbol.descriptors.AccountMosaicRestrictionTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
public final class AccountMosaicRestrictionTransactionV1Descriptor
extends Object
implements SymbolTransactionDescriptor
- AccountMosaicRestrictionTransactionV1Descriptor
- Type safe descriptor used to generate a descriptor map for AccountMosaicRestrictionTransactionV1Descriptor. Allow or block incoming transactions containing a given set of mosaics (V1, latest).
-
Constructor Summary
ConstructorsConstructorDescriptionAccountMosaicRestrictionTransactionV1Descriptor(String restrictionFlags) Creates a descriptor for AccountMosaicRestrictionTransactionV1 from string-form values.AccountMosaicRestrictionTransactionV1Descriptor(AccountRestrictionFlags restrictionFlags) Creates a descriptor for AccountMosaicRestrictionTransactionV1. -
Method Summary
Modifier and TypeMethodDescriptionrestrictionAdditions(String... restrictionAdditions) Sets the restrictionAdditions field.restrictionAdditions(List<UnresolvedMosaicId> restrictionAdditions) Sets the restrictionAdditions field.restrictionDeletions(String... restrictionDeletions) Sets the restrictionDeletions field.restrictionDeletions(List<UnresolvedMosaicId> restrictionDeletions) Sets the restrictionDeletions field.toMap()Builds a representation of this descriptor that can be passed to a factory function.
-
Constructor Details
-
AccountMosaicRestrictionTransactionV1Descriptor
Creates a descriptor for AccountMosaicRestrictionTransactionV1.- Parameters:
restrictionFlags- Type of restriction being applied to the listed mosaics.
-
AccountMosaicRestrictionTransactionV1Descriptor
Creates a descriptor for AccountMosaicRestrictionTransactionV1 from string-form values.- Parameters:
restrictionFlags- Type of restriction being applied to the listed mosaics.
-
-
Method Details
-
restrictionAdditions
public AccountMosaicRestrictionTransactionV1Descriptor restrictionAdditions(List<UnresolvedMosaicId> restrictionAdditions) - AccountMosaicRestrictionTransactionV1Descriptor.restrictionAdditions
- Sets the restrictionAdditions field.
- Parameters:
restrictionAdditions- Array of mosaics being added to the restricted list.- Returns:
- This descriptor for chaining.
-
restrictionAdditions
public AccountMosaicRestrictionTransactionV1Descriptor restrictionAdditions(String... restrictionAdditions) - AccountMosaicRestrictionTransactionV1Descriptor.restrictionAdditions
- Sets the restrictionAdditions field.
- Parameters:
restrictionAdditions- Array of mosaics being added to the restricted list.- Returns:
- This descriptor for chaining.
-
restrictionDeletions
public AccountMosaicRestrictionTransactionV1Descriptor restrictionDeletions(List<UnresolvedMosaicId> restrictionDeletions) - AccountMosaicRestrictionTransactionV1Descriptor.restrictionDeletions
- Sets the restrictionDeletions field.
- Parameters:
restrictionDeletions- Array of mosaics being removed from the restricted list.- Returns:
- This descriptor for chaining.
-
restrictionDeletions
public AccountMosaicRestrictionTransactionV1Descriptor restrictionDeletions(String... restrictionDeletions) - AccountMosaicRestrictionTransactionV1Descriptor.restrictionDeletions
- Sets the restrictionDeletions field.
- Parameters:
restrictionDeletions- Array of mosaics being removed from the restricted list.- Returns:
- This descriptor for chaining.
-
toMap
- AccountMosaicRestrictionTransactionV1Descriptor.toMap
- Builds a representation of this descriptor that can be passed to a factory function.
- Specified by:
toMapin interfaceTypedDescriptor- Returns:
- Descriptor map that can be passed to a transaction factory.
-