Class PublishToIoTCoreRequest
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.model.PublishToIoTCoreRequest
-
- All Implemented Interfaces:
EventStreamJsonMessage
public class PublishToIoTCoreRequest extends Object implements EventStreamJsonMessage
-
-
Field Summary
Fields Modifier and Type Field Description static String
APPLICATION_MODEL_TYPE
static PublishToIoTCoreRequest
VOID
-
Constructor Summary
Constructors Constructor Description PublishToIoTCoreRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object rhs)
String
getApplicationModelType()
Returns the named model type.String
getContentType()
(Optional) Message content type.byte[]
getCorrelationData()
(Optional) Correlation data blob for request/response.Long
getMessageExpiryIntervalSeconds()
(Optional) Message expiry interval in seconds.byte[]
getPayload()
(Optional) The message payload as a blob.PayloadFormat
getPayloadFormat()
String
getPayloadFormatAsString()
(Optional) Message payload format.QOS
getQos()
String
getQosAsString()
The MQTT QoS to use.String
getResponseTopic()
(Optional) Response topic for request/response.String
getTopicName()
The topic to which to publish the message.List<UserProperty>
getUserProperties()
(Optional) MQTT user properties associated with the message.int
hashCode()
Boolean
isRetain()
(Optional) Whether to set MQTT retain option to true when publishing.void
setContentType(String contentType)
(Optional) Message content type.void
setCorrelationData(byte[] correlationData)
(Optional) Correlation data blob for request/response.void
setMessageExpiryIntervalSeconds(Long messageExpiryIntervalSeconds)
(Optional) Message expiry interval in seconds.void
setPayload(byte[] payload)
(Optional) The message payload as a blob.void
setPayloadFormat(String payloadFormat)
(Optional) Message payload format.void
setPayloadFormat(PayloadFormat payloadFormat)
(Optional) Message payload format.void
setQos(String qos)
The MQTT QoS to use.void
setQos(QOS qos)
The MQTT QoS to use.void
setResponseTopic(String responseTopic)
(Optional) Response topic for request/response.void
setRetain(Boolean retain)
(Optional) Whether to set MQTT retain option to true when publishing.void
setTopicName(String topicName)
The topic to which to publish the message.void
setUserProperties(List<UserProperty> userProperties)
(Optional) MQTT user properties associated with the message.PublishToIoTCoreRequest
withContentType(String contentType)
(Optional) Message content type.PublishToIoTCoreRequest
withCorrelationData(byte[] correlationData)
(Optional) Correlation data blob for request/response.PublishToIoTCoreRequest
withMessageExpiryIntervalSeconds(Long messageExpiryIntervalSeconds)
(Optional) Message expiry interval in seconds.PublishToIoTCoreRequest
withPayload(byte[] payload)
(Optional) The message payload as a blob.PublishToIoTCoreRequest
withPayloadFormat(String payloadFormat)
(Optional) Message payload format.PublishToIoTCoreRequest
withPayloadFormat(PayloadFormat payloadFormat)
(Optional) Message payload format.PublishToIoTCoreRequest
withQos(String qos)
The MQTT QoS to use.PublishToIoTCoreRequest
withQos(QOS qos)
The MQTT QoS to use.PublishToIoTCoreRequest
withResponseTopic(String responseTopic)
(Optional) Response topic for request/response.PublishToIoTCoreRequest
withRetain(Boolean retain)
(Optional) Whether to set MQTT retain option to true when publishing.PublishToIoTCoreRequest
withTopicName(String topicName)
The topic to which to publish the message.PublishToIoTCoreRequest
withUserProperties(List<UserProperty> userProperties)
(Optional) MQTT user properties associated with the message.-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, isVoid, postFromJson, toPayload
-
-
-
-
Field Detail
-
APPLICATION_MODEL_TYPE
public static final String APPLICATION_MODEL_TYPE
- See Also:
- Constant Field Values
-
VOID
public static final PublishToIoTCoreRequest VOID
-
-
Method Detail
-
getTopicName
public String getTopicName()
The topic to which to publish the message.
-
setTopicName
public void setTopicName(String topicName)
The topic to which to publish the message.
-
withTopicName
public PublishToIoTCoreRequest withTopicName(String topicName)
The topic to which to publish the message.
-
getQos
public QOS getQos()
-
getQosAsString
public String getQosAsString()
The MQTT QoS to use.
-
setQos
public void setQos(String qos)
The MQTT QoS to use.
-
withQos
public PublishToIoTCoreRequest withQos(String qos)
The MQTT QoS to use.
-
setQos
public void setQos(QOS qos)
The MQTT QoS to use.
-
withQos
public PublishToIoTCoreRequest withQos(QOS qos)
The MQTT QoS to use.
-
getPayload
public byte[] getPayload()
(Optional) The message payload as a blob.
-
setPayload
public void setPayload(byte[] payload)
(Optional) The message payload as a blob.
-
withPayload
public PublishToIoTCoreRequest withPayload(byte[] payload)
(Optional) The message payload as a blob.
-
isRetain
public Boolean isRetain()
(Optional) Whether to set MQTT retain option to true when publishing.
-
setRetain
public void setRetain(Boolean retain)
(Optional) Whether to set MQTT retain option to true when publishing.
-
withRetain
public PublishToIoTCoreRequest withRetain(Boolean retain)
(Optional) Whether to set MQTT retain option to true when publishing.
-
getUserProperties
public List<UserProperty> getUserProperties()
(Optional) MQTT user properties associated with the message.
-
setUserProperties
public void setUserProperties(List<UserProperty> userProperties)
(Optional) MQTT user properties associated with the message.
-
withUserProperties
public PublishToIoTCoreRequest withUserProperties(List<UserProperty> userProperties)
(Optional) MQTT user properties associated with the message.
-
getMessageExpiryIntervalSeconds
public Long getMessageExpiryIntervalSeconds()
(Optional) Message expiry interval in seconds.
-
setMessageExpiryIntervalSeconds
public void setMessageExpiryIntervalSeconds(Long messageExpiryIntervalSeconds)
(Optional) Message expiry interval in seconds.
-
withMessageExpiryIntervalSeconds
public PublishToIoTCoreRequest withMessageExpiryIntervalSeconds(Long messageExpiryIntervalSeconds)
(Optional) Message expiry interval in seconds.
-
getCorrelationData
public byte[] getCorrelationData()
(Optional) Correlation data blob for request/response.
-
setCorrelationData
public void setCorrelationData(byte[] correlationData)
(Optional) Correlation data blob for request/response.
-
withCorrelationData
public PublishToIoTCoreRequest withCorrelationData(byte[] correlationData)
(Optional) Correlation data blob for request/response.
-
getResponseTopic
public String getResponseTopic()
(Optional) Response topic for request/response.
-
setResponseTopic
public void setResponseTopic(String responseTopic)
(Optional) Response topic for request/response.
-
withResponseTopic
public PublishToIoTCoreRequest withResponseTopic(String responseTopic)
(Optional) Response topic for request/response.
-
getPayloadFormat
public PayloadFormat getPayloadFormat()
-
getPayloadFormatAsString
public String getPayloadFormatAsString()
(Optional) Message payload format.
-
setPayloadFormat
public void setPayloadFormat(String payloadFormat)
(Optional) Message payload format.
-
withPayloadFormat
public PublishToIoTCoreRequest withPayloadFormat(String payloadFormat)
(Optional) Message payload format.
-
setPayloadFormat
public void setPayloadFormat(PayloadFormat payloadFormat)
(Optional) Message payload format.
-
withPayloadFormat
public PublishToIoTCoreRequest withPayloadFormat(PayloadFormat payloadFormat)
(Optional) Message payload format.
-
getContentType
public String getContentType()
(Optional) Message content type.
-
setContentType
public void setContentType(String contentType)
(Optional) Message content type.
-
withContentType
public PublishToIoTCoreRequest withContentType(String contentType)
(Optional) Message content type.
-
getApplicationModelType
public String getApplicationModelType()
Description copied from interface:EventStreamJsonMessage
Returns the named model type. May be used for a header.- Specified by:
getApplicationModelType
in interfaceEventStreamJsonMessage
- Returns:
- the named model type
-
-