Class AccountAddressRestrictionTransactionV1Descriptor
java.lang.Object
org.symbol.sdk.symbol.descriptors.AccountAddressRestrictionTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
public final class AccountAddressRestrictionTransactionV1Descriptor
extends Object
implements SymbolTransactionDescriptor
- AccountAddressRestrictionTransactionV1Descriptor
- Type safe descriptor used to generate a descriptor map for AccountAddressRestrictionTransactionV1Descriptor. Allow or block incoming and outgoing transactions for a given a set of addresses (V1, latest).
-
Constructor Summary
ConstructorsConstructorDescriptionAccountAddressRestrictionTransactionV1Descriptor(String restrictionFlags) Creates a descriptor for AccountAddressRestrictionTransactionV1 from string-form values.AccountAddressRestrictionTransactionV1Descriptor(AccountRestrictionFlags restrictionFlags) Creates a descriptor for AccountAddressRestrictionTransactionV1. -
Method Summary
Modifier and TypeMethodDescriptionrestrictionAdditions(String... restrictionAdditions) Sets the restrictionAdditions field.restrictionAdditions(List<Address> restrictionAdditions) Sets the restrictionAdditions field.restrictionDeletions(String... restrictionDeletions) Sets the restrictionDeletions field.restrictionDeletions(List<Address> restrictionDeletions) Sets the restrictionDeletions field.toMap()Builds a representation of this descriptor that can be passed to a factory function.
-
Constructor Details
-
AccountAddressRestrictionTransactionV1Descriptor
Creates a descriptor for AccountAddressRestrictionTransactionV1.- Parameters:
restrictionFlags- Type of restriction being applied to the listed addresses.
-
AccountAddressRestrictionTransactionV1Descriptor
Creates a descriptor for AccountAddressRestrictionTransactionV1 from string-form values.- Parameters:
restrictionFlags- Type of restriction being applied to the listed addresses.
-
-
Method Details
-
restrictionAdditions
public AccountAddressRestrictionTransactionV1Descriptor restrictionAdditions(List<Address> restrictionAdditions) - AccountAddressRestrictionTransactionV1Descriptor.restrictionAdditions
- Sets the restrictionAdditions field.
- Parameters:
restrictionAdditions- Array of account addresses being added to the restricted list.- Returns:
- This descriptor for chaining.
-
restrictionAdditions
public AccountAddressRestrictionTransactionV1Descriptor restrictionAdditions(String... restrictionAdditions) - AccountAddressRestrictionTransactionV1Descriptor.restrictionAdditions
- Sets the restrictionAdditions field.
- Parameters:
restrictionAdditions- Array of account addresses being added to the restricted list.- Returns:
- This descriptor for chaining.
-
restrictionDeletions
public AccountAddressRestrictionTransactionV1Descriptor restrictionDeletions(List<Address> restrictionDeletions) - AccountAddressRestrictionTransactionV1Descriptor.restrictionDeletions
- Sets the restrictionDeletions field.
- Parameters:
restrictionDeletions- Array of account addresses being removed from the restricted list.- Returns:
- This descriptor for chaining.
-
restrictionDeletions
public AccountAddressRestrictionTransactionV1Descriptor restrictionDeletions(String... restrictionDeletions) - AccountAddressRestrictionTransactionV1Descriptor.restrictionDeletions
- Sets the restrictionDeletions field.
- Parameters:
restrictionDeletions- Array of account addresses being removed from the restricted list.- Returns:
- This descriptor for chaining.
-
toMap
- AccountAddressRestrictionTransactionV1Descriptor.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.
-