@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RepublishAction extends Object implements Serializable, Cloneable, StructuredPojo
Describes an action to republish to another topic.
Constructor and Description |
---|
RepublishAction() |
Modifier and Type | Method and Description |
---|---|
RepublishAction |
clone() |
boolean |
equals(Object obj) |
MqttHeaders |
getHeaders()
MQTT Version 5.0 headers information.
|
Integer |
getQos()
The Quality of Service (QoS) level to use when republishing messages.
|
String |
getRoleArn()
The ARN of the IAM role that grants access.
|
String |
getTopic()
The name of the MQTT topic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHeaders(MqttHeaders headers)
MQTT Version 5.0 headers information.
|
void |
setQos(Integer qos)
The Quality of Service (QoS) level to use when republishing messages.
|
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.
|
RepublishAction |
withHeaders(MqttHeaders headers)
MQTT Version 5.0 headers information.
|
RepublishAction |
withQos(Integer qos)
The Quality of Service (QoS) level to use when republishing messages.
|
RepublishAction |
withRoleArn(String roleArn)
The ARN of the IAM role that grants access.
|
RepublishAction |
withTopic(String topic)
The name of the MQTT 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 RepublishAction withRoleArn(String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public void setTopic(String topic)
The name of the MQTT topic.
topic
- The name of the MQTT topic.public String getTopic()
The name of the MQTT topic.
public RepublishAction withTopic(String topic)
The name of the MQTT topic.
topic
- The name of the MQTT topic.public void setQos(Integer qos)
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
qos
- The Quality of Service (QoS) level to use when republishing messages. The default value is 0.public Integer getQos()
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
public RepublishAction withQos(Integer qos)
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
qos
- The Quality of Service (QoS) level to use when republishing messages. The default value is 0.public void setHeaders(MqttHeaders headers)
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
headers
- MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web
Services IoT Core Developer Guide.public MqttHeaders getHeaders()
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
public RepublishAction withHeaders(MqttHeaders headers)
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
headers
- MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web
Services IoT Core Developer Guide.public String toString()
toString
in class Object
Object.toString()
public RepublishAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.