/* * 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 ssm-incidents-2018-05-10.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.SSMIncidents.Model { /// /// A significant event that happened during the incident. /// public partial class TimelineEvent { private string _eventData; private string _eventId; private List _eventReferences = new List(); private DateTime? _eventTime; private string _eventType; private DateTime? _eventUpdatedTime; private string _incidentRecordArn; /// /// Gets and sets the property EventData. /// /// A short description of the event. /// /// [AWSProperty(Required=true, Min=0, Max=12000)] public string EventData { get { return this._eventData; } set { this._eventData = value; } } // Check to see if EventData property is set internal bool IsSetEventData() { return this._eventData != null; } /// /// Gets and sets the property EventId. /// /// The ID of the timeline event. /// /// [AWSProperty(Required=true, Min=0, Max=50)] 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 EventReferences. /// /// A list of references in a TimelineEvent. /// /// [AWSProperty(Min=0, Max=10)] public List EventReferences { get { return this._eventReferences; } set { this._eventReferences = value; } } // Check to see if EventReferences property is set internal bool IsSetEventReferences() { return this._eventReferences != null && this._eventReferences.Count > 0; } /// /// Gets and sets the property EventTime. /// /// The time that the event occurred. /// /// [AWSProperty(Required=true)] 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 EventType. /// /// The type of event that occurred. Currently Incident Manager supports only the Custom /// Event type. /// /// [AWSProperty(Required=true, Min=0, Max=100)] public string EventType { get { return this._eventType; } set { this._eventType = value; } } // Check to see if EventType property is set internal bool IsSetEventType() { return this._eventType != null; } /// /// Gets and sets the property EventUpdatedTime. /// /// The time that the timeline event was last updated. /// /// [AWSProperty(Required=true)] public DateTime EventUpdatedTime { get { return this._eventUpdatedTime.GetValueOrDefault(); } set { this._eventUpdatedTime = value; } } // Check to see if EventUpdatedTime property is set internal bool IsSetEventUpdatedTime() { return this._eventUpdatedTime.HasValue; } /// /// Gets and sets the property IncidentRecordArn. /// /// The Amazon Resource Name (ARN) of the incident that the event occurred during. /// /// [AWSProperty(Required=true, Min=0, Max=1000)] public string IncidentRecordArn { get { return this._incidentRecordArn; } set { this._incidentRecordArn = value; } } // Check to see if IncidentRecordArn property is set internal bool IsSetIncidentRecordArn() { return this._incidentRecordArn != null; } } }