@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Object extends Object implements Serializable, Cloneable, StructuredPojo
Provides the S3 bucket name and object name.
The region for the S3 bucket containing the S3 object must match the region you use for Amazon Rekognition operations.
For Amazon Rekognition to process an S3 object, the user must have permission to access the S3 object. For more information, see manage-access-resource-policies.
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.