/* * 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 monitoring-2010-08-01.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.CloudWatch.Model { /// /// Represents the history of a specific alarm. /// public partial class AlarmHistoryItem { private string _alarmName; private AlarmType _alarmType; private string _historyData; private HistoryItemType _historyItemType; private string _historySummary; private DateTime? _timestamp; /// /// Gets and sets the property AlarmName. /// /// The descriptive name for the alarm. /// /// [AWSProperty(Min=1, Max=255)] public string AlarmName { get { return this._alarmName; } set { this._alarmName = value; } } // Check to see if AlarmName property is set internal bool IsSetAlarmName() { return this._alarmName != null; } /// /// Gets and sets the property AlarmType. /// /// The type of alarm, either metric alarm or composite alarm. /// /// public AlarmType AlarmType { get { return this._alarmType; } set { this._alarmType = value; } } // Check to see if AlarmType property is set internal bool IsSetAlarmType() { return this._alarmType != null; } /// /// Gets and sets the property HistoryData. /// /// Data about the alarm, in JSON format. /// /// [AWSProperty(Min=1, Max=4095)] public string HistoryData { get { return this._historyData; } set { this._historyData = value; } } // Check to see if HistoryData property is set internal bool IsSetHistoryData() { return this._historyData != null; } /// /// Gets and sets the property HistoryItemType. /// /// The type of alarm history item. /// /// public HistoryItemType HistoryItemType { get { return this._historyItemType; } set { this._historyItemType = value; } } // Check to see if HistoryItemType property is set internal bool IsSetHistoryItemType() { return this._historyItemType != null; } /// /// Gets and sets the property HistorySummary. /// /// A summary of the alarm history, in text format. /// /// [AWSProperty(Min=1, Max=255)] public string HistorySummary { get { return this._historySummary; } set { this._historySummary = value; } } // Check to see if HistorySummary property is set internal bool IsSetHistorySummary() { return this._historySummary != null; } /// /// Gets and sets the property Timestamp. /// /// The time stamp for the alarm history item. /// /// public DateTime Timestamp { get { return this._timestamp.GetValueOrDefault(); } set { this._timestamp = value; } } // Check to see if Timestamp property is set internal bool IsSetTimestamp() { return this._timestamp.HasValue; } } }