Record Class Deployment.DeploymentId
java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.remote.Deployment.DeploymentId
- Record Components:
owner- who requested itdeploymentSequence- sequence
- Enclosing class:
- Deployment
public static record Deployment.DeploymentId(String owner, String deploymentSequence)
extends Record
Identifies a deployment, mainly who requested it and the sequence
-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentId(String owner, String deploymentSequence) Creates an instance of aDeploymentIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeploymentSequencerecord 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeploymentId
Creates an instance of aDeploymentIdrecord class.- Parameters:
owner- the value for theownerrecord componentdeploymentSequence- the value for thedeploymentSequencerecord 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
-
deploymentSequence
Returns the value of thedeploymentSequencerecord component.- Returns:
- the value of the
deploymentSequencerecord component
-