PresignBatch class

s3-static-presign only: up to 64 operations on one object, prefix + objectKey, and at most one multipart upload of it. Each operation becomes one presigned request, sealed together. Consistency rules JSON Schema cannot state, which the custodian enforces: uploadId is present exactly when an operation needs it (upload-part, list-parts, complete-multipart, abort-multipart) and absent when the batch holds create-multipart; no two operations are identical; no two upload-part operations name the same partNumber.

Constructors

PresignBatch({required ProviderObjectPrefix prefix, required String objectKey, String? uploadId, required List<PresignRequest?> requests})
const
PresignBatch.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
objectKey → String
The object's name within prefix. Every request in the batch names prefix + objectKey and no other object.
final
prefix → String
final
requests → List<PresignRequest?>
At most 64. Each presigned request is bearer authority until it expires, so a batch holds what a consumer can use within its lifetime; a larger upload asks again, or writes larger parts. A batch whose sealed answer would exceed sealedCredential's bound is refused with responseTooLarge, whatever its count.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uploadId → String?
The multipart upload the batch's multipart operations act on, as storage returned it from CreateMultipartUpload. Signed into each such request's query, percent-encoded by the SigV4 encoder, never interpolated.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited