public static class PaymentOperation.Builder
extends java.lang.Object
PaymentOperation
Constructor and Description |
---|
Builder(java.lang.String destination,
Asset asset,
java.lang.String amount)
Creates a new PaymentOperation builder.
|
Modifier and Type | Method and Description |
---|---|
PaymentOperation |
build()
Builds an operation
|
PaymentOperation.Builder |
setSourceAccount(java.lang.String account)
Sets the source account for this operation.
|
public Builder(java.lang.String destination, Asset asset, java.lang.String amount)
destination
- The destination account idasset
- The asset to send.amount
- The amount to send in lumens.java.lang.ArithmeticException
- when amount has more than 7 decimal places.public PaymentOperation.Builder setSourceAccount(java.lang.String account)
account
- The operation's source account.public PaymentOperation build()