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
// 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 GetPositionEstimateInput {
/// <p>Retrieves an estimated device position by resolving WLAN measurement data. The position is resolved using HERE's Wi-Fi based solver.</p>
pub wi_fi_access_points: ::std::option::Option<::std::vec::Vec<crate::types::WiFiAccessPoint>>,
/// <p>Retrieves an estimated device position by resolving measurement data from cellular radio towers. The position is resolved using HERE's cellular-based solver.</p>
pub cell_towers: ::std::option::Option<crate::types::CellTowers>,
/// <p>Retrieves an estimated device position by resolving the IP address information from the device. The position is resolved using MaxMind's IP-based solver.</p>
pub ip: ::std::option::Option<crate::types::Ip>,
/// <p>Retrieves an estimated device position by resolving the global navigation satellite system (GNSS) scan data. The position is resolved using the GNSS solver powered by LoRa Cloud.</p>
pub gnss: ::std::option::Option<crate::types::Gnss>,
/// <p>Optional information that specifies the time when the position information will be resolved. It uses the Unix timestamp format. If not specified, the time at which the request was received will be used.</p>
pub timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
/// Optional configuration to customize position estimates. If not provided, defaults are applied.
pub advanced_configuration: ::std::option::Option<crate::types::AdvancedConfiguration>,
}
impl GetPositionEstimateInput {
/// <p>Retrieves an estimated device position by resolving WLAN measurement data. The position is resolved using HERE's Wi-Fi based solver.</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 `.wi_fi_access_points.is_none()`.
pub fn wi_fi_access_points(&self) -> &[crate::types::WiFiAccessPoint] {
self.wi_fi_access_points.as_deref().unwrap_or_default()
}
/// <p>Retrieves an estimated device position by resolving measurement data from cellular radio towers. The position is resolved using HERE's cellular-based solver.</p>
pub fn cell_towers(&self) -> ::std::option::Option<&crate::types::CellTowers> {
self.cell_towers.as_ref()
}
/// <p>Retrieves an estimated device position by resolving the IP address information from the device. The position is resolved using MaxMind's IP-based solver.</p>
pub fn ip(&self) -> ::std::option::Option<&crate::types::Ip> {
self.ip.as_ref()
}
/// <p>Retrieves an estimated device position by resolving the global navigation satellite system (GNSS) scan data. The position is resolved using the GNSS solver powered by LoRa Cloud.</p>
pub fn gnss(&self) -> ::std::option::Option<&crate::types::Gnss> {
self.gnss.as_ref()
}
/// <p>Optional information that specifies the time when the position information will be resolved. It uses the Unix timestamp format. If not specified, the time at which the request was received will be used.</p>
pub fn timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.timestamp.as_ref()
}
/// Optional configuration to customize position estimates. If not provided, defaults are applied.
pub fn advanced_configuration(&self) -> ::std::option::Option<&crate::types::AdvancedConfiguration> {
self.advanced_configuration.as_ref()
}
}
impl GetPositionEstimateInput {
/// Creates a new builder-style object to manufacture [`GetPositionEstimateInput`](crate::operation::get_position_estimate::GetPositionEstimateInput).
pub fn builder() -> crate::operation::get_position_estimate::builders::GetPositionEstimateInputBuilder {
crate::operation::get_position_estimate::builders::GetPositionEstimateInputBuilder::default()
}
}
/// A builder for [`GetPositionEstimateInput`](crate::operation::get_position_estimate::GetPositionEstimateInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetPositionEstimateInputBuilder {
pub(crate) wi_fi_access_points: ::std::option::Option<::std::vec::Vec<crate::types::WiFiAccessPoint>>,
pub(crate) cell_towers: ::std::option::Option<crate::types::CellTowers>,
pub(crate) ip: ::std::option::Option<crate::types::Ip>,
pub(crate) gnss: ::std::option::Option<crate::types::Gnss>,
pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) advanced_configuration: ::std::option::Option<crate::types::AdvancedConfiguration>,
}
impl GetPositionEstimateInputBuilder {
/// Appends an item to `wi_fi_access_points`.
///
/// To override the contents of this collection use [`set_wi_fi_access_points`](Self::set_wi_fi_access_points).
///
/// <p>Retrieves an estimated device position by resolving WLAN measurement data. The position is resolved using HERE's Wi-Fi based solver.</p>
pub fn wi_fi_access_points(mut self, input: crate::types::WiFiAccessPoint) -> Self {
let mut v = self.wi_fi_access_points.unwrap_or_default();
v.push(input);
self.wi_fi_access_points = ::std::option::Option::Some(v);
self
}
/// <p>Retrieves an estimated device position by resolving WLAN measurement data. The position is resolved using HERE's Wi-Fi based solver.</p>
pub fn set_wi_fi_access_points(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::WiFiAccessPoint>>) -> Self {
self.wi_fi_access_points = input;
self
}
/// <p>Retrieves an estimated device position by resolving WLAN measurement data. The position is resolved using HERE's Wi-Fi based solver.</p>
pub fn get_wi_fi_access_points(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::WiFiAccessPoint>> {
&self.wi_fi_access_points
}
/// <p>Retrieves an estimated device position by resolving measurement data from cellular radio towers. The position is resolved using HERE's cellular-based solver.</p>
pub fn cell_towers(mut self, input: crate::types::CellTowers) -> Self {
self.cell_towers = ::std::option::Option::Some(input);
self
}
/// <p>Retrieves an estimated device position by resolving measurement data from cellular radio towers. The position is resolved using HERE's cellular-based solver.</p>
pub fn set_cell_towers(mut self, input: ::std::option::Option<crate::types::CellTowers>) -> Self {
self.cell_towers = input;
self
}
/// <p>Retrieves an estimated device position by resolving measurement data from cellular radio towers. The position is resolved using HERE's cellular-based solver.</p>
pub fn get_cell_towers(&self) -> &::std::option::Option<crate::types::CellTowers> {
&self.cell_towers
}
/// <p>Retrieves an estimated device position by resolving the IP address information from the device. The position is resolved using MaxMind's IP-based solver.</p>
pub fn ip(mut self, input: crate::types::Ip) -> Self {
self.ip = ::std::option::Option::Some(input);
self
}
/// <p>Retrieves an estimated device position by resolving the IP address information from the device. The position is resolved using MaxMind's IP-based solver.</p>
pub fn set_ip(mut self, input: ::std::option::Option<crate::types::Ip>) -> Self {
self.ip = input;
self
}
/// <p>Retrieves an estimated device position by resolving the IP address information from the device. The position is resolved using MaxMind's IP-based solver.</p>
pub fn get_ip(&self) -> &::std::option::Option<crate::types::Ip> {
&self.ip
}
/// <p>Retrieves an estimated device position by resolving the global navigation satellite system (GNSS) scan data. The position is resolved using the GNSS solver powered by LoRa Cloud.</p>
pub fn gnss(mut self, input: crate::types::Gnss) -> Self {
self.gnss = ::std::option::Option::Some(input);
self
}
/// <p>Retrieves an estimated device position by resolving the global navigation satellite system (GNSS) scan data. The position is resolved using the GNSS solver powered by LoRa Cloud.</p>
pub fn set_gnss(mut self, input: ::std::option::Option<crate::types::Gnss>) -> Self {
self.gnss = input;
self
}
/// <p>Retrieves an estimated device position by resolving the global navigation satellite system (GNSS) scan data. The position is resolved using the GNSS solver powered by LoRa Cloud.</p>
pub fn get_gnss(&self) -> &::std::option::Option<crate::types::Gnss> {
&self.gnss
}
/// <p>Optional information that specifies the time when the position information will be resolved. It uses the Unix timestamp format. If not specified, the time at which the request was received will be used.</p>
pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.timestamp = ::std::option::Option::Some(input);
self
}
/// <p>Optional information that specifies the time when the position information will be resolved. It uses the Unix timestamp format. If not specified, the time at which the request was received will be used.</p>
pub fn set_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.timestamp = input;
self
}
/// <p>Optional information that specifies the time when the position information will be resolved. It uses the Unix timestamp format. If not specified, the time at which the request was received will be used.</p>
pub fn get_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.timestamp
}
/// Optional configuration to customize position estimates. If not provided, defaults are applied.
pub fn advanced_configuration(mut self, input: crate::types::AdvancedConfiguration) -> Self {
self.advanced_configuration = ::std::option::Option::Some(input);
self
}
/// Optional configuration to customize position estimates. If not provided, defaults are applied.
pub fn set_advanced_configuration(mut self, input: ::std::option::Option<crate::types::AdvancedConfiguration>) -> Self {
self.advanced_configuration = input;
self
}
/// Optional configuration to customize position estimates. If not provided, defaults are applied.
pub fn get_advanced_configuration(&self) -> &::std::option::Option<crate::types::AdvancedConfiguration> {
&self.advanced_configuration
}
/// Consumes the builder and constructs a [`GetPositionEstimateInput`](crate::operation::get_position_estimate::GetPositionEstimateInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_position_estimate::GetPositionEstimateInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::get_position_estimate::GetPositionEstimateInput {
wi_fi_access_points: self.wi_fi_access_points,
cell_towers: self.cell_towers,
ip: self.ip,
gnss: self.gnss,
timestamp: self.timestamp,
advanced_configuration: self.advanced_configuration,
})
}
}