@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IotTopicPublishAction extends Object implements Serializable, Cloneable, StructuredPojo
Information required to publish the MQTT message through the AWS IoT message broker.
Constructor and Description |
---|
IotTopicPublishAction() |
Modifier and Type | Method and Description |
---|---|
IotTopicPublishAction |
clone() |
boolean |
equals(Object obj) |
String |
getMqttTopic()
The MQTT topic of the message.
|
Payload |
getPayload()
You can configure the action payload when you publish a message to an AWS IoT Core topic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMqttTopic(String mqttTopic)
The MQTT topic of the message.
|
void |
setPayload(Payload payload)
You can configure the action payload when you publish a message to an AWS IoT Core topic.
|
String |
toString()
Returns a string representation of this object.
|
IotTopicPublishAction |
withMqttTopic(String mqttTopic)
The MQTT topic of the message.
|
IotTopicPublishAction |
withPayload(Payload payload)
You can configure the action payload when you publish a message to an AWS IoT Core topic.
|
public void setMqttTopic(String mqttTopic)
The MQTT topic of the message. You can use a string expression that includes variables (
$variable.<variable-name>
) and input values (
$input.<input-name>.<path-to-datum>
) as the topic string.
mqttTopic
- The MQTT topic of the message. You can use a string expression that includes variables (
$variable.<variable-name>
) and input values (
$input.<input-name>.<path-to-datum>
) as the topic string.public String getMqttTopic()
The MQTT topic of the message. You can use a string expression that includes variables (
$variable.<variable-name>
) and input values (
$input.<input-name>.<path-to-datum>
) as the topic string.
$variable.<variable-name>
) and input values (
$input.<input-name>.<path-to-datum>
) as the topic string.public IotTopicPublishAction withMqttTopic(String mqttTopic)
The MQTT topic of the message. You can use a string expression that includes variables (
$variable.<variable-name>
) and input values (
$input.<input-name>.<path-to-datum>
) as the topic string.
mqttTopic
- The MQTT topic of the message. You can use a string expression that includes variables (
$variable.<variable-name>
) and input values (
$input.<input-name>.<path-to-datum>
) as the topic string.public void setPayload(Payload payload)
You can configure the action payload when you publish a message to an AWS IoT Core topic.
payload
- You can configure the action payload when you publish a message to an AWS IoT Core topic.public Payload getPayload()
You can configure the action payload when you publish a message to an AWS IoT Core topic.
public IotTopicPublishAction withPayload(Payload payload)
You can configure the action payload when you publish a message to an AWS IoT Core topic.
payload
- You can configure the action payload when you publish a message to an AWS IoT Core topic.public String toString()
toString
in class Object
Object.toString()
public IotTopicPublishAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.