Interface ObjectVersion.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ObjectVersion.Builder,
,ObjectVersion> SdkBuilder<ObjectVersion.Builder,
,ObjectVersion> SdkPojo
- Enclosing class:
ObjectVersion
-
Method Summary
Modifier and TypeMethodDescriptionchecksumAlgorithm
(Collection<ChecksumAlgorithm> checksumAlgorithm) The algorithm that was used to create a checksum of the object.checksumAlgorithm
(ChecksumAlgorithm... checksumAlgorithm) The algorithm that was used to create a checksum of the object.checksumAlgorithmWithStrings
(String... checksumAlgorithm) The algorithm that was used to create a checksum of the object.checksumAlgorithmWithStrings
(Collection<String> checksumAlgorithm) The algorithm that was used to create a checksum of the object.The entity tag is an MD5 hash of that version of the object.Specifies whether the object is (true) or is not (false) the latest version of an object.The object key.lastModified
(Instant lastModified) Date and time the object was last modified.default ObjectVersion.Builder
owner
(Consumer<Owner.Builder> owner) Specifies the owner of the object.Specifies the owner of the object.default ObjectVersion.Builder
restoreStatus
(Consumer<RestoreStatus.Builder> restoreStatus) Specifies the restoration status of an object.restoreStatus
(RestoreStatus restoreStatus) Specifies the restoration status of an object.Size in bytes of the object.storageClass
(String storageClass) The class of storage used to store the object.storageClass
(ObjectVersionStorageClass storageClass) The class of storage used to store the object.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 Details
-
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
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
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
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
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
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
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:
-
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:
-
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
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
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
Date and time the object was last modified.
- Parameters:
lastModified
- Date and time the object was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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:
-
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
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:
-