public class S3Object extends Object implements Serializable, Cloneable
Provides the S3 bucket name and object name.
Constructor and Description |
---|
S3Object() |
Modifier and Type | Method and Description |
---|---|
S3Object |
clone() |
boolean |
equals(Object obj) |
String |
getBucket()
Name of the S3 bucket.
|
String |
getName()
S3 object key name.
|
String |
getVersion()
If the bucket is versioning enabled, you can specify the object version.
|
int |
hashCode() |
void |
setBucket(String bucket)
Name of the S3 bucket.
|
void |
setName(String name)
S3 object key name.
|
void |
setVersion(String version)
If the bucket is versioning enabled, you can specify the object version.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
S3Object |
withBucket(String bucket)
Name of the S3 bucket.
|
S3Object |
withName(String name)
S3 object key name.
|
S3Object |
withVersion(String version)
If the bucket is versioning enabled, you can specify the object version.
|
public void setBucket(String bucket)
Name of the S3 bucket.
bucket
- Name of the S3 bucket.public String getBucket()
Name of the S3 bucket.
public S3Object withBucket(String bucket)
Name of the S3 bucket.
bucket
- Name of the S3 bucket.public void setName(String name)
S3 object key name.
name
- S3 object key name.public String getName()
S3 object key name.
public S3Object withName(String name)
S3 object key name.
name
- S3 object key name.public void setVersion(String version)
If the bucket is versioning enabled, you can specify the object version.
version
- If the bucket is versioning enabled, you can specify the object version.public String getVersion()
If the bucket is versioning enabled, you can specify the object version.
public S3Object withVersion(String version)
If the bucket is versioning enabled, you can specify the object version.
version
- If the bucket is versioning enabled, you can specify the object version.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.