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 S3Action
clone()
boolean
equals(Object obj)
String
getBucketName()
The Amazon S3 bucket.String
getKey()
The object key.String
getRoleArn()
The ARN of the IAM role that grants access.int
hashCode()
void
setBucketName(String bucketName)
The Amazon S3 bucket.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
withKey(String key)
The object key.S3Action
withRoleArn(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-