public class CopyConditions extends Object
Constructor and Description |
---|
CopyConditions() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getConditions()
Get all the set copy conditions map.
|
void |
setMatchETag(String etag)
Set matching ETag condition, copy object which matches
the following ETag.
|
void |
setMatchETagNone(String etag)
Set matching ETag none condition, copy object which does not
match the following ETag.
|
void |
setModified(org.joda.time.DateTime date)
Set modified condition, copy object modified since given time.
|
void |
setReplaceMetadataDirective()
Set replace metadata directive which specifies that
destination object after copyObject() sets new
metadata provided in the request.
|
void |
setUnmodified(org.joda.time.DateTime date)
Sets object unmodified condition, copy object unmodified since given time.
|
public void setModified(org.joda.time.DateTime date) throws InvalidArgumentException
InvalidArgumentException
- When date is nullpublic void setUnmodified(org.joda.time.DateTime date) throws InvalidArgumentException
InvalidArgumentException
- When date is nullpublic void setMatchETag(String etag) throws InvalidArgumentException
InvalidArgumentException
- When etag is nullpublic void setMatchETagNone(String etag) throws InvalidArgumentException
InvalidArgumentException
- When etag is nullpublic void setReplaceMetadataDirective()