public static interface S3Object.Builder extends SdkPojo, CopyableBuilder<S3Object.Builder,S3Object>
Modifier and Type | Method and Description |
---|---|
S3Object.Builder |
eTag(String eTag)
The entity tag is a hash of the object.
|
S3Object.Builder |
key(String key)
The name that you assign to an object.
|
S3Object.Builder |
lastModified(Instant lastModified)
The date the Object was Last Modified
|
default S3Object.Builder |
owner(Consumer<Owner.Builder> owner)
The owner of the object
|
S3Object.Builder |
owner(Owner owner)
The owner of the object
|
S3Object.Builder |
size(Long size)
Size in bytes of the object
|
S3Object.Builder |
storageClass(ObjectStorageClass storageClass)
The class of storage used to store the object.
|
S3Object.Builder |
storageClass(String storageClass)
The class of storage used to store the object.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
S3Object.Builder key(String key)
The name that you assign to an object. You use the object key to retrieve the object.
key
- The name that you assign to an object. You use the object key to retrieve the object.S3Object.Builder lastModified(Instant lastModified)
The date the Object was Last Modified
lastModified
- The date the Object was Last ModifiedS3Object.Builder eTag(String eTag)
The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:
Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.
Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.
If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption.
eTag
- The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object,
not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is
depends on how the object was created and how it is encrypted as described below:
Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.
Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.
If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption.
S3Object.Builder size(Long size)
Size in bytes of the object
size
- Size in bytes of the objectS3Object.Builder storageClass(String storageClass)
The class of storage used to store the object.
storageClass
- The class of storage used to store the object.ObjectStorageClass
,
ObjectStorageClass
S3Object.Builder storageClass(ObjectStorageClass storageClass)
The class of storage used to store the object.
storageClass
- The class of storage used to store the object.ObjectStorageClass
,
ObjectStorageClass
S3Object.Builder owner(Owner owner)
The owner of the object
owner
- The owner of the objectdefault S3Object.Builder owner(Consumer<Owner.Builder> owner)
The owner of the object
This is a convenience that creates an instance of theOwner.Builder
avoiding the need to create one
manually via Owner.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to owner(Owner)
.owner
- a consumer that will call methods on Owner.Builder
owner(Owner)
Copyright © 2020. All rights reserved.