Record Class DeploymentLease.EscrowPayment
java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.remote.DeploymentLease.EscrowPayment
- Record Components:
owner- who requested itstate- Account state.accountId- PaymentIDpaymentId- Unique (over AccountID) ID of payment.rate-PriceTokens per block to transfer.balance-PriceBalance currently reserved for owner.withdrawn-PriceAmount already withdrawn by owner.
- Enclosing class:
- DeploymentLease
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountIdrecord component.balance()Returns the value of thebalancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.Returns the value of thepaymentIdrecord component.rate()Returns the value of theraterecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewithdrawnrecord component.
-
Constructor Details
-
EscrowPayment
public EscrowPayment(String owner, String state, AccountId accountId, String paymentId, Price rate, Price balance, Price withdrawn) Creates an instance of aEscrowPaymentrecord class.- Parameters:
owner- the value for theownerrecord componentstate- the value for thestaterecord componentaccountId- the value for theaccountIdrecord componentpaymentId- the value for thepaymentIdrecord componentrate- the value for theraterecord componentbalance- the value for thebalancerecord componentwithdrawn- the value for thewithdrawnrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
accountId
Returns the value of theaccountIdrecord component.- Returns:
- the value of the
accountIdrecord component
-
paymentId
Returns the value of thepaymentIdrecord component.- Returns:
- the value of the
paymentIdrecord component
-
rate
Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-
balance
Returns the value of thebalancerecord component.- Returns:
- the value of the
balancerecord component
-
withdrawn
Returns the value of thewithdrawnrecord component.- Returns:
- the value of the
withdrawnrecord component
-