Class S3ObjectSummary
java.lang.Object
com.kingsrook.qqq.backend.module.filesystem.s3.model.S3ObjectSummary
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for bucketNamegetETag()Getter for eTaggetKey()Getter for keyGetter for lastModifiedgetSize()Getter for sizeGetter for storageClassstatic S3ObjectSummaryBuild from an AWS SDK v2 listing entry, plus the bucket it was listed from (the SDK v2 object does not carry its bucket name).voidsetBucketName(String bucketName) Setter for bucketNamevoidSetter for eTagvoidSetter for keyvoidsetLastModified(Instant lastModified) Setter for lastModifiedvoidSetter for sizevoidsetStorageClass(String storageClass) Setter for storageClasstoString()withBucketName(String bucketName) Fluent setter for bucketNameFluent setter for eTagFluent setter for keywithLastModified(Instant lastModified) Fluent setter for lastModifiedFluent setter for sizewithStorageClass(String storageClass) Fluent setter for storageClass
-
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
-
getBucketName
Getter for bucketName -
setBucketName
Setter for bucketName -
withBucketName
Fluent setter for bucketName -
getKey
Getter for key -
setKey
Setter for key -
withKey
Fluent setter for key -
getSize
Getter for size -
setSize
Setter for size -
withSize
Fluent setter for size -
getLastModified
Getter for lastModified -
setLastModified
Setter for lastModified -
withLastModified
Fluent setter for lastModified -
getETag
Getter for eTag -
setETag
Setter for eTag -
withETag
Fluent setter for eTag -
getStorageClass
Getter for storageClass -
setStorageClass
Setter for storageClass -
withStorageClass
Fluent setter for storageClass
-