/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace FraudDetector { namespace Model { /** */ class SendEventRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API SendEventRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SendEvent"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The event ID to upload.

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

The event ID to upload.

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

The event ID to upload.

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

The event ID to upload.

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

The event ID to upload.

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

The event ID to upload.

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

The event ID to upload.

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

The event ID to upload.

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

The event type name of the event.

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

The event type name of the event.

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

The event type name of the event.

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

The event type name of the event.

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

The event type name of the event.

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

The event type name of the event.

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

The event type name of the event.

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

The event type name of the event.

*/ inline SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& 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 SendEventRequest& AddEventVariables(const char* key, const char* value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, value); return *this; } /** *

The label to associate with the event. Required if specifying * labelTimestamp.

*/ inline const Aws::String& GetAssignedLabel() const{ return m_assignedLabel; } /** *

The label to associate with the event. Required if specifying * labelTimestamp.

*/ inline bool AssignedLabelHasBeenSet() const { return m_assignedLabelHasBeenSet; } /** *

The label to associate with the event. Required if specifying * labelTimestamp.

*/ inline void SetAssignedLabel(const Aws::String& value) { m_assignedLabelHasBeenSet = true; m_assignedLabel = value; } /** *

The label to associate with the event. Required if specifying * labelTimestamp.

*/ inline void SetAssignedLabel(Aws::String&& value) { m_assignedLabelHasBeenSet = true; m_assignedLabel = std::move(value); } /** *

The label to associate with the event. Required if specifying * labelTimestamp.

*/ inline void SetAssignedLabel(const char* value) { m_assignedLabelHasBeenSet = true; m_assignedLabel.assign(value); } /** *

The label to associate with the event. Required if specifying * labelTimestamp.

*/ inline SendEventRequest& WithAssignedLabel(const Aws::String& value) { SetAssignedLabel(value); return *this;} /** *

The label to associate with the event. Required if specifying * labelTimestamp.

*/ inline SendEventRequest& WithAssignedLabel(Aws::String&& value) { SetAssignedLabel(std::move(value)); return *this;} /** *

The label to associate with the event. Required if specifying * labelTimestamp.

*/ inline SendEventRequest& WithAssignedLabel(const char* value) { SetAssignedLabel(value); return *this;} /** *

The timestamp associated with the label. Required if specifying * assignedLabel.

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

The timestamp associated with the label. Required if specifying * assignedLabel.

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

The timestamp associated with the label. Required if specifying * assignedLabel.

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

The timestamp associated with the label. Required if specifying * assignedLabel.

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

The timestamp associated with the label. Required if specifying * assignedLabel.

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

The timestamp associated with the label. Required if specifying * assignedLabel.

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

The timestamp associated with the label. Required if specifying * assignedLabel.

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

The timestamp associated with the label. Required if specifying * assignedLabel.

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

An array of entities.

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

An array of entities.

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

An array of entities.

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

An array of entities.

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

An array of entities.

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

An array of entities.

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

An array of entities.

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

An array of entities.

*/ inline SendEventRequest& 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_assignedLabel; bool m_assignedLabelHasBeenSet = false; Aws::String m_labelTimestamp; bool m_labelTimestampHasBeenSet = false; Aws::Vector m_entities; bool m_entitiesHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws