public class PresignedUrlUploadResult extends Object implements Serializable
AmazonS3.upload(PresignedUrlUploadRequest)
operation.
Use this class to access metadata about the new object created from the AmazonS3.upload(PresignedUrlUploadRequest)
operation. This class also contains the MD5 hash of the object content calculated on the client-side.
Constructor and Description |
---|
PresignedUrlUploadResult() |
Modifier and Type | Method and Description |
---|---|
String |
getContentMd5()
Returns the Base64-encoded MD5 hash of the object content that was
calculated on the client-side.
|
ObjectMetadata |
getMetadata()
Returns the metadata retrieved as a response to
AmazonS3Client.upload(PresignedUrlUploadRequest) operation. |
void |
setContentMd5(String contentMd5)
Sets the Base64-encoded MD5 hash of the object content that was
calculated on the client-side.
|
void |
setMetadata(ObjectMetadata metadata)
Sets the metadata retrieved as a response to
AmazonS3Client.upload(PresignedUrlUploadRequest) operation. |
PresignedUrlUploadResult |
withContentMd5(String contentMd5)
Sets the Base64-encoded MD5 hash of the object content that was
calculated on the client-side.
|
PresignedUrlUploadResult |
withMetadata(ObjectMetadata metadata)
Sets the metadata retrieved as a response to
AmazonS3Client.upload(PresignedUrlUploadRequest) operation. |
public void setContentMd5(String contentMd5)
contentMd5
- The content MD5public PresignedUrlUploadResult withContentMd5(String contentMd5)
contentMd5
- The content MD5public String getContentMd5()
public ObjectMetadata getMetadata()
AmazonS3Client.upload(PresignedUrlUploadRequest)
operation.public void setMetadata(ObjectMetadata metadata)
AmazonS3Client.upload(PresignedUrlUploadRequest)
operation.public PresignedUrlUploadResult withMetadata(ObjectMetadata metadata)
AmazonS3Client.upload(PresignedUrlUploadRequest)
operation.metadata
- object metadata returned by S3