Interface GetRetainedMessageResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetRetainedMessageResponse.Builder,GetRetainedMessageResponse>,IotDataPlaneResponse.Builder,SdkBuilder<GetRetainedMessageResponse.Builder,GetRetainedMessageResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetRetainedMessageResponse
public static interface GetRetainedMessageResponse.Builder extends IotDataPlaneResponse.Builder, SdkPojo, CopyableBuilder<GetRetainedMessageResponse.Builder,GetRetainedMessageResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetRetainedMessageResponse.BuilderlastModifiedTime(Long lastModifiedTime)The Epoch date and time, in milliseconds, when the retained message was stored by IoT.GetRetainedMessageResponse.Builderpayload(SdkBytes payload)The Base64-encoded message payload of the retained message body.GetRetainedMessageResponse.Builderqos(Integer qos)The quality of service (QoS) level used to publish the retained message.GetRetainedMessageResponse.Buildertopic(String topic)The topic name to which the retained message was published.GetRetainedMessageResponse.BuilderuserProperties(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.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.iotdataplane.model.IotDataPlaneResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
topic
GetRetainedMessageResponse.Builder topic(String topic)
The topic name to which the retained message was published.
- Parameters:
topic- The topic name to which the retained message was published.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
GetRetainedMessageResponse.Builder payload(SdkBytes payload)
The Base64-encoded message payload of the retained message body.
- Parameters:
payload- The Base64-encoded message payload of the retained message body.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
qos
GetRetainedMessageResponse.Builder qos(Integer qos)
The quality of service (QoS) level used to publish the retained message.
- Parameters:
qos- The quality of service (QoS) level used to publish the retained message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedTime
GetRetainedMessageResponse.Builder lastModifiedTime(Long lastModifiedTime)
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
- Parameters:
lastModifiedTime- The Epoch date and time, in milliseconds, when the retained message was stored by IoT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userProperties
GetRetainedMessageResponse.Builder userProperties(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
userPropertiesparameter is a JSON string that represents two user properties. Note that it will be base64-encoded:[{"deviceName": "alpha"}, {"deviceCnt": "45"}]- Parameters:
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
userPropertiesparameter is a JSON string that represents two user properties. Note that it will be base64-encoded:[{"deviceName": "alpha"}, {"deviceCnt": "45"}]- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-