/*
* 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 UpdateTimelineEvent operation.
/// Updates a timeline event. You can update events of type Custom Event
.
///
public partial class UpdateTimelineEventRequest : AmazonSSMIncidentsRequest
{
private string _clientToken;
private string _eventData;
private string _eventId;
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 operation 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(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 event to update. You can use ListTimelineEvents
to find
/// an event's ID.
///
///
[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.
///
/// Updates all existing references in a 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 that resource. For example, to specify an Amazon DynamoDB (DynamoDB)
/// table as a resource, use its ARN. You can also specify an Amazon CloudWatch metric
/// associated with the DynamoDB table as a related item.
///
///
///
/// This update action overrides all existing references. If you want to keep existing
/// references, you must specify them in the call. If you don't, this action removes any
/// existing references and enters only new references.
///
///
///
[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.
///
///
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 update events of type Custom Event
.
///
///
[AWSProperty(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 that includes the timeline event.
///
///
[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;
}
}
}