public class RepublishAction
extends java.lang.Object
implements java.io.Serializable
Describes an action to republish to another topic.
Constructor and Description |
---|
RepublishAction() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getQos()
The Quality of Service (QoS) level to use when republishing messages.
|
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 |
setQos(java.lang.Integer qos)
The Quality of Service (QoS) level to use when republishing messages.
|
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 |
withQos(java.lang.Integer qos)
The Quality of Service (QoS) level to use when republishing messages.
|
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.
|
public java.lang.String getRoleArn()
The ARN of the IAM role that grants access.
The ARN of the IAM role that grants access.
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 RepublishAction withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
Returns a reference to this object so that method calls can be chained together.
roleArn
- The ARN of the IAM role that grants access.
public java.lang.String getTopic()
The name of the MQTT topic.
The name of the MQTT topic.
public void setTopic(java.lang.String topic)
The name of the MQTT topic.
topic
- The name of the MQTT topic.
public RepublishAction withTopic(java.lang.String topic)
The name of the MQTT topic.
Returns a reference to this object so that method calls can be chained together.
topic
- The name of the MQTT topic.
public java.lang.Integer getQos()
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
Constraints:
Range: 0 - 1
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
public void setQos(java.lang.Integer qos)
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
Constraints:
Range: 0 - 1
qos
- The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
public RepublishAction withQos(java.lang.Integer qos)
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 - 1
qos
- The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.