public class S3Object extends Object implements Serializable
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 |
|---|---|
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 |
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; useful for testing and
debugging.
|
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 String getBucket()
The name of the S3 bucket.
Constraints:
Length: 3 - 255
Pattern: [0-9A-Za-z\.\-_]*
The name of the S3 bucket.
public void setBucket(String bucket)
The name of the S3 bucket.
Constraints:
Length: 3 - 255
Pattern: [0-9A-Za-z\.\-_]*
bucket - The name of the S3 bucket.
public S3Object withBucket(String bucket)
The name of the S3 bucket.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [0-9A-Za-z\.\-_]*
bucket - The name of the S3 bucket.
public String getName()
The file name of the input document. It must be an image file (.JPG or .PNG format). Asynchronous operations also support PDF files.
Constraints:
Length: 1 - 1024
Pattern: .*\S.*
The file name of the input document. It must be an image file (.JPG or .PNG format). Asynchronous operations also support PDF files.
public void setName(String name)
The file name of the input document. It must be an image file (.JPG or .PNG format). Asynchronous operations also support PDF files.
Constraints:
Length: 1 - 1024
Pattern: .*\S.*
name - The file name of the input document. It must be an image file (.JPG or .PNG format). Asynchronous operations also support PDF files.
public S3Object withName(String name)
The file name of the input document. It must be an image file (.JPG or .PNG format). Asynchronous operations also support PDF files.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern: .*\S.*
name - The file name of the input document. It must be an image file (.JPG or .PNG format). Asynchronous operations also support PDF files.
public String getVersion()
If the bucket has versioning enabled, you can specify the object version.
Constraints:
Length: 1 - 1024
Pattern: .*\S.*
If the bucket has versioning enabled, you can specify the object version.
public void setVersion(String version)
If the bucket has versioning enabled, you can specify the object version.
Constraints:
Length: 1 - 1024
Pattern: .*\S.*
version - 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern: .*\S.*
version - If the bucket has versioning enabled, you can specify the object version.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.