Struct aws_sdk_iot::types::builders::ThingConnectivityBuilder
source · #[non_exhaustive]pub struct ThingConnectivityBuilder { /* private fields */ }
Expand description
A builder for ThingConnectivity
.
Implementations§
source§impl ThingConnectivityBuilder
impl ThingConnectivityBuilder
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 get_connected(&self) -> &Option<bool>
pub fn get_connected(&self) -> &Option<bool>
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 get_timestamp(&self) -> &Option<i64>
pub fn get_timestamp(&self) -> &Option<i64>
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 get_disconnect_reason(&self) -> &Option<String>
pub fn get_disconnect_reason(&self) -> &Option<String>
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
.
Trait Implementations§
source§impl Clone for ThingConnectivityBuilder
impl Clone for ThingConnectivityBuilder
source§fn clone(&self) -> ThingConnectivityBuilder
fn clone(&self) -> ThingConnectivityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ThingConnectivityBuilder
impl Debug for ThingConnectivityBuilder
source§impl Default for ThingConnectivityBuilder
impl Default for ThingConnectivityBuilder
source§fn default() -> ThingConnectivityBuilder
fn default() -> ThingConnectivityBuilder
source§impl PartialEq for ThingConnectivityBuilder
impl PartialEq for ThingConnectivityBuilder
source§fn eq(&self, other: &ThingConnectivityBuilder) -> bool
fn eq(&self, other: &ThingConnectivityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.