public static interface ObjectVersion.Builder extends SdkPojo, CopyableBuilder<ObjectVersion.Builder,ObjectVersion>
Modifier and Type | Method and Description |
---|---|
ObjectVersion.Builder |
eTag(String eTag)
|
ObjectVersion.Builder |
isLatest(Boolean isLatest)
Specifies whether the object is (true) or is not (false) the latest version of an object.
|
ObjectVersion.Builder |
key(String key)
The object key.
|
ObjectVersion.Builder |
lastModified(Instant lastModified)
Date and time the object was last modified.
|
default ObjectVersion.Builder |
owner(Consumer<Owner.Builder> owner)
This is a convenience that creates an instance of the
Owner.Builder avoiding the need to create one
manually via Owner.builder() . |
ObjectVersion.Builder |
owner(Owner owner)
|
ObjectVersion.Builder |
size(Integer size)
Size in bytes of the object.
|
ObjectVersion.Builder |
storageClass(ObjectVersionStorageClass storageClass)
The class of storage used to store the object.
|
ObjectVersion.Builder |
storageClass(String storageClass)
The class of storage used to store the object.
|
ObjectVersion.Builder |
versionId(String versionId)
Version ID of an object.
|
copy
applyMutation, build
ObjectVersion.Builder eTag(String eTag)
eTag
- ObjectVersion.Builder size(Integer size)
Size in bytes of the object.
size
- Size in bytes of the object.ObjectVersion.Builder storageClass(String storageClass)
The class of storage used to store the object.
storageClass
- The class of storage used to store the object.ObjectVersionStorageClass
,
ObjectVersionStorageClass
ObjectVersion.Builder storageClass(ObjectVersionStorageClass storageClass)
The class of storage used to store the object.
storageClass
- The class of storage used to store the object.ObjectVersionStorageClass
,
ObjectVersionStorageClass
ObjectVersion.Builder key(String key)
The object key.
key
- The object key.ObjectVersion.Builder versionId(String versionId)
Version ID of an object.
versionId
- Version ID of an object.ObjectVersion.Builder isLatest(Boolean isLatest)
Specifies whether the object is (true) or is not (false) the latest version of an object.
isLatest
- Specifies whether the object is (true) or is not (false) the latest version of an object.ObjectVersion.Builder lastModified(Instant lastModified)
Date and time the object was last modified.
lastModified
- Date and time the object was last modified.ObjectVersion.Builder owner(Owner owner)
owner
- default ObjectVersion.Builder owner(Consumer<Owner.Builder> owner)
Owner.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.