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 ==.