/*
* 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 personalize-events-2018-03-22.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.PersonalizeEvents.Model
{
///
/// Container for the parameters to the PutEvents operation.
/// Records user interaction event data. For more information see Recording
/// Events.
///
public partial class PutEventsRequest : AmazonPersonalizeEventsRequest
{
private List _eventList = new List();
private string _sessionId;
private string _trackingId;
private string _userId;
///
/// Gets and sets the property EventList.
///
/// A list of event data from the session.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List EventList
{
get { return this._eventList; }
set { this._eventList = value; }
}
// Check to see if EventList property is set
internal bool IsSetEventList()
{
return this._eventList != null && this._eventList.Count > 0;
}
///
/// Gets and sets the property SessionId.
///
/// The session ID associated with the user's visit. Your application generates the sessionId
/// when a user first visits your website or uses your application. Amazon Personalize
/// uses the sessionId to associate events with the user before they log in. For more
/// information, see Recording
/// Events.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string SessionId
{
get { return this._sessionId; }
set { this._sessionId = value; }
}
// Check to see if SessionId property is set
internal bool IsSetSessionId()
{
return this._sessionId != null;
}
///
/// Gets and sets the property TrackingId.
///
/// The tracking ID for the event. The ID is generated by a call to the CreateEventTracker
/// API.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string TrackingId
{
get { return this._trackingId; }
set { this._trackingId = value; }
}
// Check to see if TrackingId property is set
internal bool IsSetTrackingId()
{
return this._trackingId != null;
}
///
/// Gets and sets the property UserId.
///
/// The user associated with the event.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=256)]
public string UserId
{
get { return this._userId; }
set { this._userId = value; }
}
// Check to see if UserId property is set
internal bool IsSetUserId()
{
return this._userId != null;
}
}
}