Package com.emc.object.s3.request
Class SetObjectRetentionRequest
- java.lang.Object
-
- com.emc.object.ObjectRequest
-
- com.emc.object.s3.request.AbstractBucketRequest
-
- com.emc.object.s3.request.S3ObjectRequest
-
- com.emc.object.s3.request.SetObjectRetentionRequest
-
- All Implemented Interfaces:
EntityRequest
public class SetObjectRetentionRequest extends S3ObjectRequest implements EntityRequest
-
-
Constructor Summary
Constructors Constructor Description SetObjectRetentionRequest(java.lang.String bucketName, java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBypassGovernanceRetention()
java.lang.Long
getContentLength()
java.lang.String
getContentType()
java.lang.Object
getEntity()
java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
getHeaders()
Override to return request-specific headers based on properties of the request.java.util.Map<java.lang.String,java.lang.String>
getQueryParams()
Override to return the request-specific query parameters based on properties of the request.ObjectLockRetention
getRetention()
java.lang.String
getVersionId()
boolean
isChunkable()
void
setBypassGovernanceRetention(java.lang.Boolean bypassGovernanceRetention)
void
setRetention(ObjectLockRetention retention)
void
setVersionId(java.lang.String versionId)
SetObjectRetentionRequest
withBypassGovernanceRetention(java.lang.Boolean bypassGovernanceRetention)
SetObjectRetentionRequest
withRetention(ObjectLockRetention retention)
SetObjectRetentionRequest
withVersionId(java.lang.String versionId)
-
Methods inherited from class com.emc.object.s3.request.S3ObjectRequest
getKey, setKey
-
Methods inherited from class com.emc.object.s3.request.AbstractBucketRequest
getBucketName, setBucketName
-
Methods inherited from class com.emc.object.ObjectRequest
addCustomHeader, getCustomHeaders, getMethod, getNamespace, getPath, getProperties, getQueryString, getRawQueryString, getSubresource, property, setNamespace, setPath
-
-
-
-
Method Detail
-
getQueryParams
public java.util.Map<java.lang.String,java.lang.String> getQueryParams()
Description copied from class:ObjectRequest
Override to return the request-specific query parameters based on properties of the request. Do NOT include the subresource in this map; it will be inserted automatically. Note this implementation uses a TreeSet, which will sort the parameters by name. This is done to make URLs consistent for testing and should not change the semantics of any request.- Overrides:
getQueryParams
in classObjectRequest
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getHeaders()
Description copied from class:ObjectRequest
Override to return request-specific headers based on properties of the request. Always call super() first and modify the result.- Overrides:
getHeaders
in classObjectRequest
-
getContentLength
public java.lang.Long getContentLength()
- Specified by:
getContentLength
in interfaceEntityRequest
-
isChunkable
public boolean isChunkable()
- Specified by:
isChunkable
in interfaceEntityRequest
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntity
in interfaceEntityRequest
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceEntityRequest
-
getRetention
public ObjectLockRetention getRetention()
-
withRetention
public SetObjectRetentionRequest withRetention(ObjectLockRetention retention)
-
setRetention
public void setRetention(ObjectLockRetention retention)
-
getVersionId
public java.lang.String getVersionId()
-
withVersionId
public SetObjectRetentionRequest withVersionId(java.lang.String versionId)
-
setVersionId
public void setVersionId(java.lang.String versionId)
-
getBypassGovernanceRetention
public boolean getBypassGovernanceRetention()
-
withBypassGovernanceRetention
public SetObjectRetentionRequest withBypassGovernanceRetention(java.lang.Boolean bypassGovernanceRetention)
-
setBypassGovernanceRetention
public void setBypassGovernanceRetention(java.lang.Boolean bypassGovernanceRetention)
-
-