Class AccountBalance

java.lang.Object
dev.vality.fistful.account.AccountBalance
All Implemented Interfaces:
Serializable, Cloneable, Comparable<AccountBalance>, org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-06-27")
public class AccountBalance
extends Object
implements org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>, Serializable, Cloneable, Comparable<AccountBalance>
See Also:
Serialized Form
  • Field Details

    • id

      public String id
    • currency

      public CurrencyRef currency
    • expected_min

      public long expected_min
    • current

      public long current
    • expected_max

      public long expected_max
    • metaDataMap

      public static final Map<AccountBalance._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • AccountBalance

      public AccountBalance()
    • AccountBalance

      public AccountBalance​(String id, CurrencyRef currency, long expected_min, long current, long expected_max)
    • AccountBalance

      public AccountBalance​(AccountBalance other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public AccountBalance deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>
    • getId

      public String getId()
    • setId

      public AccountBalance setId​(String id)
    • unsetId

      public void unsetId()
    • isSetId

      public boolean isSetId()
      Returns true if field id is set (has been assigned a value) and false otherwise
    • setIdIsSet

      public void setIdIsSet​(boolean value)
    • getCurrency

      public CurrencyRef getCurrency()
    • setCurrency

      public AccountBalance setCurrency​(CurrencyRef currency)
    • unsetCurrency

      public void unsetCurrency()
    • isSetCurrency

      public boolean isSetCurrency()
      Returns true if field currency is set (has been assigned a value) and false otherwise
    • setCurrencyIsSet

      public void setCurrencyIsSet​(boolean value)
    • getExpectedMin

      public long getExpectedMin()
    • setExpectedMin

      public AccountBalance setExpectedMin​(long expected_min)
    • unsetExpectedMin

      public void unsetExpectedMin()
    • isSetExpectedMin

      public boolean isSetExpectedMin()
      Returns true if field expected_min is set (has been assigned a value) and false otherwise
    • setExpectedMinIsSet

      public void setExpectedMinIsSet​(boolean value)
    • getCurrent

      public long getCurrent()
    • setCurrent

      public AccountBalance setCurrent​(long current)
    • unsetCurrent

      public void unsetCurrent()
    • isSetCurrent

      public boolean isSetCurrent()
      Returns true if field current is set (has been assigned a value) and false otherwise
    • setCurrentIsSet

      public void setCurrentIsSet​(boolean value)
    • getExpectedMax

      public long getExpectedMax()
    • setExpectedMax

      public AccountBalance setExpectedMax​(long expected_max)
    • unsetExpectedMax

      public void unsetExpectedMax()
    • isSetExpectedMax

      public boolean isSetExpectedMax()
      Returns true if field expected_max is set (has been assigned a value) and false otherwise
    • setExpectedMaxIsSet

      public void setExpectedMaxIsSet​(boolean value)
    • setFieldValue

      public void setFieldValue​(AccountBalance._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>
    • getFieldValue

      public Object getFieldValue​(AccountBalance._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>
    • isSet

      public boolean isSet​(AccountBalance._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>
    • equals

      public boolean equals​(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals​(AccountBalance that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo​(AccountBalance other)
      Specified by:
      compareTo in interface Comparable<AccountBalance>
    • fieldForId

      public AccountBalance._Fields fieldForId​(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>
    • getFields

      public AccountBalance._Fields[] getFields()
      Specified by:
      getFields in interface org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>
    • getFieldMetaData

      public Map<AccountBalance._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<AccountBalance,​AccountBalance._Fields>
    • read

      public void read​(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException