Record Class Deployment.Group
java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.remote.Deployment.Group
- Record Components:
groupId-Deployment.GroupIdstate- State of the group.groupSpec-Deployment.GroupSpeccreatedAtBlockHeight- creation time of this group
- Enclosing class:
- Deployment
public static record Deployment.Group(Deployment.GroupId groupId, String state, Deployment.GroupSpec groupSpec, String createdAtBlockHeight)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGroup(Deployment.GroupId groupId, String state, Deployment.GroupSpec groupSpec, String createdAtBlockHeight) Creates an instance of aGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtBlockHeightrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.Returns the value of thegroupSpecrecord component.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Group
public Group(Deployment.GroupId groupId, String state, Deployment.GroupSpec groupSpec, String createdAtBlockHeight) Creates an instance of aGrouprecord class.- Parameters:
groupId- the value for thegroupIdrecord componentstate- the value for thestaterecord componentgroupSpec- the value for thegroupSpecrecord componentcreatedAtBlockHeight- the value for thecreatedAtBlockHeightrecord 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). -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
groupSpec
Returns the value of thegroupSpecrecord component.- Returns:
- the value of the
groupSpecrecord component
-
createdAtBlockHeight
Returns the value of thecreatedAtBlockHeightrecord component.- Returns:
- the value of the
createdAtBlockHeightrecord component
-