/* * 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 { /// /// The event details. /// public partial class Event { private string _currentLabel; 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 CurrentLabel. /// /// The label associated with the event. /// /// public string CurrentLabel { get { return this._currentLabel; } set { this._currentLabel = value; } } // Check to see if CurrentLabel property is set internal bool IsSetCurrentLabel() { return this._currentLabel != null; } /// /// Gets and sets the property Entities. /// /// The event entities. /// /// 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. /// /// 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. /// /// 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. /// /// 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. /// /// 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 to update. The timestamp must be specified /// using ISO 8601 standard in UTC. /// /// 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; } } }