Class PresignRequest.Builder
java.lang.Object
io.micronaut.objectstorage.request.PresignRequest.Builder
- Enclosing class:
- PresignRequest
Builder for
PresignRequest.-
Method Summary
Modifier and TypeMethodDescription@NonNull PresignRequestbuild()@NonNull PresignRequest.BuildercontentLength(long contentLength) Sets the expected content length for upload operations.@NonNull PresignRequest.BuildercontentType(@NonNull String contentType) Sets the content type hint for upload operations.@NonNull PresignRequest.BuilderSets a custom expiration duration for the generated signed request.@NonNull PresignRequest.BuilderSets a custom name for the generated pre-authorized request (when supported by the provider).
-
Method Details
-
expiresIn
Sets a custom expiration duration for the generated signed request.- Parameters:
expiresIn- The expiration duration.- Returns:
- This builder.
-
contentLength
Sets the expected content length for upload operations.- Parameters:
contentLength- Measured in bytes.- Returns:
- This builder.
-
contentType
Sets the content type hint for upload operations.- Parameters:
contentType- Typically a MIME type.- Returns:
- This builder.
-
name
Sets a custom name for the generated pre-authorized request (when supported by the provider).- Parameters:
name- The desired name.- Returns:
- This builder.
- Since:
- 2.10
-
build
- Returns:
- A new
PresignRequest.
-