public class RepublishAction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an action to republish to another topic.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
roleArn
The ARN of the IAM role that grants access.
|
private java.lang.String |
topic
The name of the MQTT topic.
|
Constructor and Description |
---|
RepublishAction() |
Modifier and Type | Method and Description |
---|---|
RepublishAction |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getRoleArn()
The ARN of the IAM role that grants access.
|
java.lang.String |
getTopic()
The name of the MQTT topic.
|
int |
hashCode() |
void |
setRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
|
void |
setTopic(java.lang.String topic)
The name of the MQTT topic.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RepublishAction |
withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
|
RepublishAction |
withTopic(java.lang.String topic)
The name of the MQTT topic.
|
private java.lang.String roleArn
The ARN of the IAM role that grants access.
private java.lang.String topic
The name of the MQTT topic.
public void setRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public java.lang.String getRoleArn()
The ARN of the IAM role that grants access.
public RepublishAction withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public void setTopic(java.lang.String topic)
The name of the MQTT topic.
topic
- The name of the MQTT topic.public java.lang.String getTopic()
The name of the MQTT topic.
public RepublishAction withTopic(java.lang.String topic)
The name of the MQTT topic.
topic
- The name of the MQTT topic.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RepublishAction clone()
clone
in class java.lang.Object