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