Interface ThingConnectivity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ThingConnectivity.Builder,,ThingConnectivity> SdkBuilder<ThingConnectivity.Builder,,ThingConnectivity> SdkPojo
- Enclosing class:
ThingConnectivity
@Mutable
@NotThreadSafe
public static interface ThingConnectivity.Builder
extends SdkPojo, CopyableBuilder<ThingConnectivity.Builder,ThingConnectivity>
-
Method Summary
Modifier and TypeMethodDescriptioncleanSession(Boolean cleanSession) Indicates whether the client is using a clean session.The unique identifier of the MQTT client.True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.disconnectReason(String disconnectReason) The reason that the client is disconnected.keepAliveDuration(Integer keepAliveDuration) The keep-alive interval in seconds that the client specified when establishing the connection.sessionExpiry(Long sessionExpiry) The session expiry interval in seconds for the MQTT client connection.The epoch time (in milliseconds) when the thing last connected or disconnected.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
connected
True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
- Parameters:
connected- True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
The epoch time (in milliseconds) when the thing last connected or disconnected.
- Parameters:
timestamp- The epoch time (in milliseconds) when the thing last connected or disconnected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disconnectReason
The reason that the client is disconnected.
- Parameters:
disconnectReason- The reason that the client is disconnected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keepAliveDuration
The keep-alive interval in seconds that the client specified when establishing the connection.
- Parameters:
keepAliveDuration- The keep-alive interval in seconds that the client specified when establishing the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cleanSession
Indicates whether the client is using a clean session. Returns
truefor clean sessions.- Parameters:
cleanSession- Indicates whether the client is using a clean session. Returnstruefor clean sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionExpiry
The session expiry interval in seconds for the MQTT client connection. This value indicates how long the session will remain active after the client disconnects.
- Parameters:
sessionExpiry- The session expiry interval in seconds for the MQTT client connection. This value indicates how long the session will remain active after the client disconnects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientId
The unique identifier of the MQTT client.
- Parameters:
clientId- The unique identifier of the MQTT client.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-