public static interface ObjectVersion.Builder extends CopyableBuilder<ObjectVersion.Builder,ObjectVersion>
| Modifier and Type | Method and Description |
|---|---|
ObjectVersion.Builder |
eTag(String eTag)
Sets the value of the ETag property for this object.
|
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)
Sets the value of the Owner property for this object.
|
ObjectVersion.Builder |
owner(Owner owner)
Sets the value of the Owner property for this object.
|
ObjectVersion.Builder |
size(Long 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.
|
copyapply, buildObjectVersion.Builder eTag(String eTag)
eTag - The new value for the ETag property for this object.ObjectVersion.Builder size(Long size)
size - Size in bytes of the object.ObjectVersion.Builder storageClass(String storageClass)
storageClass - The class of storage used to store the object.ObjectVersionStorageClass,
ObjectVersionStorageClassObjectVersion.Builder storageClass(ObjectVersionStorageClass storageClass)
storageClass - The class of storage used to store the object.ObjectVersionStorageClass,
ObjectVersionStorageClassObjectVersion.Builder key(String key)
key - The object key.ObjectVersion.Builder versionId(String versionId)
versionId - Version ID of an object.ObjectVersion.Builder isLatest(Boolean isLatest)
isLatest - Specifies whether the object is (true) or is not (false) the latest version of an object.ObjectVersion.Builder lastModified(Instant lastModified)
lastModified - Date and time the object was last modified.ObjectVersion.Builder owner(Owner owner)
owner - The new value for the Owner property for this object.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.Builderowner(Owner)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.