Interface S3Object.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<S3Object.Builder,
,S3Object> SdkBuilder<S3Object.Builder,
,S3Object> SdkPojo
- Enclosing class:
S3Object
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the bucket that contains the object.The entity tag (ETag) that identifies the affected version of the object.The file name extension of the object.The full name (key) of the object, including the object's prefix if applicable.lastModified
(Instant lastModified) The date and time, in UTC and extended ISO 8601 format, when the object was last modified.The full path to the affected object, including the name of the affected bucket and the object's name (key).publicAccess
(Boolean publicAccess) Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to the object.default S3Object.Builder
serverSideEncryption
(Consumer<ServerSideEncryption.Builder> serverSideEncryption) The type of server-side encryption that was used to encrypt the object.serverSideEncryption
(ServerSideEncryption serverSideEncryption) The type of server-side encryption that was used to encrypt the object.The total storage size, in bytes, of the object.storageClass
(String storageClass) The storage class of the object.storageClass
(StorageClass storageClass) The storage class of the object.tags
(Collection<KeyValuePair> tags) The tags that are associated with the object.tags
(Consumer<KeyValuePair.Builder>... tags) The tags that are associated with the object.tags
(KeyValuePair... tags) The tags that are associated with the object.The identifier for the affected version of the 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
-
bucketArn
The Amazon Resource Name (ARN) of the bucket that contains the object.
- Parameters:
bucketArn
- The Amazon Resource Name (ARN) of the bucket that contains the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eTag
The entity tag (ETag) that identifies the affected version of the object. If the object was overwritten or changed after Amazon Macie produced the finding, this value might be different from the current ETag for the object.
- Parameters:
eTag
- The entity tag (ETag) that identifies the affected version of the object. If the object was overwritten or changed after Amazon Macie produced the finding, this value might be different from the current ETag for the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extension
The file name extension of the object. If the object doesn't have a file name extension, this value is "".
- Parameters:
extension
- The file name extension of the object. If the object doesn't have a file name extension, this value is "".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
The full name (key) of the object, including the object's prefix if applicable.
- Parameters:
key
- The full name (key) of the object, including the object's prefix if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModified
The date and time, in UTC and extended ISO 8601 format, when the object was last modified.
- Parameters:
lastModified
- The date and time, in UTC and extended ISO 8601 format, when the object was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The full path to the affected object, including the name of the affected bucket and the object's name (key).
- Parameters:
path
- The full path to the affected object, including the name of the affected bucket and the object's name (key).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicAccess
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to the object.
- Parameters:
publicAccess
- Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverSideEncryption
The type of server-side encryption that was used to encrypt the object.
- Parameters:
serverSideEncryption
- The type of server-side encryption that was used to encrypt the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverSideEncryption
default S3Object.Builder serverSideEncryption(Consumer<ServerSideEncryption.Builder> serverSideEncryption) The type of server-side encryption that was used to encrypt the object.
This is a convenience method that creates an instance of theServerSideEncryption.Builder
avoiding the need to create one manually viaServerSideEncryption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserverSideEncryption(ServerSideEncryption)
.- Parameters:
serverSideEncryption
- a consumer that will call methods onServerSideEncryption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
size
The total storage size, in bytes, of the object.
- Parameters:
size
- The total storage size, in bytes, of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageClass
The storage class of the object.
- Parameters:
storageClass
- The storage class of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageClass
The storage class of the object.
- Parameters:
storageClass
- The storage class of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags that are associated with the object.
- Parameters:
tags
- The tags that are associated with the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags that are associated with the object.
- Parameters:
tags
- The tags that are associated with the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags that are associated with the object.
This is a convenience method that creates an instance of theKeyValuePair.Builder
avoiding the need to create one manually viaKeyValuePair.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<KeyValuePair>)
.- Parameters:
tags
- a consumer that will call methods onKeyValuePair.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
versionId
The identifier for the affected version of the object.
- Parameters:
versionId
- The identifier for the affected version of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-