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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The LoRaWAN information used with the multicast session.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct LoRaWanMulticastSession {
    /// <p>Downlink data rate.</p>
    pub dl_dr: ::std::option::Option<i32>,
    /// <p>Downlink frequency.</p>
    pub dl_freq: ::std::option::Option<i32>,
    /// <p>Timestamp of when the multicast group session is to start.</p>
    pub session_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>How long before a multicast group session is to timeout.</p>
    pub session_timeout: ::std::option::Option<i32>,
    /// <p>The PingSlotPeriod value.</p>
    pub ping_slot_period: ::std::option::Option<i32>,
}
impl LoRaWanMulticastSession {
    /// <p>Downlink data rate.</p>
    pub fn dl_dr(&self) -> ::std::option::Option<i32> {
        self.dl_dr
    }
    /// <p>Downlink frequency.</p>
    pub fn dl_freq(&self) -> ::std::option::Option<i32> {
        self.dl_freq
    }
    /// <p>Timestamp of when the multicast group session is to start.</p>
    pub fn session_start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.session_start_time.as_ref()
    }
    /// <p>How long before a multicast group session is to timeout.</p>
    pub fn session_timeout(&self) -> ::std::option::Option<i32> {
        self.session_timeout
    }
    /// <p>The PingSlotPeriod value.</p>
    pub fn ping_slot_period(&self) -> ::std::option::Option<i32> {
        self.ping_slot_period
    }
}
impl LoRaWanMulticastSession {
    /// Creates a new builder-style object to manufacture [`LoRaWanMulticastSession`](crate::types::LoRaWanMulticastSession).
    pub fn builder() -> crate::types::builders::LoRaWanMulticastSessionBuilder {
        crate::types::builders::LoRaWanMulticastSessionBuilder::default()
    }
}

/// A builder for [`LoRaWanMulticastSession`](crate::types::LoRaWanMulticastSession).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct LoRaWanMulticastSessionBuilder {
    pub(crate) dl_dr: ::std::option::Option<i32>,
    pub(crate) dl_freq: ::std::option::Option<i32>,
    pub(crate) session_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) session_timeout: ::std::option::Option<i32>,
    pub(crate) ping_slot_period: ::std::option::Option<i32>,
}
impl LoRaWanMulticastSessionBuilder {
    /// <p>Downlink data rate.</p>
    pub fn dl_dr(mut self, input: i32) -> Self {
        self.dl_dr = ::std::option::Option::Some(input);
        self
    }
    /// <p>Downlink data rate.</p>
    pub fn set_dl_dr(mut self, input: ::std::option::Option<i32>) -> Self {
        self.dl_dr = input;
        self
    }
    /// <p>Downlink data rate.</p>
    pub fn get_dl_dr(&self) -> &::std::option::Option<i32> {
        &self.dl_dr
    }
    /// <p>Downlink frequency.</p>
    pub fn dl_freq(mut self, input: i32) -> Self {
        self.dl_freq = ::std::option::Option::Some(input);
        self
    }
    /// <p>Downlink frequency.</p>
    pub fn set_dl_freq(mut self, input: ::std::option::Option<i32>) -> Self {
        self.dl_freq = input;
        self
    }
    /// <p>Downlink frequency.</p>
    pub fn get_dl_freq(&self) -> &::std::option::Option<i32> {
        &self.dl_freq
    }
    /// <p>Timestamp of when the multicast group session is to start.</p>
    pub fn session_start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.session_start_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>Timestamp of when the multicast group session is to start.</p>
    pub fn set_session_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.session_start_time = input;
        self
    }
    /// <p>Timestamp of when the multicast group session is to start.</p>
    pub fn get_session_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.session_start_time
    }
    /// <p>How long before a multicast group session is to timeout.</p>
    pub fn session_timeout(mut self, input: i32) -> Self {
        self.session_timeout = ::std::option::Option::Some(input);
        self
    }
    /// <p>How long before a multicast group session is to timeout.</p>
    pub fn set_session_timeout(mut self, input: ::std::option::Option<i32>) -> Self {
        self.session_timeout = input;
        self
    }
    /// <p>How long before a multicast group session is to timeout.</p>
    pub fn get_session_timeout(&self) -> &::std::option::Option<i32> {
        &self.session_timeout
    }
    /// <p>The PingSlotPeriod value.</p>
    pub fn ping_slot_period(mut self, input: i32) -> Self {
        self.ping_slot_period = ::std::option::Option::Some(input);
        self
    }
    /// <p>The PingSlotPeriod value.</p>
    pub fn set_ping_slot_period(mut self, input: ::std::option::Option<i32>) -> Self {
        self.ping_slot_period = input;
        self
    }
    /// <p>The PingSlotPeriod value.</p>
    pub fn get_ping_slot_period(&self) -> &::std::option::Option<i32> {
        &self.ping_slot_period
    }
    /// Consumes the builder and constructs a [`LoRaWanMulticastSession`](crate::types::LoRaWanMulticastSession).
    pub fn build(self) -> crate::types::LoRaWanMulticastSession {
        crate::types::LoRaWanMulticastSession {
            dl_dr: self.dl_dr,
            dl_freq: self.dl_freq,
            session_start_time: self.session_start_time,
            session_timeout: self.session_timeout,
            ping_slot_period: self.ping_slot_period,
        }
    }
}