public class S3Object
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getBucket()
The name of the S3 bucket.
|
java.lang.String |
getName()
The file name of the input document.
|
java.lang.String |
getVersion()
If the bucket has versioning enabled, you can specify the object version.
|
int |
hashCode() |
void |
setBucket(java.lang.String bucket)
The name of the S3 bucket.
|
void |
setName(java.lang.String name)
The file name of the input document.
|
void |
setVersion(java.lang.String version)
If the bucket has versioning enabled, you can specify the object version.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
S3Object |
withBucket(java.lang.String bucket)
The name of the S3 bucket.
|
S3Object |
withName(java.lang.String name)
The file name of the input document.
|
S3Object |
withVersion(java.lang.String version)
If the bucket has versioning enabled, you can specify the object version.
|
public java.lang.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(java.lang.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(java.lang.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 java.lang.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 format files.
Constraints:
Length: 1 - 1024
Pattern: .*\S.*
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 format files.
public void setName(java.lang.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 format files.
Constraints:
Length: 1 - 1024
Pattern: .*\S.*
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 format files.
public S3Object withName(java.lang.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 format 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. Synchronous operations can use image files that are in JPEG or PNG format. Asynchronous operations also support PDF format files.
public java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.