Interface ObjectVersion.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ObjectVersion.Builder,ObjectVersion>,SdkBuilder<ObjectVersion.Builder,ObjectVersion>,SdkPojo
- Enclosing class:
- ObjectVersion
@Mutable @NotThreadSafe 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.BuilderchecksumAlgorithm(Collection<ChecksumAlgorithm> checksumAlgorithm)The algorithm that was used to create a checksum of the object.ObjectVersion.BuilderchecksumAlgorithm(ChecksumAlgorithm... checksumAlgorithm)The algorithm that was used to create a checksum of the object.ObjectVersion.BuilderchecksumAlgorithmWithStrings(String... checksumAlgorithm)The algorithm that was used to create a checksum of the object.ObjectVersion.BuilderchecksumAlgorithmWithStrings(Collection<String> checksumAlgorithm)The algorithm that was used to create a checksum of the object.ObjectVersion.BuilderchecksumType(String checksumType)The checksum type that is used to calculate the object’s checksum value.ObjectVersion.BuilderchecksumType(ChecksumType checksumType)The checksum type that is used to calculate the object’s checksum value.ObjectVersion.BuildereTag(String eTag)The entity tag is an MD5 hash of that version of the object.ObjectVersion.BuilderisLatest(Boolean isLatest)Specifies whether the object is (true) or is not (false) the latest version of an object.ObjectVersion.Builderkey(String key)The object key.ObjectVersion.BuilderlastModified(Instant lastModified)Date and time when the object was last modified.default ObjectVersion.Builderowner(Consumer<Owner.Builder> owner)Specifies the owner of the object.ObjectVersion.Builderowner(Owner owner)Specifies the owner of the object.default ObjectVersion.BuilderrestoreStatus(Consumer<RestoreStatus.Builder> restoreStatus)Specifies the restoration status of an object.ObjectVersion.BuilderrestoreStatus(RestoreStatus restoreStatus)Specifies the restoration status of an object.ObjectVersion.Buildersize(Long size)Size in bytes of the object.ObjectVersion.BuilderstorageClass(String storageClass)The class of storage used to store the object.ObjectVersion.BuilderstorageClass(ObjectVersionStorageClass storageClass)The class of storage used to store the object.ObjectVersion.BuilderversionId(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, sdkFieldNameToField, 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.
-
checksumType
ObjectVersion.Builder checksumType(String checksumType)
The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.
- Parameters:
checksumType- The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChecksumType,ChecksumType
-
checksumType
ObjectVersion.Builder checksumType(ChecksumType checksumType)
The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.
- Parameters:
checksumType- The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChecksumType,ChecksumType
-
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.Builderavoiding the need to create one manually viaOwner.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaRestoreStatus.builder().When the
Consumercompletes,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)
-
-