Package org.stellar.sdk.xdr
Class SetOptionsOp
java.lang.Object
org.stellar.sdk.xdr.SetOptionsOp
- All Implemented Interfaces:
XdrElement
SetOptionsOp's original definition in the XDR file is:
struct SetOptionsOp
{
AccountID* inflationDest; // sets the inflation destination
uint32* clearFlags; // which flags to clear
uint32* setFlags; // which flags to set
// account threshold manipulation
uint32* masterWeight; // weight of the master account
uint32* lowThreshold;
uint32* medThreshold;
uint32* highThreshold;
string32* homeDomain; // sets the home domain
// Add, update or remove a signer for the account
// signer is deleted if the weight is 0
Signer* signer;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SetOptionsOpdecode(XdrDataInputStream stream) static SetOptionsOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SetOptionsOpstatic SetOptionsOpfromXdrBase64(String xdr) static SetOptionsOpfromXdrByteArray(byte[] xdr) Value of theclearFlagsfield.Value of thehighThresholdfield.Value of thehomeDomainfield.Value of theinflationDestfield.Value of thelowThresholdfield.Value of themasterWeightfield.Value of themedThresholdfield.Value of thesetFlagsfield.Value of thesignerfield.inthashCode()voidsetClearFlags(Uint32 clearFlags) Value of theclearFlagsfield.voidsetHighThreshold(Uint32 highThreshold) Value of thehighThresholdfield.voidsetHomeDomain(String32 homeDomain) Value of thehomeDomainfield.voidsetInflationDest(AccountID inflationDest) Value of theinflationDestfield.voidsetLowThreshold(Uint32 lowThreshold) Value of thelowThresholdfield.voidsetMasterWeight(Uint32 masterWeight) Value of themasterWeightfield.voidsetMedThreshold(Uint32 medThreshold) Value of themedThresholdfield.voidsetSetFlags(Uint32 setFlags) Value of thesetFlagsfield.voidValue of thesignerfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SetOptionsOp
public SetOptionsOp() -
SetOptionsOp
public SetOptionsOp(AccountID inflationDest, Uint32 clearFlags, Uint32 setFlags, Uint32 masterWeight, Uint32 lowThreshold, Uint32 medThreshold, Uint32 highThreshold, String32 homeDomain, Signer signer) Creates a newSetOptionsOpinstance.- Parameters:
inflationDest- theinflationDestfield valueclearFlags- theclearFlagsfield valuesetFlags- thesetFlagsfield valuemasterWeight- themasterWeightfield valuelowThreshold- thelowThresholdfield valuemedThreshold- themedThresholdfield valuehighThreshold- thehighThresholdfield valuehomeDomain- thehomeDomainfield valuesigner- thesignerfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getInflationDest
Value of theinflationDestfield.- Returns:
- the
inflationDestfield value
-
getClearFlags
Value of theclearFlagsfield.- Returns:
- the
clearFlagsfield value
-
getSetFlags
Value of thesetFlagsfield.- Returns:
- the
setFlagsfield value
-
getMasterWeight
Value of themasterWeightfield.- Returns:
- the
masterWeightfield value
-
getLowThreshold
Value of thelowThresholdfield.- Returns:
- the
lowThresholdfield value
-
getMedThreshold
Value of themedThresholdfield.- Returns:
- the
medThresholdfield value
-
getHighThreshold
Value of thehighThresholdfield.- Returns:
- the
highThresholdfield value
-
getHomeDomain
Value of thehomeDomainfield.- Returns:
- the
homeDomainfield value
-
getSigner
Value of thesignerfield.- Returns:
- the
signerfield value
-
setInflationDest
Value of theinflationDestfield.- Parameters:
inflationDest- theinflationDestfield value
-
setClearFlags
Value of theclearFlagsfield.- Parameters:
clearFlags- theclearFlagsfield value
-
setSetFlags
Value of thesetFlagsfield.- Parameters:
setFlags- thesetFlagsfield value
-
setMasterWeight
Value of themasterWeightfield.- Parameters:
masterWeight- themasterWeightfield value
-
setLowThreshold
Value of thelowThresholdfield.- Parameters:
lowThreshold- thelowThresholdfield value
-
setMedThreshold
Value of themedThresholdfield.- Parameters:
medThreshold- themedThresholdfield value
-
setHighThreshold
Value of thehighThresholdfield.- Parameters:
highThreshold- thehighThresholdfield value
-
setHomeDomain
Value of thehomeDomainfield.- Parameters:
homeDomain- thehomeDomainfield value
-
setSigner
Value of thesignerfield.- Parameters:
signer- thesignerfield value
-
equals
-
hashCode
public int hashCode() -
toString
-