public class PublishRequest extends AmazonWebServiceRequest implements java.io.Serializable
Publishes state information.
For more information, see HTTP Protocol in the AWS IoT Developer Guide.
| Constructor and Description |
|---|
PublishRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.nio.ByteBuffer |
getPayload()
The state information, in JSON format.
|
java.lang.Integer |
getQos()
The Quality of Service (QoS) level.
|
java.lang.String |
getTopic()
The name of the MQTT topic.
|
int |
hashCode() |
void |
setPayload(java.nio.ByteBuffer payload)
The state information, in JSON format.
|
void |
setQos(java.lang.Integer qos)
The Quality of Service (QoS) level.
|
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.
|
PublishRequest |
withPayload(java.nio.ByteBuffer payload)
The state information, in JSON format.
|
PublishRequest |
withQos(java.lang.Integer qos)
The Quality of Service (QoS) level.
|
PublishRequest |
withTopic(java.lang.String topic)
The name of the MQTT topic.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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 PublishRequest 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.
Constraints:
Range: 0 - 1
The Quality of Service (QoS) level.
public void setQos(java.lang.Integer qos)
The Quality of Service (QoS) level.
Constraints:
Range: 0 - 1
qos - The Quality of Service (QoS) level.
public PublishRequest withQos(java.lang.Integer qos)
The Quality of Service (QoS) level.
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.
public java.nio.ByteBuffer getPayload()
The state information, in JSON format.
The state information, in JSON format.
public void setPayload(java.nio.ByteBuffer payload)
The state information, in JSON format.
payload - The state information, in JSON format.
public PublishRequest withPayload(java.nio.ByteBuffer payload)
The state information, in JSON format.
Returns a reference to this object so that method calls can be chained together.
payload - The state information, in JSON format.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.