Struct aws_sdk_rum::types::builders::RumEventBuilder
source · #[non_exhaustive]pub struct RumEventBuilder { /* private fields */ }
Expand description
A builder for RumEvent
.
Implementations§
source§impl RumEventBuilder
impl RumEventBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
A unique ID for this event.
This field is required.sourcepub fn timestamp(self, input: DateTime) -> Self
pub fn timestamp(self, input: DateTime) -> Self
The exact time that this event occurred.
This field is required.sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
The exact time that this event occurred.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
The exact time that this event occurred.
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The JSON schema that denotes the type of event this is, such as a page load or a new session.
This field is required.sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The JSON schema that denotes the type of event this is, such as a page load or a new session.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The JSON schema that denotes the type of event this is, such as a page load or a new session.
sourcepub fn metadata(self, input: impl Into<String>) -> Self
pub fn metadata(self, input: impl Into<String>) -> Self
Metadata about this event, which contains a JSON serialization of the identity of the user for this session. The user information comes from information such as the HTTP user-agent request header and document interface.
sourcepub fn set_metadata(self, input: Option<String>) -> Self
pub fn set_metadata(self, input: Option<String>) -> Self
Metadata about this event, which contains a JSON serialization of the identity of the user for this session. The user information comes from information such as the HTTP user-agent request header and document interface.
sourcepub fn get_metadata(&self) -> &Option<String>
pub fn get_metadata(&self) -> &Option<String>
Metadata about this event, which contains a JSON serialization of the identity of the user for this session. The user information comes from information such as the HTTP user-agent request header and document interface.
sourcepub fn details(self, input: impl Into<String>) -> Self
pub fn details(self, input: impl Into<String>) -> Self
A string containing details about the event.
This field is required.sourcepub fn set_details(self, input: Option<String>) -> Self
pub fn set_details(self, input: Option<String>) -> Self
A string containing details about the event.
sourcepub fn get_details(&self) -> &Option<String>
pub fn get_details(&self) -> &Option<String>
A string containing details about the event.
Trait Implementations§
source§impl Clone for RumEventBuilder
impl Clone for RumEventBuilder
source§fn clone(&self) -> RumEventBuilder
fn clone(&self) -> RumEventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RumEventBuilder
impl Debug for RumEventBuilder
source§impl Default for RumEventBuilder
impl Default for RumEventBuilder
source§fn default() -> RumEventBuilder
fn default() -> RumEventBuilder
source§impl PartialEq for RumEventBuilder
impl PartialEq for RumEventBuilder
source§fn eq(&self, other: &RumEventBuilder) -> bool
fn eq(&self, other: &RumEventBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.