public class PathPaymentStrictSendOp extends java.lang.Object implements XdrElement
struct PathPaymentStrictSendOp { Asset sendAsset; // asset we pay with int64 sendAmount; // amount of sendAsset to send (excluding fees) MuxedAccount destination; // recipient of the payment Asset destAsset; // what they end up with int64 destMin; // the minimum amount of dest asset to // be received // The operation will fail if it can't be met Asset path<5>; // additional hops it must go through to get there };
Modifier and Type | Class and Description |
---|---|
static class |
PathPaymentStrictSendOp.PathPaymentStrictSendOpBuilder |
Constructor and Description |
---|
PathPaymentStrictSendOp() |
PathPaymentStrictSendOp(Asset sendAsset,
Int64 sendAmount,
MuxedAccount destination,
Asset destAsset,
Int64 destMin,
Asset[] path) |
Modifier and Type | Method and Description |
---|---|
static PathPaymentStrictSendOp.PathPaymentStrictSendOpBuilder |
builder() |
static PathPaymentStrictSendOp |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static PathPaymentStrictSendOp |
fromXdrBase64(java.lang.String xdr) |
static PathPaymentStrictSendOp |
fromXdrByteArray(byte[] xdr) |
Asset |
getDestAsset() |
MuxedAccount |
getDestination() |
Int64 |
getDestMin() |
Asset[] |
getPath() |
Int64 |
getSendAmount() |
Asset |
getSendAsset() |
int |
hashCode() |
void |
setDestAsset(Asset destAsset) |
void |
setDestination(MuxedAccount destination) |
void |
setDestMin(Int64 destMin) |
void |
setPath(Asset[] path) |
void |
setSendAmount(Int64 sendAmount) |
void |
setSendAsset(Asset sendAsset) |
PathPaymentStrictSendOp.PathPaymentStrictSendOpBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static PathPaymentStrictSendOp decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static PathPaymentStrictSendOp fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static PathPaymentStrictSendOp fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static PathPaymentStrictSendOp.PathPaymentStrictSendOpBuilder builder()
public PathPaymentStrictSendOp.PathPaymentStrictSendOpBuilder toBuilder()
public Asset getSendAsset()
public Int64 getSendAmount()
public MuxedAccount getDestination()
public Asset getDestAsset()
public Int64 getDestMin()
public Asset[] getPath()
public void setSendAsset(Asset sendAsset)
public void setSendAmount(Int64 sendAmount)
public void setDestination(MuxedAccount destination)
public void setDestAsset(Asset destAsset)
public void setDestMin(Int64 destMin)
public void setPath(Asset[] path)
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