public class UpdateObjectRequest
extends com.amazonaws.services.s3.model.PutObjectRequest
Constructor and Description |
---|
UpdateObjectRequest(java.lang.String bucketName,
java.lang.String key,
java.io.File file) |
UpdateObjectRequest(java.lang.String bucketName,
java.lang.String key,
java.io.InputStream input,
com.amazonaws.services.s3.model.ObjectMetadata metadata) |
UpdateObjectRequest(java.lang.String bucketName,
java.lang.String key,
java.lang.String redirectLocation) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUpdateRange()
Gets the current update range as a string.
|
void |
setUpdateRange(java.lang.String updateRange)
Explicitly sets the update range as a string value.
|
UpdateObjectRequest |
withUpdateOffset(long startOffset)
Sets the update start position within the object.
|
UpdateObjectRequest |
withUpdateRange(long begin,
long end)
Sets the update range in the object.
|
clone, getAccessControlList, getBucketName, getCannedAcl, getFile, getGeneralProgressListener, getInputStream, getKey, getMetadata, getProgressListener, getRedirectLocation, getStorageClass, setAccessControlList, setBucketName, setCannedAcl, setFile, setGeneralProgressListener, setInputStream, setKey, setMetadata, setProgressListener, setRedirectLocation, setStorageClass, setStorageClass, withAccessControlList, withBucketName, withCannedAcl, withFile, withGeneralProgressListener, withInputStream, withKey, withMetadata, withProgressListener, withRedirectLocation, withStorageClass, withStorageClass
public UpdateObjectRequest(java.lang.String bucketName, java.lang.String key, java.io.File file)
public UpdateObjectRequest(java.lang.String bucketName, java.lang.String key, java.io.InputStream input, com.amazonaws.services.s3.model.ObjectMetadata metadata)
public UpdateObjectRequest(java.lang.String bucketName, java.lang.String key, java.lang.String redirectLocation)
public java.lang.String getUpdateRange()
public void setUpdateRange(java.lang.String updateRange)
updateRange
- the updateRange to set (e.g. "100-199"). See RFC 2616, section
14.35.1 for more information on byte ranges.public UpdateObjectRequest withUpdateRange(long begin, long end)
begin
- the beginning byte offset to update.end
- the ending byte offset, inclusive.public UpdateObjectRequest withUpdateOffset(long startOffset)
startOffset
- the start offset position within the object.