@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Object extends Object implements Serializable, Cloneable, StructuredPojo
Information about an S3 object.
Constructor and Description |
---|
S3Object() |
Modifier and Type | Method and Description |
---|---|
S3Object |
clone() |
boolean |
equals(Object obj) |
String |
getBucket()
The bucket containing the object.
|
String |
getEtag()
The etag of the object.
|
String |
getKey()
The key of the object.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBucket(String bucket)
The bucket containing the object.
|
void |
setEtag(String etag)
The etag of the object.
|
void |
setKey(String key)
The key of the object.
|
String |
toString()
Returns a string representation of this object.
|
S3Object |
withBucket(String bucket)
The bucket containing the object.
|
S3Object |
withEtag(String etag)
The etag of the object.
|
S3Object |
withKey(String key)
The key of the object.
|
public void setBucket(String bucket)
The bucket containing the object.
bucket
- The bucket containing the object.public String getBucket()
The bucket containing the object.
public S3Object withBucket(String bucket)
The bucket containing the object.
bucket
- The bucket containing the object.public void setKey(String key)
The key of the object.
key
- The key of the object.public String getKey()
The key of the object.
public S3Object withKey(String key)
The key of the object.
key
- The key of the object.public void setEtag(String etag)
The etag of the object.
etag
- The etag of the object.public String getEtag()
The etag of the object.
public S3Object withEtag(String etag)
The etag of the object.
etag
- The etag of the object.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.