Interface GetObjectAttributesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetObjectAttributesResponse.Builder,GetObjectAttributesResponse>
,S3Response.Builder
,SdkBuilder<GetObjectAttributesResponse.Builder,GetObjectAttributesResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetObjectAttributesResponse
public static interface GetObjectAttributesResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<GetObjectAttributesResponse.Builder,GetObjectAttributesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetObjectAttributesResponse.Builder
checksum(Consumer<Checksum.Builder> checksum)
The checksum or digest of the object.GetObjectAttributesResponse.Builder
checksum(Checksum checksum)
The checksum or digest of the object.GetObjectAttributesResponse.Builder
deleteMarker(Boolean deleteMarker)
Specifies whether the object retrieved was (true
) or was not (false
) a delete marker.GetObjectAttributesResponse.Builder
eTag(String eTag)
An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.GetObjectAttributesResponse.Builder
lastModified(Instant lastModified)
Date and time when the object was last modified.default GetObjectAttributesResponse.Builder
objectParts(Consumer<GetObjectAttributesParts.Builder> objectParts)
A collection of parts associated with a multipart upload.GetObjectAttributesResponse.Builder
objectParts(GetObjectAttributesParts objectParts)
A collection of parts associated with a multipart upload.GetObjectAttributesResponse.Builder
objectSize(Long objectSize)
The size of the object in bytes.GetObjectAttributesResponse.Builder
requestCharged(String requestCharged)
Sets the value of the RequestCharged property for this object.GetObjectAttributesResponse.Builder
requestCharged(RequestCharged requestCharged)
Sets the value of the RequestCharged property for this object.GetObjectAttributesResponse.Builder
storageClass(String storageClass)
Provides the storage class information of the object.GetObjectAttributesResponse.Builder
storageClass(StorageClass storageClass)
Provides the storage class information of the object.GetObjectAttributesResponse.Builder
versionId(String versionId)
The version ID of the object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.s3.model.S3Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
deleteMarker
GetObjectAttributesResponse.Builder deleteMarker(Boolean deleteMarker)
Specifies whether the object retrieved was (
true
) or was not (false
) a delete marker. Iffalse
, this response header does not appear in the response.This functionality is not supported for directory buckets.
- Parameters:
deleteMarker
- Specifies whether the object retrieved was (true
) or was not (false
) a delete marker. Iffalse
, this response header does not appear in the response.This functionality is not supported for directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModified
GetObjectAttributesResponse.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.
-
versionId
GetObjectAttributesResponse.Builder versionId(String versionId)
The version ID of the object.
This functionality is not supported for directory buckets.
- Parameters:
versionId
- The version ID of the object.This functionality is not supported for directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestCharged
GetObjectAttributesResponse.Builder requestCharged(String requestCharged)
Sets the value of the RequestCharged property for this object.- Parameters:
requestCharged
- The new value for the RequestCharged property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RequestCharged
,RequestCharged
-
requestCharged
GetObjectAttributesResponse.Builder requestCharged(RequestCharged requestCharged)
Sets the value of the RequestCharged property for this object.- Parameters:
requestCharged
- The new value for the RequestCharged property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RequestCharged
,RequestCharged
-
eTag
GetObjectAttributesResponse.Builder eTag(String eTag)
An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
- Parameters:
eTag
- An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksum
GetObjectAttributesResponse.Builder checksum(Checksum checksum)
The checksum or digest of the object.
- Parameters:
checksum
- The checksum or digest of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksum
default GetObjectAttributesResponse.Builder checksum(Consumer<Checksum.Builder> checksum)
The checksum or digest of the object.
This is a convenience method that creates an instance of theChecksum.Builder
avoiding the need to create one manually viaChecksum.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tochecksum(Checksum)
.- Parameters:
checksum
- a consumer that will call methods onChecksum.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
checksum(Checksum)
-
objectParts
GetObjectAttributesResponse.Builder objectParts(GetObjectAttributesParts objectParts)
A collection of parts associated with a multipart upload.
- Parameters:
objectParts
- A collection of parts associated with a multipart upload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectParts
default GetObjectAttributesResponse.Builder objectParts(Consumer<GetObjectAttributesParts.Builder> objectParts)
A collection of parts associated with a multipart upload.
This is a convenience method that creates an instance of theGetObjectAttributesParts.Builder
avoiding the need to create one manually viaGetObjectAttributesParts.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toobjectParts(GetObjectAttributesParts)
.- Parameters:
objectParts
- a consumer that will call methods onGetObjectAttributesParts.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
objectParts(GetObjectAttributesParts)
-
storageClass
GetObjectAttributesResponse.Builder storageClass(String storageClass)
Provides the storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.
For more information, see Storage Classes.
Directory buckets - Only the S3 Express One Zone storage class is supported by directory buckets to store objects.
- Parameters:
storageClass
- Provides the storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.For more information, see Storage Classes.
Directory buckets - Only the S3 Express One Zone storage class is supported by directory buckets to store objects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StorageClass
,StorageClass
-
storageClass
GetObjectAttributesResponse.Builder storageClass(StorageClass storageClass)
Provides the storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.
For more information, see Storage Classes.
Directory buckets - Only the S3 Express One Zone storage class is supported by directory buckets to store objects.
- Parameters:
storageClass
- Provides the storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.For more information, see Storage Classes.
Directory buckets - Only the S3 Express One Zone storage class is supported by directory buckets to store objects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StorageClass
,StorageClass
-
objectSize
GetObjectAttributesResponse.Builder objectSize(Long objectSize)
The size of the object in bytes.
- Parameters:
objectSize
- The size of the object in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-