Struct aws_sdk_iotwireless::operation::send_data_to_wireless_device::builders::SendDataToWirelessDeviceFluentBuilder
source · pub struct SendDataToWirelessDeviceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SendDataToWirelessDevice
.
Sends a decrypted application data frame to a device.
Implementations§
source§impl SendDataToWirelessDeviceFluentBuilder
impl SendDataToWirelessDeviceFluentBuilder
sourcepub fn as_input(&self) -> &SendDataToWirelessDeviceInputBuilder
pub fn as_input(&self) -> &SendDataToWirelessDeviceInputBuilder
Access the SendDataToWirelessDevice as a reference.
sourcepub async fn send(
self
) -> Result<SendDataToWirelessDeviceOutput, SdkError<SendDataToWirelessDeviceError, HttpResponse>>
pub async fn send( self ) -> Result<SendDataToWirelessDeviceOutput, SdkError<SendDataToWirelessDeviceError, 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 fn customize(
self
) -> CustomizableOperation<SendDataToWirelessDeviceOutput, SendDataToWirelessDeviceError, Self>
pub fn customize( self ) -> CustomizableOperation<SendDataToWirelessDeviceOutput, SendDataToWirelessDeviceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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.
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.
Trait Implementations§
source§impl Clone for SendDataToWirelessDeviceFluentBuilder
impl Clone for SendDataToWirelessDeviceFluentBuilder
source§fn clone(&self) -> SendDataToWirelessDeviceFluentBuilder
fn clone(&self) -> SendDataToWirelessDeviceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more