Record Class DeploymentLease.EscrowPayment

java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.remote.DeploymentLease.EscrowPayment
Record Components:
owner - who requested it
state - Account state.
accountId - PaymentID
paymentId - Unique (over AccountID) ID of payment.
rate - Price Tokens per block to transfer.
balance - Price Balance currently reserved for owner.
withdrawn - Price Amount already withdrawn by owner.
Enclosing class:
DeploymentLease

public static record DeploymentLease.EscrowPayment(String owner, String state, AccountId accountId, String paymentId, Price rate, Price balance, Price withdrawn) extends Record
  • Constructor Details

    • EscrowPayment

      public EscrowPayment(String owner, String state, AccountId accountId, String paymentId, Price rate, Price balance, Price withdrawn)
      Creates an instance of a EscrowPayment record class.
      Parameters:
      owner - the value for the owner record component
      state - the value for the state record component
      accountId - the value for the accountId record component
      paymentId - the value for the paymentId record component
      rate - the value for the rate record component
      balance - the value for the balance record component
      withdrawn - the value for the withdrawn record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • owner

      public String owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • state

      public String state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • accountId

      public AccountId accountId()
      Returns the value of the accountId record component.
      Returns:
      the value of the accountId record component
    • paymentId

      public String paymentId()
      Returns the value of the paymentId record component.
      Returns:
      the value of the paymentId record component
    • rate

      public Price rate()
      Returns the value of the rate record component.
      Returns:
      the value of the rate record component
    • balance

      public Price balance()
      Returns the value of the balance record component.
      Returns:
      the value of the balance record component
    • withdrawn

      public Price withdrawn()
      Returns the value of the withdrawn record component.
      Returns:
      the value of the withdrawn record component