Class GetRetainedMessageResponse

    • Method Detail

      • topic

        public final String topic()

        The topic name to which the retained message was published.

        Returns:
        The topic name to which the retained message was published.
      • payload

        public final SdkBytes payload()

        The Base64-encoded message payload of the retained message body.

        Returns:
        The Base64-encoded message payload of the retained message body.
      • qos

        public final Integer qos()

        The quality of service (QoS) level used to publish the retained message.

        Returns:
        The quality of service (QoS) level used to publish the retained message.
      • lastModifiedTime

        public final Long lastModifiedTime()

        The Epoch date and time, in milliseconds, when the retained message was stored by IoT.

        Returns:
        The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
      • userProperties

        public final SdkBytes userProperties()

        A base64-encoded JSON string that includes an array of JSON objects, or null if the retained message doesn't include any user properties.

        The following example userProperties parameter is a JSON string that represents two user properties. Note that it will be base64-encoded:

        [{"deviceName": "alpha"}, {"deviceCnt": "45"}]

        Returns:
        A base64-encoded JSON string that includes an array of JSON objects, or null if the retained message doesn't include any user properties.

        The following example userProperties parameter is a JSON string that represents two user properties. Note that it will be base64-encoded:

        [{"deviceName": "alpha"}, {"deviceCnt": "45"}]

      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object