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 an MD5 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 an MD5 hash of the object. ETag reflects only changes to the contents of an object, not its metadata.
eTag
- The entity tag is an MD5 hash of the object. ETag reflects only changes to the contents of an object,
not its metadata.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 © 2019. All rights reserved.