Interface ObjectVersion.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ObjectVersion.Builder,ObjectVersion>
,SdkBuilder<ObjectVersion.Builder,ObjectVersion>
,SdkPojo
- Enclosing class:
- ObjectVersion
public static interface ObjectVersion.Builder extends SdkPojo, CopyableBuilder<ObjectVersion.Builder,ObjectVersion>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ObjectVersion.Builder
checksumAlgorithm(Collection<ChecksumAlgorithm> checksumAlgorithm)
The algorithm that was used to create a checksum of the object.ObjectVersion.Builder
checksumAlgorithm(ChecksumAlgorithm... checksumAlgorithm)
The algorithm that was used to create a checksum of the object.ObjectVersion.Builder
checksumAlgorithmWithStrings(String... checksumAlgorithm)
The algorithm that was used to create a checksum of the object.ObjectVersion.Builder
checksumAlgorithmWithStrings(Collection<String> checksumAlgorithm)
The algorithm that was used to create a checksum of the object.ObjectVersion.Builder
eTag(String eTag)
The entity tag is an MD5 hash of that version of the 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 when the object was last modified.default ObjectVersion.Builder
owner(Consumer<Owner.Builder> owner)
Specifies the owner of the object.ObjectVersion.Builder
owner(Owner owner)
Specifies the owner of the object.default ObjectVersion.Builder
restoreStatus(Consumer<RestoreStatus.Builder> restoreStatus)
Specifies the restoration status of an object.ObjectVersion.Builder
restoreStatus(RestoreStatus restoreStatus)
Specifies the restoration status of an object.ObjectVersion.Builder
size(Long size)
Size in bytes of the object.ObjectVersion.Builder
storageClass(String storageClass)
The class of storage used to store the object.ObjectVersion.Builder
storageClass(ObjectVersionStorageClass storageClass)
The class of storage used to store the object.ObjectVersion.Builder
versionId(String versionId)
Version ID of an object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
eTag
ObjectVersion.Builder eTag(String eTag)
The entity tag is an MD5 hash of that version of the object.
- Parameters:
eTag
- The entity tag is an MD5 hash of that version of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksumAlgorithmWithStrings
ObjectVersion.Builder checksumAlgorithmWithStrings(Collection<String> checksumAlgorithm)
The algorithm that was used to create a checksum of the object.
- Parameters:
checksumAlgorithm
- The algorithm that was used to create a checksum of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksumAlgorithmWithStrings
ObjectVersion.Builder checksumAlgorithmWithStrings(String... checksumAlgorithm)
The algorithm that was used to create a checksum of the object.
- Parameters:
checksumAlgorithm
- The algorithm that was used to create a checksum of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksumAlgorithm
ObjectVersion.Builder checksumAlgorithm(Collection<ChecksumAlgorithm> checksumAlgorithm)
The algorithm that was used to create a checksum of the object.
- Parameters:
checksumAlgorithm
- The algorithm that was used to create a checksum of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksumAlgorithm
ObjectVersion.Builder checksumAlgorithm(ChecksumAlgorithm... checksumAlgorithm)
The algorithm that was used to create a checksum of the object.
- Parameters:
checksumAlgorithm
- The algorithm that was used to create a checksum of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
size
ObjectVersion.Builder size(Long size)
Size in bytes of the object.
- Parameters:
size
- Size in bytes of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageClass
ObjectVersion.Builder storageClass(String storageClass)
The class of storage used to store the object.
- Parameters:
storageClass
- The class of storage used to store the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ObjectVersionStorageClass
,ObjectVersionStorageClass
-
storageClass
ObjectVersion.Builder storageClass(ObjectVersionStorageClass storageClass)
The class of storage used to store the object.
- Parameters:
storageClass
- The class of storage used to store the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ObjectVersionStorageClass
,ObjectVersionStorageClass
-
key
ObjectVersion.Builder key(String key)
The object key.
- Parameters:
key
- The object key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionId
ObjectVersion.Builder versionId(String versionId)
Version ID of an object.
- Parameters:
versionId
- Version ID of an object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isLatest
ObjectVersion.Builder isLatest(Boolean isLatest)
Specifies whether the object is (true) or is not (false) the latest version of an object.
- Parameters:
isLatest
- Specifies whether the object is (true) or is not (false) the latest version of an object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModified
ObjectVersion.Builder lastModified(Instant lastModified)
Date and time when the object was last modified.
- Parameters:
lastModified
- Date and time when the object was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
ObjectVersion.Builder owner(Owner owner)
Specifies the owner of the object.
- Parameters:
owner
- Specifies the owner of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
default ObjectVersion.Builder owner(Consumer<Owner.Builder> owner)
Specifies the owner of the object.
This is a convenience method that creates an instance of theOwner.Builder
avoiding the need to create one manually viaOwner.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toowner(Owner)
.- Parameters:
owner
- a consumer that will call methods onOwner.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
owner(Owner)
-
restoreStatus
ObjectVersion.Builder restoreStatus(RestoreStatus restoreStatus)
Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
- Parameters:
restoreStatus
- Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restoreStatus
default ObjectVersion.Builder restoreStatus(Consumer<RestoreStatus.Builder> restoreStatus)
Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
This is a convenience method that creates an instance of theRestoreStatus.Builder
avoiding the need to create one manually viaRestoreStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torestoreStatus(RestoreStatus)
.- Parameters:
restoreStatus
- a consumer that will call methods onRestoreStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
restoreStatus(RestoreStatus)
-
-