@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3 extends Object implements Serializable, Cloneable, StructuredPojo
Information required for Amazon Q Business to find a specific file in an Amazon S3 bucket.
| Constructor and Description |
|---|
S3() |
| Modifier and Type | Method and Description |
|---|---|
S3 |
clone() |
boolean |
equals(Object obj) |
String |
getBucket()
The name of the S3 bucket that contains the file.
|
String |
getKey()
The name of the file.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBucket(String bucket)
The name of the S3 bucket that contains the file.
|
void |
setKey(String key)
The name of the file.
|
String |
toString()
Returns a string representation of this object.
|
S3 |
withBucket(String bucket)
The name of the S3 bucket that contains the file.
|
S3 |
withKey(String key)
The name of the file.
|
public void setBucket(String bucket)
The name of the S3 bucket that contains the file.
bucket - The name of the S3 bucket that contains the file.public String getBucket()
The name of the S3 bucket that contains the file.
public S3 withBucket(String bucket)
The name of the S3 bucket that contains the file.
bucket - The name of the S3 bucket that contains the file.public void setKey(String key)
The name of the file.
key - The name of the file.public String getKey()
The name of the file.
public S3 withKey(String key)
The name of the file.
key - The name of the file.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.