Interface S3Object.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<S3Object.Builder,,- S3Object> - SdkBuilder<S3Object.Builder,,- S3Object> - SdkPojo
- Enclosing class:
- S3Object
- 
Method SummaryModifier 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.BuilderserverSideEncryption(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
bucketArnThe 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.
 
- 
eTagThe 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.
 
- 
extensionThe 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.
 
- 
keyThe 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.
 
- 
lastModifiedThe 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.
 
- 
pathThe 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.
 
- 
publicAccessSpecifies 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.
 
- 
serverSideEncryptionThe 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.
 
- 
serverSideEncryptiondefault 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.Builderavoiding the need to create one manually viaServerSideEncryption.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserverSideEncryption(ServerSideEncryption).- Parameters:
- serverSideEncryption- a consumer that will call methods on- ServerSideEncryption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
sizeThe 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.
 
- 
storageClassThe 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:
 
- 
storageClassThe 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:
 
- 
tagsThe 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.
 
- 
tagsThe 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.
 
- 
tagsThe tags that are associated with the object. This is a convenience method that creates an instance of theKeyValuePair.Builderavoiding the need to create one manually viaKeyValuePair.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<KeyValuePair>).- Parameters:
- tags- a consumer that will call methods on- KeyValuePair.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
versionIdThe 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.
 
 
-