/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the frauddetector-2019-11-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.FraudDetector.Model { /// /// Container for the parameters to the SendEvent operation. /// Stores events in Amazon Fraud Detector without generating fraud predictions for those /// events. For example, you can use SendEvent to upload a historical dataset, /// which you can then later use to train a model. /// public partial class SendEventRequest : AmazonFraudDetectorRequest { private string _assignedLabel; private List _entities = new List(); private string _eventId; private string _eventTimestamp; private string _eventTypeName; private Dictionary _eventVariables = new Dictionary(); private string _labelTimestamp; /// /// Gets and sets the property AssignedLabel. /// /// The label to associate with the event. Required if specifying labelTimestamp. /// /// [AWSProperty(Min=1, Max=64)] public string AssignedLabel { get { return this._assignedLabel; } set { this._assignedLabel = value; } } // Check to see if AssignedLabel property is set internal bool IsSetAssignedLabel() { return this._assignedLabel != null; } /// /// Gets and sets the property Entities. /// /// An array of entities. /// /// [AWSProperty(Required=true)] public List Entities { get { return this._entities; } set { this._entities = value; } } // Check to see if Entities property is set internal bool IsSetEntities() { return this._entities != null && this._entities.Count > 0; } /// /// Gets and sets the property EventId. /// /// The event ID to upload. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string EventId { get { return this._eventId; } set { this._eventId = value; } } // Check to see if EventId property is set internal bool IsSetEventId() { return this._eventId != null; } /// /// Gets and sets the property EventTimestamp. /// /// The timestamp that defines when the event under evaluation occurred. The timestamp /// must be specified using ISO 8601 standard in UTC. /// /// [AWSProperty(Required=true, Min=10, Max=30)] public string EventTimestamp { get { return this._eventTimestamp; } set { this._eventTimestamp = value; } } // Check to see if EventTimestamp property is set internal bool IsSetEventTimestamp() { return this._eventTimestamp != null; } /// /// Gets and sets the property EventTypeName. /// /// The event type name of the event. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string EventTypeName { get { return this._eventTypeName; } set { this._eventTypeName = value; } } // Check to see if EventTypeName property is set internal bool IsSetEventTypeName() { return this._eventTypeName != null; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Required=true, Min=1)] public Dictionary EventVariables { get { return this._eventVariables; } set { this._eventVariables = value; } } // Check to see if EventVariables property is set internal bool IsSetEventVariables() { return this._eventVariables != null && this._eventVariables.Count > 0; } /// /// Gets and sets the property LabelTimestamp. /// /// The timestamp associated with the label. Required if specifying assignedLabel. /// /// [AWSProperty(Min=10, Max=30)] public string LabelTimestamp { get { return this._labelTimestamp; } set { this._labelTimestamp = value; } } // Check to see if LabelTimestamp property is set internal bool IsSetLabelTimestamp() { return this._labelTimestamp != null; } } }