Struct aws_sdk_iot1clickdevices::operation::update_device_state::builders::UpdateDeviceStateFluentBuilder
source · pub struct UpdateDeviceStateFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to UpdateDeviceState.
Using a Boolean value (true or false), this operation enables or disables the device given a device ID.
Implementations§
source§impl UpdateDeviceStateFluentBuilder
impl UpdateDeviceStateFluentBuilder
sourcepub fn as_input(&self) -> &UpdateDeviceStateInputBuilder
pub fn as_input(&self) -> &UpdateDeviceStateInputBuilder
Access the UpdateDeviceState as a reference.
sourcepub async fn send(
self
) -> Result<UpdateDeviceStateOutput, SdkError<UpdateDeviceStateError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateDeviceStateOutput, SdkError<UpdateDeviceStateError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateDeviceStateOutput, UpdateDeviceStateError>, SdkError<UpdateDeviceStateError>>
pub async fn customize( self ) -> Result<CustomizableOperation<UpdateDeviceStateOutput, UpdateDeviceStateError>, SdkError<UpdateDeviceStateError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn set_device_id(self, input: Option<String>) -> Self
pub fn set_device_id(self, input: Option<String>) -> Self
The unique identifier of the device.
sourcepub fn get_device_id(&self) -> &Option<String>
pub fn get_device_id(&self) -> &Option<String>
The unique identifier of the device.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
If true, the device is enabled. If false, the device is disabled.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
If true, the device is enabled. If false, the device is disabled.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
If true, the device is enabled. If false, the device is disabled.
Trait Implementations§
source§impl Clone for UpdateDeviceStateFluentBuilder
impl Clone for UpdateDeviceStateFluentBuilder
source§fn clone(&self) -> UpdateDeviceStateFluentBuilder
fn clone(&self) -> UpdateDeviceStateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more