Class S3Action
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.S3Action
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<S3Action.Builder,S3Action>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceS3Action.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbucketName()The Amazon S3 bucket.static S3Action.Builderbuilder()CannedAccessControlListcannedAcl()The Amazon S3 canned ACL that controls access to the object identified by the object key.StringcannedAclAsString()The Amazon S3 canned ACL that controls access to the object identified by the object key.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()The object key.StringroleArn()The ARN of the IAM role that grants access.List<SdkField<?>>sdkFields()static Class<? extends S3Action.Builder>serializableBuilderClass()S3Action.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
roleArn
public final String roleArn()
The ARN of the IAM role that grants access.
- Returns:
- The ARN of the IAM role that grants access.
-
bucketName
public final String bucketName()
The Amazon S3 bucket.
- Returns:
- The Amazon S3 bucket.
-
key
public final String key()
The object key. For more information, see Actions, resources, and condition keys for Amazon S3.
- Returns:
- The object key. For more information, see Actions, resources, and condition keys for Amazon S3.
-
cannedAcl
public final 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,
cannedAclwill returnCannedAccessControlList.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcannedAclAsString().- Returns:
- The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
- See Also:
CannedAccessControlList
-
cannedAclAsString
public final 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,
cannedAclwill returnCannedAccessControlList.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcannedAclAsString().- Returns:
- The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs.
- See Also:
CannedAccessControlList
-
toBuilder
public S3Action.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<S3Action.Builder,S3Action>
-
builder
public static S3Action.Builder builder()
-
serializableBuilderClass
public static Class<? extends S3Action.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-