/* * 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 { /// /// Details describing an incident record. /// public partial class IncidentRecordSummary { private string _arn; private DateTime? _creationTime; private int? _impact; private IncidentRecordSource _incidentRecordSource; private DateTime? _resolvedTime; private IncidentRecordStatus _status; private string _title; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the incident. /// /// [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 CreationTime. /// /// The time the incident was created. /// /// [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 Impact. /// /// Defines the impact to 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. /// /// What caused Incident Manager to create 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 ResolvedTime. /// /// The time the incident was resolved. /// /// 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 Title. /// /// The title of the incident. This value is either provided by the response plan or overwritten /// on creation. /// /// [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; } } }