public class CreateClaimableBalanceResult extends java.lang.Object implements XdrElement
union CreateClaimableBalanceResult switch ( CreateClaimableBalanceResultCode code) { case CREATE_CLAIMABLE_BALANCE_SUCCESS: ClaimableBalanceID balanceID; case CREATE_CLAIMABLE_BALANCE_MALFORMED: case CREATE_CLAIMABLE_BALANCE_LOW_RESERVE: case CREATE_CLAIMABLE_BALANCE_NO_TRUST: case CREATE_CLAIMABLE_BALANCE_NOT_AUTHORIZED: case CREATE_CLAIMABLE_BALANCE_UNDERFUNDED: void; };
Modifier and Type | Class and Description |
---|---|
static class |
CreateClaimableBalanceResult.CreateClaimableBalanceResultBuilder |
Constructor and Description |
---|
CreateClaimableBalanceResult() |
CreateClaimableBalanceResult(CreateClaimableBalanceResultCode discriminant,
ClaimableBalanceID balanceID) |
Modifier and Type | Method and Description |
---|---|
static CreateClaimableBalanceResult.CreateClaimableBalanceResultBuilder |
builder() |
static CreateClaimableBalanceResult |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static CreateClaimableBalanceResult |
fromXdrBase64(java.lang.String xdr) |
static CreateClaimableBalanceResult |
fromXdrByteArray(byte[] xdr) |
ClaimableBalanceID |
getBalanceID() |
CreateClaimableBalanceResultCode |
getDiscriminant() |
int |
hashCode() |
void |
setBalanceID(ClaimableBalanceID balanceID) |
void |
setDiscriminant(CreateClaimableBalanceResultCode discriminant) |
CreateClaimableBalanceResult.CreateClaimableBalanceResultBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public CreateClaimableBalanceResult()
public CreateClaimableBalanceResult(CreateClaimableBalanceResultCode discriminant, ClaimableBalanceID balanceID)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static CreateClaimableBalanceResult decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static CreateClaimableBalanceResult fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static CreateClaimableBalanceResult fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static CreateClaimableBalanceResult.CreateClaimableBalanceResultBuilder builder()
public CreateClaimableBalanceResult.CreateClaimableBalanceResultBuilder toBuilder()
public CreateClaimableBalanceResultCode getDiscriminant()
public ClaimableBalanceID getBalanceID()
public void setDiscriminant(CreateClaimableBalanceResultCode discriminant)
public void setBalanceID(ClaimableBalanceID balanceID)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object