public class S3Object
extends java.lang.Object
implements java.io.Serializable
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 Resource-Based Policies in the Amazon Rekognition Developer Guide.
Constructor and Description |
---|
S3Object() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBucket()
Name of the S3 bucket.
|
java.lang.String |
getName()
S3 object key name.
|
java.lang.String |
getVersion()
If the bucket is versioning enabled, you can specify the object version.
|
int |
hashCode() |
void |
setBucket(java.lang.String bucket)
Name of the S3 bucket.
|
void |
setName(java.lang.String name)
S3 object key name.
|
void |
setVersion(java.lang.String version)
If the bucket is 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)
Name of the S3 bucket.
|
S3Object |
withName(java.lang.String name)
S3 object key name.
|
S3Object |
withVersion(java.lang.String version)
If the bucket is versioning enabled, you can specify the object version.
|
public java.lang.String getBucket()
Name of the S3 bucket.
Constraints:
Length: 3 - 255
Pattern: [0-9A-Za-z\.\-_]*
Name of the S3 bucket.
public void setBucket(java.lang.String bucket)
Name of the S3 bucket.
Constraints:
Length: 3 - 255
Pattern: [0-9A-Za-z\.\-_]*
bucket
- Name of the S3 bucket.
public S3Object withBucket(java.lang.String bucket)
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
- Name of the S3 bucket.
public java.lang.String getName()
S3 object key name.
Constraints:
Length: 1 - 1024
S3 object key name.
public void setName(java.lang.String name)
S3 object key name.
Constraints:
Length: 1 - 1024
name
- S3 object key name.
public S3Object withName(java.lang.String name)
S3 object key name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
name
- S3 object key name.
public java.lang.String getVersion()
If the bucket is versioning enabled, you can specify the object version.
Constraints:
Length: 1 - 1024
If the bucket is versioning enabled, you can specify the object version.
public void setVersion(java.lang.String version)
If the bucket is versioning enabled, you can specify the object version.
Constraints:
Length: 1 - 1024
version
- If the bucket is versioning enabled, you can specify the object version.
public S3Object withVersion(java.lang.String version)
If the bucket is 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
version
- If the bucket is 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.