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 Details

    • bucketName

      S3File.Builder bucketName(String 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 is audio/example.ogg, the final file path is audio/example.ogg123.ogg.

      For the same mediaId, a key of audio/ results in the file path audio/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 is audio/example.ogg, the final file path is audio/example.ogg123.ogg.

      For the same mediaId, a key of audio/ results in the file path audio/123.ogg.

      Returns:
      Returns a reference to this object so that method calls can be chained together.