Record Class Deployment.DeploymentResource
java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.remote.Deployment.DeploymentResource
- Record Components:
cpu-Deployment.Cpumemory-Deployment.Memorystorage-Deployment.Storageendpoints-Deployment.Endpoint
- Enclosing class:
- Deployment
public static record Deployment.DeploymentResource(Deployment.Cpu cpu, Deployment.Memory memory, Collection<Deployment.Storage> storage, Collection<Deployment.Endpoint> endpoints)
extends Record
Quantities of resources asked in a deployment
-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentResource(Deployment.Cpu cpu, Deployment.Memory memory, Collection<Deployment.Storage> storage, Collection<Deployment.Endpoint> endpoints) Creates an instance of aDeploymentResourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncpu()Returns the value of thecpurecord component.Returns the value of theendpointsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.memory()Returns the value of thememoryrecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeploymentResource
public DeploymentResource(Deployment.Cpu cpu, Deployment.Memory memory, Collection<Deployment.Storage> storage, Collection<Deployment.Endpoint> endpoints) Creates an instance of aDeploymentResourcerecord class.
-
-
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). -
cpu
Returns the value of thecpurecord component.- Returns:
- the value of the
cpurecord component
-
memory
Returns the value of thememoryrecord component.- Returns:
- the value of the
memoryrecord component
-
storage
Returns the value of thestoragerecord component.- Returns:
- the value of the
storagerecord component
-
endpoints
Returns the value of theendpointsrecord component.- Returns:
- the value of the
endpointsrecord component
-