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 RepublishActionclone()booleanequals(Object obj)StringgetRoleArn()The ARN of the IAM role that grants access.StringgetTopic()The name of the MQTT topic.inthashCode()voidsetRoleArn(String roleArn)The ARN of the IAM role that grants access.voidsetTopic(String topic)The name of the MQTT topic.StringtoString()Returns a string representation of this object; useful for testing and debugging.RepublishActionwithRoleArn(String roleArn)The ARN of the IAM role that grants access.RepublishActionwithTopic(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RepublishAction clone()
-
-