#[non_exhaustive]pub struct SendEventInputBuilder { /* private fields */ }
Expand description
A builder for SendEventInput
.
Implementations§
source§impl SendEventInputBuilder
impl SendEventInputBuilder
sourcepub fn event_id(self, input: impl Into<String>) -> Self
pub fn event_id(self, input: impl Into<String>) -> Self
The event ID to upload.
This field is required.sourcepub fn set_event_id(self, input: Option<String>) -> Self
pub fn set_event_id(self, input: Option<String>) -> Self
The event ID to upload.
sourcepub fn get_event_id(&self) -> &Option<String>
pub fn get_event_id(&self) -> &Option<String>
The event ID to upload.
sourcepub fn event_type_name(self, input: impl Into<String>) -> Self
pub fn event_type_name(self, input: impl Into<String>) -> Self
The event type name of the event.
This field is required.sourcepub fn set_event_type_name(self, input: Option<String>) -> Self
pub fn set_event_type_name(self, input: Option<String>) -> Self
The event type name of the event.
sourcepub fn get_event_type_name(&self) -> &Option<String>
pub fn get_event_type_name(&self) -> &Option<String>
The event type name of the event.
sourcepub fn event_timestamp(self, input: impl Into<String>) -> Self
pub fn event_timestamp(self, input: impl Into<String>) -> Self
The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
This field is required.sourcepub fn set_event_timestamp(self, input: Option<String>) -> Self
pub fn set_event_timestamp(self, input: Option<String>) -> Self
The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
sourcepub fn get_event_timestamp(&self) -> &Option<String>
pub fn get_event_timestamp(&self) -> &Option<String>
The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
sourcepub fn event_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn event_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to event_variables
.
To override the contents of this collection use set_event_variables
.
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
sourcepub fn set_event_variables(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_event_variables(self, input: Option<HashMap<String, String>>) -> Self
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
sourcepub fn get_event_variables(&self) -> &Option<HashMap<String, String>>
pub fn get_event_variables(&self) -> &Option<HashMap<String, String>>
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
sourcepub fn assigned_label(self, input: impl Into<String>) -> Self
pub fn assigned_label(self, input: impl Into<String>) -> Self
The label to associate with the event. Required if specifying labelTimestamp
.
sourcepub fn set_assigned_label(self, input: Option<String>) -> Self
pub fn set_assigned_label(self, input: Option<String>) -> Self
The label to associate with the event. Required if specifying labelTimestamp
.
sourcepub fn get_assigned_label(&self) -> &Option<String>
pub fn get_assigned_label(&self) -> &Option<String>
The label to associate with the event. Required if specifying labelTimestamp
.
sourcepub fn label_timestamp(self, input: impl Into<String>) -> Self
pub fn label_timestamp(self, input: impl Into<String>) -> Self
The timestamp associated with the label. Required if specifying assignedLabel
.
sourcepub fn set_label_timestamp(self, input: Option<String>) -> Self
pub fn set_label_timestamp(self, input: Option<String>) -> Self
The timestamp associated with the label. Required if specifying assignedLabel
.
sourcepub fn get_label_timestamp(&self) -> &Option<String>
pub fn get_label_timestamp(&self) -> &Option<String>
The timestamp associated with the label. Required if specifying assignedLabel
.
sourcepub fn entities(self, input: Entity) -> Self
pub fn entities(self, input: Entity) -> Self
Appends an item to entities
.
To override the contents of this collection use set_entities
.
An array of entities.
sourcepub fn set_entities(self, input: Option<Vec<Entity>>) -> Self
pub fn set_entities(self, input: Option<Vec<Entity>>) -> Self
An array of entities.
sourcepub fn get_entities(&self) -> &Option<Vec<Entity>>
pub fn get_entities(&self) -> &Option<Vec<Entity>>
An array of entities.
sourcepub fn build(self) -> Result<SendEventInput, BuildError>
pub fn build(self) -> Result<SendEventInput, BuildError>
Consumes the builder and constructs a SendEventInput
.
source§impl SendEventInputBuilder
impl SendEventInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SendEventOutput, SdkError<SendEventError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SendEventOutput, SdkError<SendEventError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SendEventInputBuilder
impl Clone for SendEventInputBuilder
source§fn clone(&self) -> SendEventInputBuilder
fn clone(&self) -> SendEventInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SendEventInputBuilder
impl Debug for SendEventInputBuilder
source§impl Default for SendEventInputBuilder
impl Default for SendEventInputBuilder
source§fn default() -> SendEventInputBuilder
fn default() -> SendEventInputBuilder
source§impl PartialEq for SendEventInputBuilder
impl PartialEq for SendEventInputBuilder
source§fn eq(&self, other: &SendEventInputBuilder) -> bool
fn eq(&self, other: &SendEventInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.