/* * 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 gamelift-2015-10-01.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.GameLift.Model { /// /// Log entry describing an event that involves Amazon GameLift resources (such as a fleet). /// In addition to tracking activity, event codes and messages can provide additional /// information for troubleshooting and debugging problems. /// public partial class Event { private EventCode _eventCode; private string _eventId; private DateTime? _eventTime; private string _message; private string _preSignedLogUrl; private string _resourceId; /// /// Gets and sets the property EventCode. /// /// The type of event being logged. /// /// /// /// Fleet state transition events: /// /// /// /// Fleet creation events (ordered by fleet creation activity): /// /// /// /// VPC peering events: /// /// /// /// Spot instance events: /// /// /// /// Server process events: /// /// /// /// Game session events: /// /// /// /// Other fleet events: /// /// /// public EventCode EventCode { get { return this._eventCode; } set { this._eventCode = value; } } // Check to see if EventCode property is set internal bool IsSetEventCode() { return this._eventCode != null; } /// /// Gets and sets the property EventId. /// /// A unique identifier for a fleet event. /// /// [AWSProperty(Min=1, Max=1024)] 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 EventTime. /// /// Time stamp indicating when this event occurred. Format is a number expressed in Unix /// time as milliseconds (for example "1469498468.057"). /// /// public DateTime EventTime { get { return this._eventTime.GetValueOrDefault(); } set { this._eventTime = value; } } // Check to see if EventTime property is set internal bool IsSetEventTime() { return this._eventTime.HasValue; } /// /// Gets and sets the property Message. /// /// Additional information related to the event. /// /// [AWSProperty(Min=1)] public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// /// Gets and sets the property PreSignedLogUrl. /// /// Location of stored logs with additional detail that is related to the event. This /// is useful for debugging issues. The URL is valid for 15 minutes. You can also access /// fleet creation logs through the Amazon GameLift console. /// /// [AWSProperty(Min=1, Max=1024)] public string PreSignedLogUrl { get { return this._preSignedLogUrl; } set { this._preSignedLogUrl = value; } } // Check to see if PreSignedLogUrl property is set internal bool IsSetPreSignedLogUrl() { return this._preSignedLogUrl != null; } /// /// Gets and sets the property ResourceId. /// /// A unique identifier for an event resource, such as a fleet ID. /// /// [AWSProperty(Min=1, Max=1024)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } } }