Struct aws_sdk_iot::types::builders::LocationActionBuilder
source · #[non_exhaustive]pub struct LocationActionBuilder { /* private fields */ }
Expand description
A builder for LocationAction
.
Implementations§
source§impl LocationActionBuilder
impl LocationActionBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The IAM role that grants permission to write to the Amazon Location resource.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The IAM role that grants permission to write to the Amazon Location resource.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The IAM role that grants permission to write to the Amazon Location resource.
sourcepub fn tracker_name(self, input: impl Into<String>) -> Self
pub fn tracker_name(self, input: impl Into<String>) -> Self
The name of the tracker resource in Amazon Location in which the location is updated.
This field is required.sourcepub fn set_tracker_name(self, input: Option<String>) -> Self
pub fn set_tracker_name(self, input: Option<String>) -> Self
The name of the tracker resource in Amazon Location in which the location is updated.
sourcepub fn get_tracker_name(&self) -> &Option<String>
pub fn get_tracker_name(&self) -> &Option<String>
The name of the tracker resource in Amazon Location in which the location is updated.
sourcepub fn device_id(self, input: impl Into<String>) -> Self
pub fn device_id(self, input: impl Into<String>) -> Self
The unique ID of the device providing the location data.
This field is required.sourcepub fn set_device_id(self, input: Option<String>) -> Self
pub fn set_device_id(self, input: Option<String>) -> Self
The unique ID of the device providing the location data.
sourcepub fn get_device_id(&self) -> &Option<String>
pub fn get_device_id(&self) -> &Option<String>
The unique ID of the device providing the location data.
sourcepub fn timestamp(self, input: LocationTimestamp) -> Self
pub fn timestamp(self, input: LocationTimestamp) -> Self
The time that the location data was sampled. The default value is the time the MQTT message was processed.
sourcepub fn set_timestamp(self, input: Option<LocationTimestamp>) -> Self
pub fn set_timestamp(self, input: Option<LocationTimestamp>) -> Self
The time that the location data was sampled. The default value is the time the MQTT message was processed.
sourcepub fn get_timestamp(&self) -> &Option<LocationTimestamp>
pub fn get_timestamp(&self) -> &Option<LocationTimestamp>
The time that the location data was sampled. The default value is the time the MQTT message was processed.
sourcepub fn latitude(self, input: impl Into<String>) -> Self
pub fn latitude(self, input: impl Into<String>) -> Self
A string that evaluates to a double value that represents the latitude of the device's location.
This field is required.sourcepub fn set_latitude(self, input: Option<String>) -> Self
pub fn set_latitude(self, input: Option<String>) -> Self
A string that evaluates to a double value that represents the latitude of the device's location.
sourcepub fn get_latitude(&self) -> &Option<String>
pub fn get_latitude(&self) -> &Option<String>
A string that evaluates to a double value that represents the latitude of the device's location.
sourcepub fn longitude(self, input: impl Into<String>) -> Self
pub fn longitude(self, input: impl Into<String>) -> Self
A string that evaluates to a double value that represents the longitude of the device's location.
This field is required.sourcepub fn set_longitude(self, input: Option<String>) -> Self
pub fn set_longitude(self, input: Option<String>) -> Self
A string that evaluates to a double value that represents the longitude of the device's location.
sourcepub fn get_longitude(&self) -> &Option<String>
pub fn get_longitude(&self) -> &Option<String>
A string that evaluates to a double value that represents the longitude of the device's location.
sourcepub fn build(self) -> Result<LocationAction, BuildError>
pub fn build(self) -> Result<LocationAction, BuildError>
Consumes the builder and constructs a LocationAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LocationActionBuilder
impl Clone for LocationActionBuilder
source§fn clone(&self) -> LocationActionBuilder
fn clone(&self) -> LocationActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationActionBuilder
impl Debug for LocationActionBuilder
source§impl Default for LocationActionBuilder
impl Default for LocationActionBuilder
source§fn default() -> LocationActionBuilder
fn default() -> LocationActionBuilder
source§impl PartialEq for LocationActionBuilder
impl PartialEq for LocationActionBuilder
source§fn eq(&self, other: &LocationActionBuilder) -> bool
fn eq(&self, other: &LocationActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.