Struct aws_sdk_iot::model::thing_connectivity::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ThingConnectivity
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn connected(self, input: bool) -> Self
pub fn connected(self, input: bool) -> Self
True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
sourcepub fn set_connected(self, input: Option<bool>) -> Self
pub fn set_connected(self, input: Option<bool>) -> Self
True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
sourcepub fn timestamp(self, input: i64) -> Self
pub fn timestamp(self, input: i64) -> Self
The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for approximately an hour, the time value might be missing.
sourcepub fn set_timestamp(self, input: Option<i64>) -> Self
pub fn set_timestamp(self, input: Option<i64>) -> Self
The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for approximately an hour, the time value might be missing.
sourcepub fn disconnect_reason(self, input: impl Into<String>) -> Self
pub fn disconnect_reason(self, input: impl Into<String>) -> Self
The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the disconnectReason
value might be missing.
sourcepub fn set_disconnect_reason(self, input: Option<String>) -> Self
pub fn set_disconnect_reason(self, input: Option<String>) -> Self
The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the disconnectReason
value might be missing.
sourcepub fn build(self) -> ThingConnectivity
pub fn build(self) -> ThingConnectivity
Consumes the builder and constructs a ThingConnectivity
.