Package org.stellar.sdk.operations
Class AllowTrustOperation.AllowTrustOperationBuilder<C extends AllowTrustOperation,B extends AllowTrustOperation.AllowTrustOperationBuilder<C,B>>
java.lang.Object
org.stellar.sdk.operations.Operation.OperationBuilder<C,B>
org.stellar.sdk.operations.AllowTrustOperation.AllowTrustOperationBuilder<C,B>
- Enclosing class:
AllowTrustOperation
public abstract static class AllowTrustOperation.AllowTrustOperationBuilder<C extends AllowTrustOperation,B extends AllowTrustOperation.AllowTrustOperationBuilder<C,B>>
extends Operation.OperationBuilder<C,B>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe asset of the trustline the source account is authorizing.authorize
(@NonNull AllowTrustOperation.TrustLineEntryFlag authorize) Indicates which flags to set for a trust line entryabstract C
build()
toString()
The account of the recipient of the trustline.Methods inherited from class org.stellar.sdk.operations.Operation.OperationBuilder
sourceAccount
-
Constructor Details
-
AllowTrustOperationBuilder
public AllowTrustOperationBuilder()
-
-
Method Details
-
trustor
The account of the recipient of the trustline.- Returns:
this
.
-
assetCode
The asset of the trustline the source account is authorizing. For example, if a gateway wants to allow another account to hold its USD credit, the type is USD.- Returns:
this
.
-
authorize
Indicates which flags to set for a trust line entry- Returns:
this
.
-
build
- Specified by:
build
in classOperation.OperationBuilder<C extends AllowTrustOperation,
B extends AllowTrustOperation.AllowTrustOperationBuilder<C, B>>
-
toString
- Overrides:
toString
in classOperation.OperationBuilder<C extends AllowTrustOperation,
B extends AllowTrustOperation.AllowTrustOperationBuilder<C, B>>
-