/*
* 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
{
///
/// Basic details used in creating a response plan. The response plan is then used to
/// create an incident record.
///
public partial class IncidentTemplate
{
private string _dedupeString;
private int? _impact;
private Dictionary _incidentTags = new Dictionary();
private List _notificationTargets = new List();
private string _summary;
private string _title;
///
/// Gets and sets the property DedupeString.
///
/// Used to stop Incident Manager from creating multiple incident records for the same
/// incident.
///
///
[AWSProperty(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 your 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 IncidentTags.
///
/// Tags to assign to the template. When the StartIncident
API action is
/// called, Incident Manager assigns the tags specified in the template to the incident.
///
///
[AWSProperty(Min=1, Max=50)]
public Dictionary IncidentTags
{
get { return this._incidentTags; }
set { this._incidentTags = value; }
}
// Check to see if IncidentTags property is set
internal bool IsSetIncidentTags()
{
return this._incidentTags != null && this._incidentTags.Count > 0;
}
///
/// 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 Summary.
///
/// The summary of the incident. The summary is a brief synopsis of what occurred, what's
/// currently happening, and context.
///
///
[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;
}
}
}