/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FraudDetector { namespace Model { /** *

The event details.

See Also:

AWS * API Reference

*/ class Event { public: AWS_FRAUDDETECTOR_API Event(); AWS_FRAUDDETECTOR_API Event(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API Event& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The event ID.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

The event ID.

*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *

The event ID.

*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *

The event ID.

*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *

The event ID.

*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *

The event ID.

*/ inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

The event ID.

*/ inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

The event ID.

*/ inline Event& WithEventId(const char* value) { SetEventId(value); return *this;} /** *

The event type.

*/ inline const Aws::String& GetEventTypeName() const{ return m_eventTypeName; } /** *

The event type.

*/ inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; } /** *

The event type.

*/ inline void SetEventTypeName(const Aws::String& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = value; } /** *

The event type.

*/ inline void SetEventTypeName(Aws::String&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::move(value); } /** *

The event type.

*/ inline void SetEventTypeName(const char* value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName.assign(value); } /** *

The event type.

*/ inline Event& WithEventTypeName(const Aws::String& value) { SetEventTypeName(value); return *this;} /** *

The event type.

*/ inline Event& WithEventTypeName(Aws::String&& value) { SetEventTypeName(std::move(value)); return *this;} /** *

The event type.

*/ inline Event& WithEventTypeName(const char* value) { SetEventTypeName(value); return *this;} /** *

The timestamp that defines when the event under evaluation occurred. The * timestamp must be specified using ISO 8601 standard in UTC.

*/ inline const Aws::String& GetEventTimestamp() const{ return m_eventTimestamp; } /** *

The timestamp that defines when the event under evaluation occurred. The * timestamp must be specified using ISO 8601 standard in UTC.

*/ inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; } /** *

The timestamp that defines when the event under evaluation occurred. The * timestamp must be specified using ISO 8601 standard in UTC.

*/ inline void SetEventTimestamp(const Aws::String& value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp = value; } /** *

The timestamp that defines when the event under evaluation occurred. The * timestamp must be specified using ISO 8601 standard in UTC.

*/ inline void SetEventTimestamp(Aws::String&& value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp = std::move(value); } /** *

The timestamp that defines when the event under evaluation occurred. The * timestamp must be specified using ISO 8601 standard in UTC.

*/ inline void SetEventTimestamp(const char* value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp.assign(value); } /** *

The timestamp that defines when the event under evaluation occurred. The * timestamp must be specified using ISO 8601 standard in UTC.

*/ inline Event& WithEventTimestamp(const Aws::String& value) { SetEventTimestamp(value); return *this;} /** *

The timestamp that defines when the event under evaluation occurred. The * timestamp must be specified using ISO 8601 standard in UTC.

*/ inline Event& WithEventTimestamp(Aws::String&& value) { SetEventTimestamp(std::move(value)); return *this;} /** *

The timestamp that defines when the event under evaluation occurred. The * timestamp must be specified using ISO 8601 standard in UTC.

*/ inline Event& WithEventTimestamp(const char* value) { SetEventTimestamp(value); return *this;} /** *

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.

*/ inline const Aws::Map& GetEventVariables() const{ return m_eventVariables; } /** *

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.

*/ inline bool EventVariablesHasBeenSet() const { return m_eventVariablesHasBeenSet; } /** *

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.

*/ inline void SetEventVariables(const Aws::Map& value) { m_eventVariablesHasBeenSet = true; m_eventVariables = value; } /** *

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.

*/ inline void SetEventVariables(Aws::Map&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables = std::move(value); } /** *

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.

*/ inline Event& WithEventVariables(const Aws::Map& value) { SetEventVariables(value); return *this;} /** *

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.

*/ inline Event& WithEventVariables(Aws::Map&& value) { SetEventVariables(std::move(value)); return *this;} /** *

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.

*/ inline Event& AddEventVariables(const Aws::String& key, const Aws::String& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, value); return *this; } /** *

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.

*/ inline Event& AddEventVariables(Aws::String&& key, const Aws::String& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline Event& AddEventVariables(const Aws::String& key, Aws::String&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline Event& AddEventVariables(Aws::String&& key, Aws::String&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::move(key), std::move(value)); return *this; } /** *

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.

*/ inline Event& AddEventVariables(const char* key, Aws::String&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline Event& AddEventVariables(Aws::String&& key, const char* value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline Event& AddEventVariables(const char* key, const char* value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, value); return *this; } /** *

The label associated with the event.

*/ inline const Aws::String& GetCurrentLabel() const{ return m_currentLabel; } /** *

The label associated with the event.

*/ inline bool CurrentLabelHasBeenSet() const { return m_currentLabelHasBeenSet; } /** *

The label associated with the event.

*/ inline void SetCurrentLabel(const Aws::String& value) { m_currentLabelHasBeenSet = true; m_currentLabel = value; } /** *

The label associated with the event.

*/ inline void SetCurrentLabel(Aws::String&& value) { m_currentLabelHasBeenSet = true; m_currentLabel = std::move(value); } /** *

The label associated with the event.

*/ inline void SetCurrentLabel(const char* value) { m_currentLabelHasBeenSet = true; m_currentLabel.assign(value); } /** *

The label associated with the event.

*/ inline Event& WithCurrentLabel(const Aws::String& value) { SetCurrentLabel(value); return *this;} /** *

The label associated with the event.

*/ inline Event& WithCurrentLabel(Aws::String&& value) { SetCurrentLabel(std::move(value)); return *this;} /** *

The label associated with the event.

*/ inline Event& WithCurrentLabel(const char* value) { SetCurrentLabel(value); return *this;} /** *

The timestamp associated with the label to update. The timestamp must be * specified using ISO 8601 standard in UTC.

*/ inline const Aws::String& GetLabelTimestamp() const{ return m_labelTimestamp; } /** *

The timestamp associated with the label to update. The timestamp must be * specified using ISO 8601 standard in UTC.

*/ inline bool LabelTimestampHasBeenSet() const { return m_labelTimestampHasBeenSet; } /** *

The timestamp associated with the label to update. The timestamp must be * specified using ISO 8601 standard in UTC.

*/ inline void SetLabelTimestamp(const Aws::String& value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp = value; } /** *

The timestamp associated with the label to update. The timestamp must be * specified using ISO 8601 standard in UTC.

*/ inline void SetLabelTimestamp(Aws::String&& value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp = std::move(value); } /** *

The timestamp associated with the label to update. The timestamp must be * specified using ISO 8601 standard in UTC.

*/ inline void SetLabelTimestamp(const char* value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp.assign(value); } /** *

The timestamp associated with the label to update. The timestamp must be * specified using ISO 8601 standard in UTC.

*/ inline Event& WithLabelTimestamp(const Aws::String& value) { SetLabelTimestamp(value); return *this;} /** *

The timestamp associated with the label to update. The timestamp must be * specified using ISO 8601 standard in UTC.

*/ inline Event& WithLabelTimestamp(Aws::String&& value) { SetLabelTimestamp(std::move(value)); return *this;} /** *

The timestamp associated with the label to update. The timestamp must be * specified using ISO 8601 standard in UTC.

*/ inline Event& WithLabelTimestamp(const char* value) { SetLabelTimestamp(value); return *this;} /** *

The event entities.

*/ inline const Aws::Vector& GetEntities() const{ return m_entities; } /** *

The event entities.

*/ inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; } /** *

The event entities.

*/ inline void SetEntities(const Aws::Vector& value) { m_entitiesHasBeenSet = true; m_entities = value; } /** *

The event entities.

*/ inline void SetEntities(Aws::Vector&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); } /** *

The event entities.

*/ inline Event& WithEntities(const Aws::Vector& value) { SetEntities(value); return *this;} /** *

The event entities.

*/ inline Event& WithEntities(Aws::Vector&& value) { SetEntities(std::move(value)); return *this;} /** *

The event entities.

*/ inline Event& AddEntities(const Entity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; } /** *

The event entities.

*/ inline Event& AddEntities(Entity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; } private: Aws::String m_eventId; bool m_eventIdHasBeenSet = false; Aws::String m_eventTypeName; bool m_eventTypeNameHasBeenSet = false; Aws::String m_eventTimestamp; bool m_eventTimestampHasBeenSet = false; Aws::Map m_eventVariables; bool m_eventVariablesHasBeenSet = false; Aws::String m_currentLabel; bool m_currentLabelHasBeenSet = false; Aws::String m_labelTimestamp; bool m_labelTimestampHasBeenSet = false; Aws::Vector m_entities; bool m_entitiesHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws