public class S3Action
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an action to write data to an Amazon S3 bucket.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bucketName
The Amazon S3 bucket.
|
private java.lang.String |
key
The object key.
|
private java.lang.String |
roleArn
The ARN of the IAM role that grants access.
|
Constructor and Description |
---|
S3Action() |
Modifier and Type | Method and Description |
---|---|
S3Action |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBucketName()
The Amazon S3 bucket.
|
java.lang.String |
getKey()
The object key.
|
java.lang.String |
getRoleArn()
The ARN of the IAM role that grants access.
|
int |
hashCode() |
void |
setBucketName(java.lang.String bucketName)
The Amazon S3 bucket.
|
void |
setKey(java.lang.String key)
The object key.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
S3Action |
withBucketName(java.lang.String bucketName)
The Amazon S3 bucket.
|
S3Action |
withKey(java.lang.String key)
The object key.
|
S3Action |
withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
|
private java.lang.String roleArn
The ARN of the IAM role that grants access.
private java.lang.String bucketName
The Amazon S3 bucket.
private java.lang.String key
The object key.
public void setRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public java.lang.String getRoleArn()
The ARN of the IAM role that grants access.
public S3Action withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public void setBucketName(java.lang.String bucketName)
The Amazon S3 bucket.
bucketName
- The Amazon S3 bucket.public java.lang.String getBucketName()
The Amazon S3 bucket.
public S3Action withBucketName(java.lang.String bucketName)
The Amazon S3 bucket.
bucketName
- The Amazon S3 bucket.public void setKey(java.lang.String key)
The object key.
key
- The object key.public java.lang.String getKey()
The object key.
public S3Action withKey(java.lang.String key)
The object key.
key
- The object key.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public S3Action clone()
clone
in class java.lang.Object