Record Class JobArtifactDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.job.JobArtifactDTO
- Record Components:
artifactId- public artifact identifieractionExecutionId- optional owning execution identifiertype- artifact typename- artifact namemediaType- media typesizeBytes- content sizechecksum- content checksumcreatedAt- creation timeexpiresAt- optional expiryaccessClassification- access classification
public record JobArtifactDTO(String artifactId, String actionExecutionId, String type, String name, String mediaType, Long sizeBytes, String checksum, LocalDateTime createdAt, LocalDateTime expiresAt, String accessClassification)
extends Record
Safe artifact metadata without its internal storage reference.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionJobArtifactDTO(String artifactId, String actionExecutionId, String type, String name, String mediaType, Long sizeBytes, String checksum, LocalDateTime createdAt, LocalDateTime expiresAt, String accessClassification) Creates an instance of aJobArtifactDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessClassificationrecord component.Returns the value of theactionExecutionIdrecord component.Returns the value of theartifactIdrecord component.checksum()Returns the value of thechecksumrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themediaTyperecord component.name()Returns the value of thenamerecord component.Returns the value of thesizeBytesrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
JobArtifactDTO
public JobArtifactDTO(String artifactId, String actionExecutionId, String type, String name, String mediaType, Long sizeBytes, String checksum, LocalDateTime createdAt, LocalDateTime expiresAt, String accessClassification) Creates an instance of aJobArtifactDTOrecord class.- Parameters:
artifactId- the value for theartifactIdrecord componentactionExecutionId- the value for theactionExecutionIdrecord componenttype- the value for thetyperecord componentname- the value for thenamerecord componentmediaType- the value for themediaTyperecord componentsizeBytes- the value for thesizeBytesrecord componentchecksum- the value for thechecksumrecord componentcreatedAt- the value for thecreatedAtrecord componentexpiresAt- the value for theexpiresAtrecord componentaccessClassification- the value for theaccessClassificationrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
actionExecutionId
Returns the value of theactionExecutionIdrecord component.- Returns:
- the value of the
actionExecutionIdrecord component
-
type
-
name
-
mediaType
-
sizeBytes
-
checksum
-
createdAt
-
expiresAt
-
accessClassification
Returns the value of theaccessClassificationrecord component.- Returns:
- the value of the
accessClassificationrecord component
-