Interface S3File.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<S3File.Builder,,S3File> SdkBuilder<S3File.Builder,,S3File> SdkPojo
- Enclosing class:
S3File
@Mutable
@NotThreadSafe
public static interface S3File.Builder
extends SdkPojo, CopyableBuilder<S3File.Builder,S3File>
-
Method Summary
Modifier and TypeMethodDescriptionbucketName(String bucketName) The bucket name.The S3 key prefix that defines the storage location of your media files.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
bucketName
The bucket name.
- Parameters:
bucketName- The bucket name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
The S3 key prefix that defines the storage location of your media files. The prefix works like a folder path in S3, and is combined with the WhatsApp mediaId to create the final file path.
For example, if a media file's WhatsApp mediaId is
123.ogg, and the key isaudio/example.ogg, the final file path isaudio/example.ogg123.ogg.For the same mediaId, a key of
audio/results in the file pathaudio/123.ogg.- Parameters:
key- The S3 key prefix that defines the storage location of your media files. The prefix works like a folder path in S3, and is combined with the WhatsApp mediaId to create the final file path.For example, if a media file's WhatsApp mediaId is
123.ogg, and the key isaudio/example.ogg, the final file path isaudio/example.ogg123.ogg.For the same mediaId, a key of
audio/results in the file pathaudio/123.ogg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-