/*
* 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 GetEventPrediction operation.
/// Evaluates an event against a detector version. If a version ID is not provided, the
/// detector’s (ACTIVE
) version is used.
///
public partial class GetEventPredictionRequest : AmazonFraudDetectorRequest
{
private string _detectorId;
private string _detectorVersionId;
private List _entities = new List();
private string _eventId;
private string _eventTimestamp;
private string _eventTypeName;
private Dictionary _eventVariables = new Dictionary();
private Dictionary _externalModelEndpointDataBlobs = new Dictionary();
///
/// Gets and sets the property DetectorId.
///
/// The detector ID.
///
///
[AWSProperty(Required=true)]
public string DetectorId
{
get { return this._detectorId; }
set { this._detectorId = value; }
}
// Check to see if DetectorId property is set
internal bool IsSetDetectorId()
{
return this._detectorId != null;
}
///
/// Gets and sets the property DetectorVersionId.
///
/// The detector version ID.
///
///
[AWSProperty(Min=1, Max=5)]
public string DetectorVersionId
{
get { return this._detectorVersionId; }
set { this._detectorVersionId = value; }
}
// Check to see if DetectorVersionId property is set
internal bool IsSetDetectorVersionId()
{
return this._detectorVersionId != null;
}
///
/// Gets and sets the property Entities.
///
/// The entity type (associated with the detector's event type) and specific entity ID
/// representing who performed the event. If an entity id is not available, use "UNKNOWN."
///
///
[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 unique ID used to identify the event.
///
///
[AWSProperty(Required=true)]
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.
///
/// 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 associated with the detector specified for the prediction.
///
///
[AWSProperty(Required=true)]
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.
///
///
///
/// You must provide at least one eventVariable
///
///
///
/// To ensure most accurate fraud prediction and to simplify your data preparation, Amazon
/// Fraud Detector will replace all missing variables or values as follows:
///
///
///
/// For Amazon Fraud Detector trained models:
///
///
///
/// If a null value is provided explicitly for a variable or if a variable is missing,
/// model will replace the null value or the missing variable (no variable name in the
/// eventVariables map) with calculated default mean/medians for numeric variables and
/// with special values for categorical variables.
///
///
///
/// For imported SageMaker models:
///
///
///
/// If a null value is provided explicitly for a variable, the model and rules will use
/// “null” as the value. If a variable is not provided (no variable name in the eventVariables
/// map), model and rules will use the default value that is provided for the variable.
///
///
///
[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 ExternalModelEndpointDataBlobs.
///
/// The Amazon SageMaker model endpoint input data blobs.
///
///
[AWSProperty(Sensitive=true)]
public Dictionary ExternalModelEndpointDataBlobs
{
get { return this._externalModelEndpointDataBlobs; }
set { this._externalModelEndpointDataBlobs = value; }
}
// Check to see if ExternalModelEndpointDataBlobs property is set
internal bool IsSetExternalModelEndpointDataBlobs()
{
return this._externalModelEndpointDataBlobs != null && this._externalModelEndpointDataBlobs.Count > 0;
}
}
}