Class PublishToIoTCoreRequest

    • Constructor Detail

      • PublishToIoTCoreRequest

        public PublishToIoTCoreRequest()
    • 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.
      • getQos

        public QOS getQos()
      • getQosAsString

        public String getQosAsString()
        The MQTT QoS to use.
      • setQos

        public void setQos​(String qos)
        The MQTT QoS to use.
      • setQos

        public void setQos​(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.
      • 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.
      • 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.
      • getPayloadFormatAsString

        public String getPayloadFormatAsString()
        (Optional) Message payload format.
      • setPayloadFormat

        public void setPayloadFormat​(String payloadFormat)
        (Optional) Message payload format.
      • setPayloadFormat

        public void setPayloadFormat​(PayloadFormat payloadFormat)
        (Optional) Message payload format.
      • getContentType

        public String getContentType()
        (Optional) Message content type.
      • setContentType

        public void setContentType​(String contentType)
        (Optional) Message content type.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object