Package org.jclouds.s3.domain.internal
Class CopyObjectResult
- java.lang.Object
-
- org.jclouds.s3.domain.internal.CopyObjectResult
-
- All Implemented Interfaces:
Comparable<ObjectMetadata>
,ObjectMetadata
public class CopyObjectResult extends Object implements ObjectMetadata
Returns the metadata parsable from a bucket listing
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jclouds.s3.domain.ObjectMetadata
ObjectMetadata.StorageClass
-
-
Constructor Summary
Constructors Constructor Description CopyObjectResult(Date lastModified, String eTag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ObjectMetadata o)
boolean
equals(Object obj)
String
getBucket()
String
getCacheControl()
Can be used to specify caching behavior along the request/reply chain.ContentMetadata
getContentMetadata()
String
getETag()
String
getKey()
The key is the handle that you assign to an object that allows you retrieve it later.Date
getLastModified()
CanonicalUser
getOwner()
Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.ObjectMetadata.StorageClass
getStorageClass()
Currently defaults to 'STANDARD' and not used.URI
getUri()
Map<String,String>
getUserMetadata()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getKey
public String getKey()
The key is the handle that you assign to an object that allows you retrieve it later. A key is a sequence of Unicode characters whose UTF-8 encoding is at most 1024 bytes long. Each object in a bucket must have a unique key.- Specified by:
getKey
in interfaceObjectMetadata
- See Also:
-
getBucket
public String getBucket()
- Specified by:
getBucket
in interfaceObjectMetadata
-
getUri
public URI getUri()
- Specified by:
getUri
in interfaceObjectMetadata
-
getOwner
public CanonicalUser getOwner()
Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object. The owner of a bucket or object cannot be changed. However, if the object is overwritten by another user (deleted and rewritten), the new object will have a new owner.- Specified by:
getOwner
in interfaceObjectMetadata
-
getStorageClass
public ObjectMetadata.StorageClass getStorageClass()
Currently defaults to 'STANDARD' and not used.- Specified by:
getStorageClass
in interfaceObjectMetadata
-
getCacheControl
public String getCacheControl()
Can be used to specify caching behavior along the request/reply chain.- Specified by:
getCacheControl
in interfaceObjectMetadata
-
getLastModified
public Date getLastModified()
- Specified by:
getLastModified
in interfaceObjectMetadata
-
getETag
public String getETag()
- Specified by:
getETag
in interfaceObjectMetadata
-
compareTo
public int compareTo(ObjectMetadata o)
- Specified by:
compareTo
in interfaceComparable<ObjectMetadata>
-
getUserMetadata
public Map<String,String> getUserMetadata()
- Specified by:
getUserMetadata
in interfaceObjectMetadata
-
getContentMetadata
public ContentMetadata getContentMetadata()
- Specified by:
getContentMetadata
in interfaceObjectMetadata
-
-