Package com.amazonaws.services.iot.model
Class S3Action
- java.lang.Object
-
- com.amazonaws.services.iot.model.S3Action
-
- All Implemented Interfaces:
Serializable,Cloneable
public class S3Action extends Object implements Serializable, Cloneable
Describes an action to write data to an Amazon S3 bucket.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S3Action()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3Actionclone()booleanequals(Object obj)StringgetBucketName()The Amazon S3 bucket.StringgetKey()The object key.StringgetRoleArn()The ARN of the IAM role that grants access.inthashCode()voidsetBucketName(String bucketName)The Amazon S3 bucket.voidsetKey(String key)The object key.voidsetRoleArn(String roleArn)The ARN of the IAM role that grants access.StringtoString()Returns a string representation of this object; useful for testing and debugging.S3ActionwithBucketName(String bucketName)The Amazon S3 bucket.S3ActionwithKey(String key)The object key.S3ActionwithRoleArn(String roleArn)The ARN of the IAM role that grants access.
-
-
-
Method Detail
-
setRoleArn
public void setRoleArn(String roleArn)
The ARN of the IAM role that grants access.
- Parameters:
roleArn- The ARN of the IAM role that grants access.
-
getRoleArn
public String getRoleArn()
The ARN of the IAM role that grants access.
- Returns:
- The ARN of the IAM role that grants access.
-
withRoleArn
public S3Action withRoleArn(String roleArn)
The ARN of the IAM role that grants access.
- Parameters:
roleArn- The ARN of the IAM role that grants access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBucketName
public void setBucketName(String bucketName)
The Amazon S3 bucket.
- Parameters:
bucketName- The Amazon S3 bucket.
-
getBucketName
public String getBucketName()
The Amazon S3 bucket.
- Returns:
- The Amazon S3 bucket.
-
withBucketName
public S3Action withBucketName(String bucketName)
The Amazon S3 bucket.
- Parameters:
bucketName- The Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKey
public void setKey(String key)
The object key.
- Parameters:
key- The object key.
-
getKey
public String getKey()
The object key.
- Returns:
- The object key.
-
withKey
public S3Action withKey(String key)
The object key.
- Parameters:
key- The object key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-