Struct aws_sdk_iotwireless::operation::send_data_to_wireless_device::builders::SendDataToWirelessDeviceInputBuilder
source · #[non_exhaustive]pub struct SendDataToWirelessDeviceInputBuilder { /* private fields */ }
Expand description
A builder for SendDataToWirelessDeviceInput
.
Implementations§
source§impl SendDataToWirelessDeviceInputBuilder
impl SendDataToWirelessDeviceInputBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the wireless device to receive the data.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the wireless device to receive the data.
sourcepub fn transmit_mode(self, input: i32) -> Self
pub fn transmit_mode(self, input: i32) -> Self
The transmit mode to use to send data to the wireless device. Can be: 0
for UM (unacknowledge mode) or 1
for AM (acknowledge mode).
sourcepub fn set_transmit_mode(self, input: Option<i32>) -> Self
pub fn set_transmit_mode(self, input: Option<i32>) -> Self
The transmit mode to use to send data to the wireless device. Can be: 0
for UM (unacknowledge mode) or 1
for AM (acknowledge mode).
sourcepub fn get_transmit_mode(&self) -> &Option<i32>
pub fn get_transmit_mode(&self) -> &Option<i32>
The transmit mode to use to send data to the wireless device. Can be: 0
for UM (unacknowledge mode) or 1
for AM (acknowledge mode).
sourcepub fn payload_data(self, input: impl Into<String>) -> Self
pub fn payload_data(self, input: impl Into<String>) -> Self
The binary to be sent to the end device, encoded in base64.
This field is required.sourcepub fn set_payload_data(self, input: Option<String>) -> Self
pub fn set_payload_data(self, input: Option<String>) -> Self
The binary to be sent to the end device, encoded in base64.
sourcepub fn get_payload_data(&self) -> &Option<String>
pub fn get_payload_data(&self) -> &Option<String>
The binary to be sent to the end device, encoded in base64.
sourcepub fn wireless_metadata(self, input: WirelessMetadata) -> Self
pub fn wireless_metadata(self, input: WirelessMetadata) -> Self
Metadata about the message request.
sourcepub fn set_wireless_metadata(self, input: Option<WirelessMetadata>) -> Self
pub fn set_wireless_metadata(self, input: Option<WirelessMetadata>) -> Self
Metadata about the message request.
sourcepub fn get_wireless_metadata(&self) -> &Option<WirelessMetadata>
pub fn get_wireless_metadata(&self) -> &Option<WirelessMetadata>
Metadata about the message request.
sourcepub fn build(self) -> Result<SendDataToWirelessDeviceInput, BuildError>
pub fn build(self) -> Result<SendDataToWirelessDeviceInput, BuildError>
Consumes the builder and constructs a SendDataToWirelessDeviceInput
.
source§impl SendDataToWirelessDeviceInputBuilder
impl SendDataToWirelessDeviceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SendDataToWirelessDeviceOutput, SdkError<SendDataToWirelessDeviceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SendDataToWirelessDeviceOutput, SdkError<SendDataToWirelessDeviceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SendDataToWirelessDeviceInputBuilder
impl Clone for SendDataToWirelessDeviceInputBuilder
source§fn clone(&self) -> SendDataToWirelessDeviceInputBuilder
fn clone(&self) -> SendDataToWirelessDeviceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SendDataToWirelessDeviceInputBuilder
impl Default for SendDataToWirelessDeviceInputBuilder
source§fn default() -> SendDataToWirelessDeviceInputBuilder
fn default() -> SendDataToWirelessDeviceInputBuilder
source§impl PartialEq for SendDataToWirelessDeviceInputBuilder
impl PartialEq for SendDataToWirelessDeviceInputBuilder
source§fn eq(&self, other: &SendDataToWirelessDeviceInputBuilder) -> bool
fn eq(&self, other: &SendDataToWirelessDeviceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SendDataToWirelessDeviceInputBuilder
Auto Trait Implementations§
impl Freeze for SendDataToWirelessDeviceInputBuilder
impl RefUnwindSafe for SendDataToWirelessDeviceInputBuilder
impl Send for SendDataToWirelessDeviceInputBuilder
impl Sync for SendDataToWirelessDeviceInputBuilder
impl Unpin for SendDataToWirelessDeviceInputBuilder
impl UnwindSafe for SendDataToWirelessDeviceInputBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more