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(ZonedDateTime time)
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(ZonedDateTime time)
Sets object unmodified condition, copy object unmodified since given time.
|
public void setModified(ZonedDateTime time) throws IllegalArgumentException
IllegalArgumentException - When date is nullpublic void setUnmodified(ZonedDateTime time) throws IllegalArgumentException
IllegalArgumentException - When date is nullpublic void setMatchETag(String etag) throws IllegalArgumentException
IllegalArgumentException - When etag is nullpublic void setMatchETagNone(String etag) throws IllegalArgumentException
IllegalArgumentException - When etag is nullpublic void setReplaceMetadataDirective()