Class S3ObjectSummary

java.lang.Object
com.kingsrook.qqq.backend.module.filesystem.s3.model.S3ObjectSummary

public class S3ObjectSummary extends Object
One object found by an S3 listing: the "file" type that the S3 filesystem actions work with. This is a QQQ-owned type (it replaced the AWS SDK v1 S3ObjectSummary when the module moved to AWS SDK v2), so that callers do not depend on SDK model classes. Getter names follow the old v1 class where they can, except that getLastModified now returns an Instant instead of a Date.
  • Constructor Details

    • S3ObjectSummary

      public S3ObjectSummary()
      Default Constructor.
  • Method Details

    • of

      public static S3ObjectSummary of(String bucketName, software.amazon.awssdk.services.s3.model.S3Object s3Object)
      Build from an AWS SDK v2 listing entry, plus the bucket it was listed from (the SDK v2 object does not carry its bucket name).
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBucketName

      public String getBucketName()
      Getter for bucketName
    • setBucketName

      public void setBucketName(String bucketName)
      Setter for bucketName
    • withBucketName

      public S3ObjectSummary withBucketName(String bucketName)
      Fluent setter for bucketName
    • getKey

      public String getKey()
      Getter for key
    • setKey

      public void setKey(String key)
      Setter for key
    • withKey

      public S3ObjectSummary withKey(String key)
      Fluent setter for key
    • getSize

      public Long getSize()
      Getter for size
    • setSize

      public void setSize(Long size)
      Setter for size
    • withSize

      public S3ObjectSummary withSize(Long size)
      Fluent setter for size
    • getLastModified

      public Instant getLastModified()
      Getter for lastModified
    • setLastModified

      public void setLastModified(Instant lastModified)
      Setter for lastModified
    • withLastModified

      public S3ObjectSummary withLastModified(Instant lastModified)
      Fluent setter for lastModified
    • getETag

      public String getETag()
      Getter for eTag
    • setETag

      public void setETag(String eTag)
      Setter for eTag
    • withETag

      public S3ObjectSummary withETag(String eTag)
      Fluent setter for eTag
    • getStorageClass

      public String getStorageClass()
      Getter for storageClass
    • setStorageClass

      public void setStorageClass(String storageClass)
      Setter for storageClass
    • withStorageClass

      public S3ObjectSummary withStorageClass(String storageClass)
      Fluent setter for storageClass