@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Action extends Object implements Serializable, Cloneable, StructuredPojo
Describes an action to write data to an Amazon S3 bucket.
Constructor and Description |
---|
S3Action() |
Modifier and Type | Method and Description |
---|---|
S3Action |
clone() |
boolean |
equals(Object obj) |
String |
getBucketName()
The Amazon S3 bucket.
|
String |
getCannedAcl()
The Amazon S3 canned ACL that controls access to the object identified by the object key.
|
String |
getKey()
The object key.
|
String |
getRoleArn()
The ARN of the IAM role that grants access.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBucketName(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(String cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by the object key.
|
void |
setKey(String key)
The object key.
|
void |
setRoleArn(String roleArn)
The ARN of the IAM role that grants access.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
S3Action |
withBucketName(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(String cannedAcl)
The Amazon S3 canned ACL that controls access to the object identified by the object key.
|
S3Action |
withKey(String key)
The object key.
|
S3Action |
withRoleArn(String roleArn)
The ARN of the IAM role that grants access.
|
public void setRoleArn(String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public String getRoleArn()
The ARN of the IAM role that grants access.
public S3Action withRoleArn(String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public void setBucketName(String bucketName)
The Amazon S3 bucket.
bucketName
- The Amazon S3 bucket.public String getBucketName()
The Amazon S3 bucket.
public S3Action withBucketName(String bucketName)
The Amazon S3 bucket.
bucketName
- The Amazon S3 bucket.public void setKey(String key)
The object key.
key
- The object key.public String getKey()
The object key.
public S3Action withKey(String key)
The object key.
key
- The object key.public void setCannedAcl(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.
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 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.
CannedAccessControlList
public S3Action withCannedAcl(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.
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.
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.
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 String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.