public static class SetOptionsOperation.Builder
extends java.lang.Object
SetOptionsOperation
Constructor and Description |
---|
Builder()
Creates a new SetOptionsOperation builder.
|
Modifier and Type | Method and Description |
---|---|
SetOptionsOperation |
build()
Builds an operation
|
SetOptionsOperation.Builder |
setClearFlags(int clearFlags)
Clears the given flags from the account.
|
SetOptionsOperation.Builder |
setHighThreshold(int highThreshold)
A number from 0-255 representing the threshold this account sets on all operations it performs that have a high threshold.
|
SetOptionsOperation.Builder |
setHomeDomain(java.lang.String homeDomain)
Sets the account's home domain address used in Federation.
|
SetOptionsOperation.Builder |
setInflationDestination(KeyPair inflationDestination)
Sets the inflation destination for the account.
|
SetOptionsOperation.Builder |
setLowThreshold(int lowThreshold)
A number from 0-255 representing the threshold this account sets on all operations it performs that have a low threshold.
|
SetOptionsOperation.Builder |
setMasterKeyWeight(int masterKeyWeight)
Weight of the master key.
|
SetOptionsOperation.Builder |
setMediumThreshold(int mediumThreshold)
A number from 0-255 representing the threshold this account sets on all operations it performs that have a medium threshold.
|
SetOptionsOperation.Builder |
setSetFlags(int setFlags)
Sets the given flags on the account.
|
SetOptionsOperation.Builder |
setSigner(io.digitalbits.sdk.xdr.SignerKey signer,
java.lang.Integer weight)
Add, update, or remove a signer from the account.
|
SetOptionsOperation.Builder |
setSourceAccount(KeyPair sourceAccount)
Sets the source account for this operation.
|
public SetOptionsOperation.Builder setInflationDestination(KeyPair inflationDestination)
inflationDestination
- The inflation destination account.public SetOptionsOperation.Builder setClearFlags(int clearFlags)
clearFlags
- For details about the flags, please refer to the accounts doc.public SetOptionsOperation.Builder setSetFlags(int setFlags)
setFlags
- For details about the flags, please refer to the accounts doc.public SetOptionsOperation.Builder setMasterKeyWeight(int masterKeyWeight)
masterKeyWeight
- Number between 0 and 255public SetOptionsOperation.Builder setLowThreshold(int lowThreshold)
lowThreshold
- Number between 0 and 255public SetOptionsOperation.Builder setMediumThreshold(int mediumThreshold)
mediumThreshold
- Number between 0 and 255public SetOptionsOperation.Builder setHighThreshold(int highThreshold)
highThreshold
- Number between 0 and 255public SetOptionsOperation.Builder setHomeDomain(java.lang.String homeDomain)
homeDomain
- A string of the address which can be up to 32 characters.public SetOptionsOperation.Builder setSigner(io.digitalbits.sdk.xdr.SignerKey signer, java.lang.Integer weight)
signer
- The signer key. Use Signer
helper to create this object.weight
- The weight to attach to the signer (0-255).public SetOptionsOperation.Builder setSourceAccount(KeyPair sourceAccount)
sourceAccount
- The operation's source account.public SetOptionsOperation build()