@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Object extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about an S3 bucket.
Constructor and Description |
---|
S3Object() |
Modifier and Type | Method and Description |
---|---|
S3Object |
clone() |
boolean |
equals(Object obj) |
String |
getBucket()
The name of the specific S3 bucket.
|
String |
getKey()
The Amazon Web Services Key Management Service (KMS key) key being used to encrypt the S3 object.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBucket(String bucket)
The name of the specific S3 bucket.
|
void |
setKey(String key)
The Amazon Web Services Key Management Service (KMS key) key being used to encrypt the S3 object.
|
String |
toString()
Returns a string representation of this object.
|
S3Object |
withBucket(String bucket)
The name of the specific S3 bucket.
|
S3Object |
withKey(String key)
The Amazon Web Services Key Management Service (KMS key) key being used to encrypt the S3 object.
|
public void setBucket(String bucket)
The name of the specific S3 bucket.
bucket
- The name of the specific S3 bucket.public String getBucket()
The name of the specific S3 bucket.
public S3Object withBucket(String bucket)
The name of the specific S3 bucket.
bucket
- The name of the specific S3 bucket.public void setKey(String key)
The Amazon Web Services Key Management Service (KMS key) key being used to encrypt the S3 object. Without this key, data in the bucket is not accessible.
key
- The Amazon Web Services Key Management Service (KMS key) key being used to encrypt the S3 object. Without
this key, data in the bucket is not accessible.public String getKey()
The Amazon Web Services Key Management Service (KMS key) key being used to encrypt the S3 object. Without this key, data in the bucket is not accessible.
public S3Object withKey(String key)
The Amazon Web Services Key Management Service (KMS key) key being used to encrypt the S3 object. Without this key, data in the bucket is not accessible.
key
- The Amazon Web Services Key Management Service (KMS key) key being used to encrypt the S3 object. Without
this key, data in the bucket is not accessible.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.