/* * 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 { /// /// Container for the parameters to the CreateTimelineEvent operation. /// Creates a custom timeline event on the incident details page of an incident record. /// Incident Manager automatically creates timeline events that mark key moments during /// an incident. You can create custom timeline events to mark important events that Incident /// Manager can detect automatically. /// public partial class CreateTimelineEventRequest : AmazonSSMIncidentsRequest { private string _clientToken; private string _eventData; private List _eventReferences = new List(); private DateTime? _eventTime; private string _eventType; private string _incidentRecordArn; /// /// Gets and sets the property ClientToken. /// /// A token that ensures that a client calls the action only once with the specified details. /// /// [AWSProperty(Min=0, Max=128)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// /// 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 EventReferences. /// /// Adds one or more references to the TimelineEvent. A reference is an Amazon /// Web Services resource involved or associated with the incident. To specify a reference, /// enter its Amazon Resource Name (ARN). You can also specify a related item associated /// with a resource. For example, to specify an Amazon DynamoDB (DynamoDB) table as a /// resource, use the table's ARN. You can also specify an Amazon CloudWatch metric associated /// with the DynamoDB table as a related item. /// /// [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. You can create timeline events of type Custom Event. /// /// [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 IncidentRecordArn. /// /// The Amazon Resource Name (ARN) of the incident record that the action adds the incident /// to. /// /// [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; } } }