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 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>LTE object.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct LteObj {
/// <p>Mobile Country Code.</p>
pub mcc: i32,
/// <p>Mobile Network Code.</p>
pub mnc: i32,
/// <p>E-UTRAN (Evolved Universal Terrestrial Radio Access Network) Cell Global Identifier.</p>
pub eutran_cid: i32,
/// <p>LTE tracking area code.</p>
pub tac: ::std::option::Option<i32>,
/// <p>LTE local identification (local ID) information.</p>
pub lte_local_id: ::std::option::Option<crate::types::LteLocalId>,
/// <p>LTE timing advance.</p>
pub lte_timing_advance: ::std::option::Option<i32>,
/// <p>Signal power of the reference signal received, measured in dBm (decibel-milliwatts).</p>
pub rsrp: ::std::option::Option<i32>,
/// <p>Signal quality of the reference Signal received, measured in decibels (dB).</p>
pub rsrq: ::std::option::Option<f32>,
/// <p>Parameter that determines whether the LTE object is capable of supporting NR (new radio).</p>
pub nr_capable: bool,
/// <p>LTE object for network measurement reports.</p>
pub lte_nmr: ::std::option::Option<::std::vec::Vec<crate::types::LteNmrObj>>,
}
impl LteObj {
/// <p>Mobile Country Code.</p>
pub fn mcc(&self) -> i32 {
self.mcc
}
/// <p>Mobile Network Code.</p>
pub fn mnc(&self) -> i32 {
self.mnc
}
/// <p>E-UTRAN (Evolved Universal Terrestrial Radio Access Network) Cell Global Identifier.</p>
pub fn eutran_cid(&self) -> i32 {
self.eutran_cid
}
/// <p>LTE tracking area code.</p>
pub fn tac(&self) -> ::std::option::Option<i32> {
self.tac
}
/// <p>LTE local identification (local ID) information.</p>
pub fn lte_local_id(&self) -> ::std::option::Option<&crate::types::LteLocalId> {
self.lte_local_id.as_ref()
}
/// <p>LTE timing advance.</p>
pub fn lte_timing_advance(&self) -> ::std::option::Option<i32> {
self.lte_timing_advance
}
/// <p>Signal power of the reference signal received, measured in dBm (decibel-milliwatts).</p>
pub fn rsrp(&self) -> ::std::option::Option<i32> {
self.rsrp
}
/// <p>Signal quality of the reference Signal received, measured in decibels (dB).</p>
pub fn rsrq(&self) -> ::std::option::Option<f32> {
self.rsrq
}
/// <p>Parameter that determines whether the LTE object is capable of supporting NR (new radio).</p>
pub fn nr_capable(&self) -> bool {
self.nr_capable
}
/// <p>LTE object for network measurement reports.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.lte_nmr.is_none()`.
pub fn lte_nmr(&self) -> &[crate::types::LteNmrObj] {
self.lte_nmr.as_deref().unwrap_or_default()
}
}
impl LteObj {
/// Creates a new builder-style object to manufacture [`LteObj`](crate::types::LteObj).
pub fn builder() -> crate::types::builders::LteObjBuilder {
crate::types::builders::LteObjBuilder::default()
}
}
/// A builder for [`LteObj`](crate::types::LteObj).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct LteObjBuilder {
pub(crate) mcc: ::std::option::Option<i32>,
pub(crate) mnc: ::std::option::Option<i32>,
pub(crate) eutran_cid: ::std::option::Option<i32>,
pub(crate) tac: ::std::option::Option<i32>,
pub(crate) lte_local_id: ::std::option::Option<crate::types::LteLocalId>,
pub(crate) lte_timing_advance: ::std::option::Option<i32>,
pub(crate) rsrp: ::std::option::Option<i32>,
pub(crate) rsrq: ::std::option::Option<f32>,
pub(crate) nr_capable: ::std::option::Option<bool>,
pub(crate) lte_nmr: ::std::option::Option<::std::vec::Vec<crate::types::LteNmrObj>>,
}
impl LteObjBuilder {
/// <p>Mobile Country Code.</p>
/// This field is required.
pub fn mcc(mut self, input: i32) -> Self {
self.mcc = ::std::option::Option::Some(input);
self
}
/// <p>Mobile Country Code.</p>
pub fn set_mcc(mut self, input: ::std::option::Option<i32>) -> Self {
self.mcc = input;
self
}
/// <p>Mobile Country Code.</p>
pub fn get_mcc(&self) -> &::std::option::Option<i32> {
&self.mcc
}
/// <p>Mobile Network Code.</p>
/// This field is required.
pub fn mnc(mut self, input: i32) -> Self {
self.mnc = ::std::option::Option::Some(input);
self
}
/// <p>Mobile Network Code.</p>
pub fn set_mnc(mut self, input: ::std::option::Option<i32>) -> Self {
self.mnc = input;
self
}
/// <p>Mobile Network Code.</p>
pub fn get_mnc(&self) -> &::std::option::Option<i32> {
&self.mnc
}
/// <p>E-UTRAN (Evolved Universal Terrestrial Radio Access Network) Cell Global Identifier.</p>
/// This field is required.
pub fn eutran_cid(mut self, input: i32) -> Self {
self.eutran_cid = ::std::option::Option::Some(input);
self
}
/// <p>E-UTRAN (Evolved Universal Terrestrial Radio Access Network) Cell Global Identifier.</p>
pub fn set_eutran_cid(mut self, input: ::std::option::Option<i32>) -> Self {
self.eutran_cid = input;
self
}
/// <p>E-UTRAN (Evolved Universal Terrestrial Radio Access Network) Cell Global Identifier.</p>
pub fn get_eutran_cid(&self) -> &::std::option::Option<i32> {
&self.eutran_cid
}
/// <p>LTE tracking area code.</p>
pub fn tac(mut self, input: i32) -> Self {
self.tac = ::std::option::Option::Some(input);
self
}
/// <p>LTE tracking area code.</p>
pub fn set_tac(mut self, input: ::std::option::Option<i32>) -> Self {
self.tac = input;
self
}
/// <p>LTE tracking area code.</p>
pub fn get_tac(&self) -> &::std::option::Option<i32> {
&self.tac
}
/// <p>LTE local identification (local ID) information.</p>
pub fn lte_local_id(mut self, input: crate::types::LteLocalId) -> Self {
self.lte_local_id = ::std::option::Option::Some(input);
self
}
/// <p>LTE local identification (local ID) information.</p>
pub fn set_lte_local_id(mut self, input: ::std::option::Option<crate::types::LteLocalId>) -> Self {
self.lte_local_id = input;
self
}
/// <p>LTE local identification (local ID) information.</p>
pub fn get_lte_local_id(&self) -> &::std::option::Option<crate::types::LteLocalId> {
&self.lte_local_id
}
/// <p>LTE timing advance.</p>
pub fn lte_timing_advance(mut self, input: i32) -> Self {
self.lte_timing_advance = ::std::option::Option::Some(input);
self
}
/// <p>LTE timing advance.</p>
pub fn set_lte_timing_advance(mut self, input: ::std::option::Option<i32>) -> Self {
self.lte_timing_advance = input;
self
}
/// <p>LTE timing advance.</p>
pub fn get_lte_timing_advance(&self) -> &::std::option::Option<i32> {
&self.lte_timing_advance
}
/// <p>Signal power of the reference signal received, measured in dBm (decibel-milliwatts).</p>
pub fn rsrp(mut self, input: i32) -> Self {
self.rsrp = ::std::option::Option::Some(input);
self
}
/// <p>Signal power of the reference signal received, measured in dBm (decibel-milliwatts).</p>
pub fn set_rsrp(mut self, input: ::std::option::Option<i32>) -> Self {
self.rsrp = input;
self
}
/// <p>Signal power of the reference signal received, measured in dBm (decibel-milliwatts).</p>
pub fn get_rsrp(&self) -> &::std::option::Option<i32> {
&self.rsrp
}
/// <p>Signal quality of the reference Signal received, measured in decibels (dB).</p>
pub fn rsrq(mut self, input: f32) -> Self {
self.rsrq = ::std::option::Option::Some(input);
self
}
/// <p>Signal quality of the reference Signal received, measured in decibels (dB).</p>
pub fn set_rsrq(mut self, input: ::std::option::Option<f32>) -> Self {
self.rsrq = input;
self
}
/// <p>Signal quality of the reference Signal received, measured in decibels (dB).</p>
pub fn get_rsrq(&self) -> &::std::option::Option<f32> {
&self.rsrq
}
/// <p>Parameter that determines whether the LTE object is capable of supporting NR (new radio).</p>
pub fn nr_capable(mut self, input: bool) -> Self {
self.nr_capable = ::std::option::Option::Some(input);
self
}
/// <p>Parameter that determines whether the LTE object is capable of supporting NR (new radio).</p>
pub fn set_nr_capable(mut self, input: ::std::option::Option<bool>) -> Self {
self.nr_capable = input;
self
}
/// <p>Parameter that determines whether the LTE object is capable of supporting NR (new radio).</p>
pub fn get_nr_capable(&self) -> &::std::option::Option<bool> {
&self.nr_capable
}
/// Appends an item to `lte_nmr`.
///
/// To override the contents of this collection use [`set_lte_nmr`](Self::set_lte_nmr).
///
/// <p>LTE object for network measurement reports.</p>
pub fn lte_nmr(mut self, input: crate::types::LteNmrObj) -> Self {
let mut v = self.lte_nmr.unwrap_or_default();
v.push(input);
self.lte_nmr = ::std::option::Option::Some(v);
self
}
/// <p>LTE object for network measurement reports.</p>
pub fn set_lte_nmr(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::LteNmrObj>>) -> Self {
self.lte_nmr = input;
self
}
/// <p>LTE object for network measurement reports.</p>
pub fn get_lte_nmr(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LteNmrObj>> {
&self.lte_nmr
}
/// Consumes the builder and constructs a [`LteObj`](crate::types::LteObj).
/// This method will fail if any of the following fields are not set:
/// - [`mcc`](crate::types::builders::LteObjBuilder::mcc)
/// - [`mnc`](crate::types::builders::LteObjBuilder::mnc)
/// - [`eutran_cid`](crate::types::builders::LteObjBuilder::eutran_cid)
pub fn build(self) -> ::std::result::Result<crate::types::LteObj, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::types::LteObj {
mcc: self.mcc.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"mcc",
"mcc was not specified but it is required when building LteObj",
)
})?,
mnc: self.mnc.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"mnc",
"mnc was not specified but it is required when building LteObj",
)
})?,
eutran_cid: self.eutran_cid.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"eutran_cid",
"eutran_cid was not specified but it is required when building LteObj",
)
})?,
tac: self.tac,
lte_local_id: self.lte_local_id,
lte_timing_advance: self.lte_timing_advance,
rsrp: self.rsrp,
rsrq: self.rsrq,
nr_capable: self.nr_capable.unwrap_or_default(),
lte_nmr: self.lte_nmr,
})
}
}