Package com.amazonaws.services.iot.model
Class RepublishAction
- java.lang.Object
-
- com.amazonaws.services.iot.model.RepublishAction
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class RepublishAction extends Object implements Serializable, Cloneable
Describes an action to republish to another topic.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RepublishAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepublishAction
clone()
boolean
equals(Object obj)
String
getRoleArn()
The ARN of the IAM role that grants access.String
getTopic()
The name of the MQTT topic.int
hashCode()
void
setRoleArn(String roleArn)
The ARN of the IAM role that grants access.void
setTopic(String topic)
The name of the MQTT topic.String
toString()
Returns a string representation of this object; useful for testing and debugging.RepublishAction
withRoleArn(String roleArn)
The ARN of the IAM role that grants access.RepublishAction
withTopic(String topic)
The name of the MQTT topic.
-
-
-
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 RepublishAction 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.
-
setTopic
public void setTopic(String topic)
The name of the MQTT topic.
- Parameters:
topic
- The name of the MQTT topic.
-
getTopic
public String getTopic()
The name of the MQTT topic.
- Returns:
- The name of the MQTT topic.
-
withTopic
public RepublishAction withTopic(String topic)
The name of the MQTT topic.
- Parameters:
topic
- The name of the MQTT topic.- 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()
-
clone
public RepublishAction clone()
-
-