@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Object extends Object implements Serializable, Cloneable, StructuredPojo
The S3 bucket name and file name that identifies the document.
The AWS Region for the S3 bucket that contains the document must match the Region that you use for Amazon Textract operations.
For Amazon Textract to process a file in an S3 bucket, the user must have permission to access the S3 bucket and file.
Constructor and Description |
---|
S3Object() |
Modifier and Type | Method and Description |
---|---|
S3Object |
clone() |
boolean |
equals(Object obj) |
String |
getBucket()
The name of the S3 bucket.
|
String |
getName()
The file name of the input document.
|
String |
getVersion()
If the bucket has 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)
The name of the S3 bucket.
|
void |
setName(String name)
The file name of the input document.
|
void |
setVersion(String version)
If the bucket has versioning enabled, you can specify the object version.
|
String |
toString()
Returns a string representation of this object.
|
S3Object |
withBucket(String bucket)
The name of the S3 bucket.
|
S3Object |
withName(String name)
The file name of the input document.
|
S3Object |
withVersion(String version)
If the bucket has versioning enabled, you can specify the object version.
|
public void setBucket(String bucket)
The name of the S3 bucket. Note that the # character is not valid in the file name.
bucket
- The name of the S3 bucket. Note that the # character is not valid in the file name.public String getBucket()
The name of the S3 bucket. Note that the # character is not valid in the file name.
public S3Object withBucket(String bucket)
The name of the S3 bucket. Note that the # character is not valid in the file name.
bucket
- The name of the S3 bucket. Note that the # character is not valid in the file name.public void setName(String name)
The file name of the input document. Synchronous operations can use image files that are in JPEG or PNG format. Asynchronous operations also support PDF and TIFF format files.
name
- The file name of the input document. Synchronous operations can use image files that are in JPEG or PNG
format. Asynchronous operations also support PDF and TIFF format files.public String getName()
The file name of the input document. Synchronous operations can use image files that are in JPEG or PNG format. Asynchronous operations also support PDF and TIFF format files.
public S3Object withName(String name)
The file name of the input document. Synchronous operations can use image files that are in JPEG or PNG format. Asynchronous operations also support PDF and TIFF format files.
name
- The file name of the input document. Synchronous operations can use image files that are in JPEG or PNG
format. Asynchronous operations also support PDF and TIFF format files.public void setVersion(String version)
If the bucket has versioning enabled, you can specify the object version.
version
- If the bucket has versioning enabled, you can specify the object version.public String getVersion()
If the bucket has versioning enabled, you can specify the object version.
public S3Object withVersion(String version)
If the bucket has versioning enabled, you can specify the object version.
version
- If the bucket has 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.