#[non_exhaustive]pub struct DeviceTypeBuilder { /* private fields */ }
Expand description
A builder for DeviceType
.
Implementations§
source§impl DeviceTypeBuilder
impl DeviceTypeBuilder
sourcepub fn device_key(self, input: impl Into<String>) -> Self
pub fn device_key(self, input: impl Into<String>) -> Self
The device key.
sourcepub fn set_device_key(self, input: Option<String>) -> Self
pub fn set_device_key(self, input: Option<String>) -> Self
The device key.
sourcepub fn get_device_key(&self) -> &Option<String>
pub fn get_device_key(&self) -> &Option<String>
The device key.
sourcepub fn device_attributes(self, input: AttributeType) -> Self
pub fn device_attributes(self, input: AttributeType) -> Self
Appends an item to device_attributes
.
To override the contents of this collection use set_device_attributes
.
The device attributes.
sourcepub fn set_device_attributes(self, input: Option<Vec<AttributeType>>) -> Self
pub fn set_device_attributes(self, input: Option<Vec<AttributeType>>) -> Self
The device attributes.
sourcepub fn get_device_attributes(&self) -> &Option<Vec<AttributeType>>
pub fn get_device_attributes(&self) -> &Option<Vec<AttributeType>>
The device attributes.
sourcepub fn device_create_date(self, input: DateTime) -> Self
pub fn device_create_date(self, input: DateTime) -> Self
The creation date of the device.
sourcepub fn set_device_create_date(self, input: Option<DateTime>) -> Self
pub fn set_device_create_date(self, input: Option<DateTime>) -> Self
The creation date of the device.
sourcepub fn get_device_create_date(&self) -> &Option<DateTime>
pub fn get_device_create_date(&self) -> &Option<DateTime>
The creation date of the device.
sourcepub fn device_last_modified_date(self, input: DateTime) -> Self
pub fn device_last_modified_date(self, input: DateTime) -> Self
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
sourcepub fn set_device_last_modified_date(self, input: Option<DateTime>) -> Self
pub fn set_device_last_modified_date(self, input: Option<DateTime>) -> Self
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
sourcepub fn get_device_last_modified_date(&self) -> &Option<DateTime>
pub fn get_device_last_modified_date(&self) -> &Option<DateTime>
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
sourcepub fn device_last_authenticated_date(self, input: DateTime) -> Self
pub fn device_last_authenticated_date(self, input: DateTime) -> Self
The date when the device was last authenticated.
sourcepub fn set_device_last_authenticated_date(self, input: Option<DateTime>) -> Self
pub fn set_device_last_authenticated_date(self, input: Option<DateTime>) -> Self
The date when the device was last authenticated.
sourcepub fn get_device_last_authenticated_date(&self) -> &Option<DateTime>
pub fn get_device_last_authenticated_date(&self) -> &Option<DateTime>
The date when the device was last authenticated.
sourcepub fn build(self) -> DeviceType
pub fn build(self) -> DeviceType
Consumes the builder and constructs a DeviceType
.
Trait Implementations§
source§impl Clone for DeviceTypeBuilder
impl Clone for DeviceTypeBuilder
source§fn clone(&self) -> DeviceTypeBuilder
fn clone(&self) -> DeviceTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceTypeBuilder
impl Debug for DeviceTypeBuilder
source§impl Default for DeviceTypeBuilder
impl Default for DeviceTypeBuilder
source§fn default() -> DeviceTypeBuilder
fn default() -> DeviceTypeBuilder
source§impl PartialEq for DeviceTypeBuilder
impl PartialEq for DeviceTypeBuilder
source§fn eq(&self, other: &DeviceTypeBuilder) -> bool
fn eq(&self, other: &DeviceTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeviceTypeBuilder
Auto Trait Implementations§
impl Freeze for DeviceTypeBuilder
impl RefUnwindSafe for DeviceTypeBuilder
impl Send for DeviceTypeBuilder
impl Sync for DeviceTypeBuilder
impl Unpin for DeviceTypeBuilder
impl UnwindSafe for DeviceTypeBuilder
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> 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