AWSIoTDataGetRetainedMessageResponse

Objective-C

@interface AWSIoTDataGetRetainedMessageResponse

Swift

class AWSIoTDataGetRetainedMessageResponse

The output from the GetRetainedMessage operation.

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

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable lastModifiedTime;

    Swift

    var lastModifiedTime: NSNumber? { get set }
  • The Base64-encoded message payload of the retained message body.

    Declaration

    Objective-C

    @property (nonatomic, strong) id _Nullable payload;

    Swift

    var payload: Any? { get set }
  • qos

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

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable qos;

    Swift

    var qos: NSNumber? { get set }
  • The topic name to which the retained message was published.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable topic;

    Swift

    var topic: String? { get set }
  • 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"}]

    Declaration

    Objective-C

    @property (nonatomic, strong) NSData *_Nullable userProperties;

    Swift

    var userProperties: Data? { get set }