public class S3Action
extends java.lang.Object
implements java.io.Serializable
Describes an action to write data to an Amazon S3 bucket.
Constructor and Description |
---|
S3Action() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBucketName()
The Amazon S3 bucket.
|
java.lang.String |
getCannedAcl()
The Amazon S3 canned ACL that controls access to the object identified by
the object key.
|
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 |
setCannedAcl(CannedAccessControlList cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by
the object key.
|
void |
setCannedAcl(java.lang.String cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by
the object key.
|
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 |
withCannedAcl(CannedAccessControlList cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by
the object key.
|
S3Action |
withCannedAcl(java.lang.String cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by
the object key.
|
S3Action |
withKey(java.lang.String key)
The object key.
|
S3Action |
withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
|
public java.lang.String getRoleArn()
The ARN of the IAM role that grants access.
The ARN of the IAM role that grants access.
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 S3Action withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
Returns a reference to this object so that method calls can be chained together.
roleArn
- The ARN of the IAM role that grants access.
public java.lang.String getBucketName()
The Amazon S3 bucket.
The Amazon S3 bucket.
public void setBucketName(java.lang.String bucketName)
The Amazon S3 bucket.
bucketName
- The Amazon S3 bucket.
public S3Action withBucketName(java.lang.String bucketName)
The Amazon S3 bucket.
Returns a reference to this object so that method calls can be chained together.
bucketName
- The Amazon S3 bucket.
public java.lang.String getKey()
The object key. For more information, see Actions, resources, and condition keys for Amazon S3.
The object key. For more information, see Actions, resources, and condition keys for Amazon S3.
public void setKey(java.lang.String key)
The object key. For more information, see Actions, resources, and condition keys for Amazon S3.
key
- The object key. For more information, see Actions, resources, and condition keys for Amazon S3.
public S3Action withKey(java.lang.String key)
The object key. For more information, see Actions, resources, and condition keys for Amazon S3.
Returns a reference to this object so that method calls can be chained together.
key
- The object key. For more information, see Actions, resources, and condition keys for Amazon S3.
public java.lang.String getCannedAcl()
The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
Constraints:
Allowed Values: private, public-read, public-read-write,
aws-exec-read, authenticated-read, bucket-owner-read,
bucket-owner-full-control, log-delivery-write
The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
CannedAccessControlList
public void setCannedAcl(java.lang.String cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
Constraints:
Allowed Values: private, public-read, public-read-write,
aws-exec-read, authenticated-read, bucket-owner-read,
bucket-owner-full-control, log-delivery-write
cannedAcl
- The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
CannedAccessControlList
public S3Action withCannedAcl(java.lang.String cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: private, public-read, public-read-write,
aws-exec-read, authenticated-read, bucket-owner-read,
bucket-owner-full-control, log-delivery-write
cannedAcl
- The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
CannedAccessControlList
public void setCannedAcl(CannedAccessControlList cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
Constraints:
Allowed Values: private, public-read, public-read-write,
aws-exec-read, authenticated-read, bucket-owner-read,
bucket-owner-full-control, log-delivery-write
cannedAcl
- The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
CannedAccessControlList
public S3Action withCannedAcl(CannedAccessControlList cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: private, public-read, public-read-write,
aws-exec-read, authenticated-read, bucket-owner-read,
bucket-owner-full-control, log-delivery-write
cannedAcl
- The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
CannedAccessControlList
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.