@Generated(value="software.amazon.awssdk:codegen") public final class GetRetainedMessageResponse extends IotDataPlaneResponse implements ToCopyableBuilder<GetRetainedMessageResponse.Builder,GetRetainedMessageResponse>
The output from the GetRetainedMessage operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetRetainedMessageResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetRetainedMessageResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Long |
lastModifiedTime()
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
|
SdkBytes |
payload()
The Base64-encoded message payload of the retained message body.
|
Integer |
qos()
The quality of service (QoS) level used to publish the retained message.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetRetainedMessageResponse.Builder> |
serializableBuilderClass() |
GetRetainedMessageResponse.Builder |
toBuilder() |
String |
topic()
The topic name to which the retained message was published.
|
String |
toString()
Returns a string representation of this object.
|
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.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String topic()
The topic name to which the retained message was published.
public final SdkBytes payload()
The Base64-encoded message payload of the retained message body.
public final Integer qos()
The quality of service (QoS) level used to publish the retained message.
public final Long lastModifiedTime()
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
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"}]
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"}]
public GetRetainedMessageResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetRetainedMessageResponse.Builder,GetRetainedMessageResponse>toBuilder in class AwsResponsepublic static GetRetainedMessageResponse.Builder builder()
public static Class<? extends GetRetainedMessageResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.