public class SnsAction extends Object implements Serializable, Cloneable
Describes an action to publish to an Amazon SNS topic.
Constructor and Description |
---|
SnsAction() |
Modifier and Type | Method and Description |
---|---|
SnsAction |
clone() |
boolean |
equals(Object obj) |
String |
getRoleArn()
The ARN of the IAM role that grants access.
|
String |
getTargetArn()
The ARN of the SNS topic.
|
int |
hashCode() |
void |
setRoleArn(String roleArn)
The ARN of the IAM role that grants access.
|
void |
setTargetArn(String targetArn)
The ARN of the SNS topic.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SnsAction |
withRoleArn(String roleArn)
The ARN of the IAM role that grants access.
|
SnsAction |
withTargetArn(String targetArn)
The ARN of the SNS topic.
|
public void setTargetArn(String targetArn)
The ARN of the SNS topic.
targetArn
- The ARN of the SNS topic.public String getTargetArn()
The ARN of the SNS topic.
public SnsAction withTargetArn(String targetArn)
The ARN of the SNS topic.
targetArn
- The ARN of the SNS topic.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 SnsAction withRoleArn(String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.