Record Class JobArtifactDTO

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.job.JobArtifactDTO
Record Components:
artifactId - public artifact identifier
actionExecutionId - optional owning execution identifier
type - artifact type
name - artifact name
mediaType - media type
sizeBytes - content size
checksum - content checksum
createdAt - creation time
expiresAt - optional expiry
accessClassification - 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 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 a JobArtifactDTO record class.
      Parameters:
      artifactId - the value for the artifactId record component
      actionExecutionId - the value for the actionExecutionId record component
      type - the value for the type record component
      name - the value for the name record component
      mediaType - the value for the mediaType record component
      sizeBytes - the value for the sizeBytes record component
      checksum - the value for the checksum record component
      createdAt - the value for the createdAt record component
      expiresAt - the value for the expiresAt record component
      accessClassification - the value for the accessClassification record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • artifactId

      public String artifactId()
      Returns the value of the artifactId record component.
      Returns:
      the value of the artifactId record component
    • actionExecutionId

      public String actionExecutionId()
      Returns the value of the actionExecutionId record component.
      Returns:
      the value of the actionExecutionId record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • mediaType

      public String mediaType()
      Returns the value of the mediaType record component.
      Returns:
      the value of the mediaType record component
    • sizeBytes

      public Long sizeBytes()
      Returns the value of the sizeBytes record component.
      Returns:
      the value of the sizeBytes record component
    • checksum

      public String checksum()
      Returns the value of the checksum record component.
      Returns:
      the value of the checksum record component
    • createdAt

      public LocalDateTime createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • expiresAt

      public LocalDateTime expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • accessClassification

      public String accessClassification()
      Returns the value of the accessClassification record component.
      Returns:
      the value of the accessClassification record component