/*
* 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
{
///
/// The record of the incident that's created when an incident occurs.
///
public partial class IncidentRecord
{
private string _arn;
private List _automationExecutions = new List();
private ChatChannel _chatChannel;
private DateTime? _creationTime;
private string _dedupeString;
private int? _impact;
private IncidentRecordSource _incidentRecordSource;
private string _lastModifiedBy;
private DateTime? _lastModifiedTime;
private List _notificationTargets = new List();
private DateTime? _resolvedTime;
private IncidentRecordStatus _status;
private string _summary;
private string _title;
///
/// Gets and sets the property Arn.
///
/// The Amazon Resource Name (ARN) of the incident record.
///
///
[AWSProperty(Required=true, Min=0, Max=1000)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property AutomationExecutions.
///
/// The runbook, or automation document, that's run at the beginning of the incident.
///
///
[AWSProperty(Min=0, Max=100)]
public List AutomationExecutions
{
get { return this._automationExecutions; }
set { this._automationExecutions = value; }
}
// Check to see if AutomationExecutions property is set
internal bool IsSetAutomationExecutions()
{
return this._automationExecutions != null && this._automationExecutions.Count > 0;
}
///
/// Gets and sets the property ChatChannel.
///
/// The chat channel used for collaboration during an incident.
///
///
public ChatChannel ChatChannel
{
get { return this._chatChannel; }
set { this._chatChannel = value; }
}
// Check to see if ChatChannel property is set
internal bool IsSetChatChannel()
{
return this._chatChannel != null;
}
///
/// Gets and sets the property CreationTime.
///
/// The time that Incident Manager created the incident record.
///
///
[AWSProperty(Required=true)]
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property DedupeString.
///
/// The string Incident Manager uses to prevent duplicate incidents from being created
/// by the same incident in the same account.
///
///
[AWSProperty(Required=true, Min=0, Max=1000)]
public string DedupeString
{
get { return this._dedupeString; }
set { this._dedupeString = value; }
}
// Check to see if DedupeString property is set
internal bool IsSetDedupeString()
{
return this._dedupeString != null;
}
///
/// Gets and sets the property Impact.
///
/// The impact of the incident on customers and applications.
///
///
[AWSProperty(Required=true, Min=1, Max=5)]
public int Impact
{
get { return this._impact.GetValueOrDefault(); }
set { this._impact = value; }
}
// Check to see if Impact property is set
internal bool IsSetImpact()
{
return this._impact.HasValue;
}
///
/// Gets and sets the property IncidentRecordSource.
///
/// Details about the action that started the incident.
///
///
[AWSProperty(Required=true)]
public IncidentRecordSource IncidentRecordSource
{
get { return this._incidentRecordSource; }
set { this._incidentRecordSource = value; }
}
// Check to see if IncidentRecordSource property is set
internal bool IsSetIncidentRecordSource()
{
return this._incidentRecordSource != null;
}
///
/// Gets and sets the property LastModifiedBy.
///
/// Who modified the incident most recently.
///
///
[AWSProperty(Required=true, Min=0, Max=1000)]
public string LastModifiedBy
{
get { return this._lastModifiedBy; }
set { this._lastModifiedBy = value; }
}
// Check to see if LastModifiedBy property is set
internal bool IsSetLastModifiedBy()
{
return this._lastModifiedBy != null;
}
///
/// Gets and sets the property LastModifiedTime.
///
/// The time at which the incident was most recently modified.
///
///
[AWSProperty(Required=true)]
public DateTime LastModifiedTime
{
get { return this._lastModifiedTime.GetValueOrDefault(); }
set { this._lastModifiedTime = value; }
}
// Check to see if LastModifiedTime property is set
internal bool IsSetLastModifiedTime()
{
return this._lastModifiedTime.HasValue;
}
///
/// Gets and sets the property NotificationTargets.
///
/// The Amazon SNS targets that are notified when updates are made to an incident.
///
///
[AWSProperty(Min=0, Max=10)]
public List NotificationTargets
{
get { return this._notificationTargets; }
set { this._notificationTargets = value; }
}
// Check to see if NotificationTargets property is set
internal bool IsSetNotificationTargets()
{
return this._notificationTargets != null && this._notificationTargets.Count > 0;
}
///
/// Gets and sets the property ResolvedTime.
///
/// The time at which the incident was resolved. This appears as a timeline event.
///
///
public DateTime ResolvedTime
{
get { return this._resolvedTime.GetValueOrDefault(); }
set { this._resolvedTime = value; }
}
// Check to see if ResolvedTime property is set
internal bool IsSetResolvedTime()
{
return this._resolvedTime.HasValue;
}
///
/// Gets and sets the property Status.
///
/// The current status of the incident.
///
///
[AWSProperty(Required=true)]
public IncidentRecordStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Summary.
///
/// The summary of the incident. The summary is a brief synopsis of what occurred, what's
/// currently happening, and context of the incident.
///
///
[AWSProperty(Min=0, Max=8000)]
public string Summary
{
get { return this._summary; }
set { this._summary = value; }
}
// Check to see if Summary property is set
internal bool IsSetSummary()
{
return this._summary != null;
}
///
/// Gets and sets the property Title.
///
/// The title of the incident.
///
///
[AWSProperty(Required=true, Min=0, Max=200)]
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
}
}