Struct aws_sdk_iot1clickdevices::operation::invoke_device_method::builders::InvokeDeviceMethodFluentBuilder
source · pub struct InvokeDeviceMethodFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to InvokeDeviceMethod.
Given a device ID, issues a request to invoke a named device method (with possible parameters). See the "Example POST" code snippet below.
Implementations§
source§impl InvokeDeviceMethodFluentBuilder
impl InvokeDeviceMethodFluentBuilder
sourcepub fn as_input(&self) -> &InvokeDeviceMethodInputBuilder
pub fn as_input(&self) -> &InvokeDeviceMethodInputBuilder
Access the InvokeDeviceMethod as a reference.
sourcepub async fn send(
self
) -> Result<InvokeDeviceMethodOutput, SdkError<InvokeDeviceMethodError, HttpResponse>>
pub async fn send( self ) -> Result<InvokeDeviceMethodOutput, SdkError<InvokeDeviceMethodError, 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<InvokeDeviceMethodOutput, InvokeDeviceMethodError>, SdkError<InvokeDeviceMethodError>>
pub async fn customize( self ) -> Result<CustomizableOperation<InvokeDeviceMethodOutput, InvokeDeviceMethodError>, SdkError<InvokeDeviceMethodError>>
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 device_method(self, input: DeviceMethod) -> Self
pub fn device_method(self, input: DeviceMethod) -> Self
The device method to invoke.
sourcepub fn set_device_method(self, input: Option<DeviceMethod>) -> Self
pub fn set_device_method(self, input: Option<DeviceMethod>) -> Self
The device method to invoke.
sourcepub fn get_device_method(&self) -> &Option<DeviceMethod>
pub fn get_device_method(&self) -> &Option<DeviceMethod>
The device method to invoke.
sourcepub fn device_method_parameters(self, input: impl Into<String>) -> Self
pub fn device_method_parameters(self, input: impl Into<String>) -> Self
A JSON encoded string containing the device method request parameters.
sourcepub fn set_device_method_parameters(self, input: Option<String>) -> Self
pub fn set_device_method_parameters(self, input: Option<String>) -> Self
A JSON encoded string containing the device method request parameters.
sourcepub fn get_device_method_parameters(&self) -> &Option<String>
pub fn get_device_method_parameters(&self) -> &Option<String>
A JSON encoded string containing the device method request parameters.
Trait Implementations§
source§impl Clone for InvokeDeviceMethodFluentBuilder
impl Clone for InvokeDeviceMethodFluentBuilder
source§fn clone(&self) -> InvokeDeviceMethodFluentBuilder
fn clone(&self) -> InvokeDeviceMethodFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more