1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteQueuedMessagesInput {
/// <p>The ID of a given wireless device for which downlink messages will be deleted.</p>
pub id: ::std::option::Option<::std::string::String>,
/// <p>If message ID is <code>"*"</code>, it cleares the entire downlink queue for a given device, specified by the wireless device ID. Otherwise, the downlink message with the specified message ID will be deleted.</p>
pub message_id: ::std::option::Option<::std::string::String>,
/// <p>The wireless device type, which can be either Sidewalk or LoRaWAN.</p>
pub wireless_device_type: ::std::option::Option<crate::types::WirelessDeviceType>,
}
impl DeleteQueuedMessagesInput {
/// <p>The ID of a given wireless device for which downlink messages will be deleted.</p>
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
/// <p>If message ID is <code>"*"</code>, it cleares the entire downlink queue for a given device, specified by the wireless device ID. Otherwise, the downlink message with the specified message ID will be deleted.</p>
pub fn message_id(&self) -> ::std::option::Option<&str> {
self.message_id.as_deref()
}
/// <p>The wireless device type, which can be either Sidewalk or LoRaWAN.</p>
pub fn wireless_device_type(&self) -> ::std::option::Option<&crate::types::WirelessDeviceType> {
self.wireless_device_type.as_ref()
}
}
impl DeleteQueuedMessagesInput {
/// Creates a new builder-style object to manufacture [`DeleteQueuedMessagesInput`](crate::operation::delete_queued_messages::DeleteQueuedMessagesInput).
pub fn builder() -> crate::operation::delete_queued_messages::builders::DeleteQueuedMessagesInputBuilder {
crate::operation::delete_queued_messages::builders::DeleteQueuedMessagesInputBuilder::default()
}
}
/// A builder for [`DeleteQueuedMessagesInput`](crate::operation::delete_queued_messages::DeleteQueuedMessagesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteQueuedMessagesInputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) message_id: ::std::option::Option<::std::string::String>,
pub(crate) wireless_device_type: ::std::option::Option<crate::types::WirelessDeviceType>,
}
impl DeleteQueuedMessagesInputBuilder {
/// <p>The ID of a given wireless device for which downlink messages will be deleted.</p>
/// This field is required.
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of a given wireless device for which downlink messages will be deleted.</p>
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
/// <p>The ID of a given wireless device for which downlink messages will be deleted.</p>
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
/// <p>If message ID is <code>"*"</code>, it cleares the entire downlink queue for a given device, specified by the wireless device ID. Otherwise, the downlink message with the specified message ID will be deleted.</p>
/// This field is required.
pub fn message_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.message_id = ::std::option::Option::Some(input.into());
self
}
/// <p>If message ID is <code>"*"</code>, it cleares the entire downlink queue for a given device, specified by the wireless device ID. Otherwise, the downlink message with the specified message ID will be deleted.</p>
pub fn set_message_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.message_id = input;
self
}
/// <p>If message ID is <code>"*"</code>, it cleares the entire downlink queue for a given device, specified by the wireless device ID. Otherwise, the downlink message with the specified message ID will be deleted.</p>
pub fn get_message_id(&self) -> &::std::option::Option<::std::string::String> {
&self.message_id
}
/// <p>The wireless device type, which can be either Sidewalk or LoRaWAN.</p>
pub fn wireless_device_type(mut self, input: crate::types::WirelessDeviceType) -> Self {
self.wireless_device_type = ::std::option::Option::Some(input);
self
}
/// <p>The wireless device type, which can be either Sidewalk or LoRaWAN.</p>
pub fn set_wireless_device_type(mut self, input: ::std::option::Option<crate::types::WirelessDeviceType>) -> Self {
self.wireless_device_type = input;
self
}
/// <p>The wireless device type, which can be either Sidewalk or LoRaWAN.</p>
pub fn get_wireless_device_type(&self) -> &::std::option::Option<crate::types::WirelessDeviceType> {
&self.wireless_device_type
}
/// Consumes the builder and constructs a [`DeleteQueuedMessagesInput`](crate::operation::delete_queued_messages::DeleteQueuedMessagesInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_queued_messages::DeleteQueuedMessagesInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_queued_messages::DeleteQueuedMessagesInput {
id: self.id,
message_id: self.message_id,
wireless_device_type: self.wireless_device_type,
})
}
}