Record Class Deployment
java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.remote.Deployment
- Record Components:
deployment-Deployment.DeploymentInfogroups-Deployment.GroupescrowAccount-Deployment.EscrowAccount
public record Deployment(Deployment.DeploymentInfo deployment, Collection<Deployment.Group> groups, Deployment.EscrowAccount escrowAccount)
extends Record
Deployment information, as specified in:
Deployment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordGeneric tuplestatic final recordAmount deposited from owner account.static final recordDescribes cpu resources in the context of the deploymentstatic final recordIdentifies a deployment, mainly who requested it and the sequencestatic final recordstatic final recordQuantities of resources asked in a deploymentstatic final recordstatic final recordEscrow accounts are a mechanism that allow for time-based payments from one account to another without block-by-block micropayments.static final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordUsed to describe memory quantitiesstatic final recordValue to be used in a quantitystatic final recordRequirements used in the group specstatic final recordDeployment resourcestatic final recordSignaturestatic final recordDescribes deployment requested storage, if anystatic final recordAmount disbursed from account via payments.static final recordUnit -
Constructor Summary
ConstructorsConstructorDescriptionDeployment(Deployment.DeploymentInfo deployment, Collection<Deployment.Group> groups, Deployment.EscrowAccount escrowAccount) Creates an instance of aDeploymentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeploymentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theescrowAccountrecord component.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Deployment
public Deployment(Deployment.DeploymentInfo deployment, Collection<Deployment.Group> groups, Deployment.EscrowAccount escrowAccount) Creates an instance of aDeploymentrecord class.- Parameters:
deployment- the value for thedeploymentrecord componentgroups- the value for thegroupsrecord componentescrowAccount- the value for theescrowAccountrecord 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). -
deployment
Returns the value of thedeploymentrecord component.- Returns:
- the value of the
deploymentrecord component
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
escrowAccount
Returns the value of theescrowAccountrecord component.- Returns:
- the value of the
escrowAccountrecord component
-