Record Class Deployment.DeploymentInfo
java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.remote.Deployment.DeploymentInfo
- Record Components:
deploymentId- ID of Deployment.state- Versionversion- Hash of the manifest that is sent to the providers.createdAtBlockHeight- creation time for this deployment
- Enclosing class:
- Deployment
public static record Deployment.DeploymentInfo(Deployment.DeploymentId deploymentId, String state, String version, String createdAtBlockHeight)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentInfo(Deployment.DeploymentId deploymentId, String state, String version, String createdAtBlockHeight) Creates an instance of aDeploymentInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtBlockHeightrecord component.Returns the value of thedeploymentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.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.version()Returns the value of theversionrecord component.
-
Constructor Details
-
DeploymentInfo
public DeploymentInfo(Deployment.DeploymentId deploymentId, String state, String version, String createdAtBlockHeight) Creates an instance of aDeploymentInforecord class.- Parameters:
deploymentId- the value for thedeploymentIdrecord componentstate- the value for thestaterecord componentversion- the value for theversionrecord 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). -
deploymentId
Returns the value of thedeploymentIdrecord component.- Returns:
- the value of the
deploymentIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
createdAtBlockHeight
Returns the value of thecreatedAtBlockHeightrecord component.- Returns:
- the value of the
createdAtBlockHeightrecord component
-