Struct aws_sdk_iot1clickdevices::operation::update_device_state::builders::UpdateDeviceStateInputBuilder
source · #[non_exhaustive]pub struct UpdateDeviceStateInputBuilder { /* private fields */ }Expand description
A builder for UpdateDeviceStateInput.
Implementations§
source§impl UpdateDeviceStateInputBuilder
impl UpdateDeviceStateInputBuilder
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.
sourcepub fn build(self) -> Result<UpdateDeviceStateInput, BuildError>
pub fn build(self) -> Result<UpdateDeviceStateInput, BuildError>
Consumes the builder and constructs a UpdateDeviceStateInput.
source§impl UpdateDeviceStateInputBuilder
impl UpdateDeviceStateInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateDeviceStateOutput, SdkError<UpdateDeviceStateError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateDeviceStateOutput, SdkError<UpdateDeviceStateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateDeviceStateInputBuilder
impl Clone for UpdateDeviceStateInputBuilder
source§fn clone(&self) -> UpdateDeviceStateInputBuilder
fn clone(&self) -> UpdateDeviceStateInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for UpdateDeviceStateInputBuilder
impl Default for UpdateDeviceStateInputBuilder
source§fn default() -> UpdateDeviceStateInputBuilder
fn default() -> UpdateDeviceStateInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<UpdateDeviceStateInputBuilder> for UpdateDeviceStateInputBuilder
impl PartialEq<UpdateDeviceStateInputBuilder> for UpdateDeviceStateInputBuilder
source§fn eq(&self, other: &UpdateDeviceStateInputBuilder) -> bool
fn eq(&self, other: &UpdateDeviceStateInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateDeviceStateInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for UpdateDeviceStateInputBuilder
impl Send for UpdateDeviceStateInputBuilder
impl Sync for UpdateDeviceStateInputBuilder
impl Unpin for UpdateDeviceStateInputBuilder
impl UnwindSafe for UpdateDeviceStateInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more