@Generated(value="software.amazon.awssdk:codegen") public final class S3Action extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3Action.Builder,S3Action>
Describes an action to write data to an Amazon S3 bucket.
Modifier and Type | Class and Description |
---|---|
static interface |
S3Action.Builder |
Modifier and Type | Method and Description |
---|---|
String |
bucketName()
The Amazon S3 bucket.
|
static S3Action.Builder |
builder() |
CannedAccessControlList |
cannedAcl()
The Amazon S3 canned ACL that controls access to the object identified by the object key.
|
String |
cannedAclAsString()
The Amazon S3 canned ACL that controls access to the object identified by the object key.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
key()
The object key.
|
String |
roleArn()
The ARN of the IAM role that grants access.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends S3Action.Builder> |
serializableBuilderClass() |
S3Action.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String roleArn()
The ARN of the IAM role that grants access.
public String bucketName()
The Amazon S3 bucket.
public String key()
The object key.
public 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.
If the service returns an enum value that is not available in the current SDK version, cannedAcl
will
return CannedAccessControlList.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from cannedAclAsString()
.
CannedAccessControlList
public String cannedAclAsString()
The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
If the service returns an enum value that is not available in the current SDK version, cannedAcl
will
return CannedAccessControlList.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from cannedAclAsString()
.
CannedAccessControlList
public S3Action.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<S3Action.Builder,S3Action>
public static S3Action.Builder builder()
public static Class<? extends S3Action.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.