Cloneable, ReadLimitInfo, ToCopyableBuilder<PublishRequest.Builder,PublishRequest>@Generated("software.amazon.awssdk:codegen") public class PublishRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<PublishRequest.Builder,PublishRequest>
The input for the Publish operation.
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
PublishRequest.Builder |
NOOP| Modifier and Type | Method | Description |
|---|---|---|
static PublishRequest.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
ByteBuffer |
payload() |
The state information, in JSON format.
|
Integer |
qos() |
The Quality of Service (QoS) level.
|
static Class<? extends PublishRequest.Builder> |
serializableBuilderClass() |
|
PublishRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
topic() |
The name of the MQTT topic.
|
String |
toString() |
clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeoutpublic String topic()
The name of the MQTT topic.
public Integer qos()
The Quality of Service (QoS) level.
public ByteBuffer payload()
The state information, in JSON format.
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer
. Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
public PublishRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<PublishRequest.Builder,PublishRequest>public static PublishRequest.Builder builder()
public static Class<? extends PublishRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.