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
impl StructuralPartialEq for LocationActionBuilder
Auto Trait Implementations§
impl Freeze for LocationActionBuilder
impl RefUnwindSafe for LocationActionBuilder
impl Send for LocationActionBuilder
impl Sync for LocationActionBuilder
impl Unpin for LocationActionBuilder
impl UnwindSafe for LocationActionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more