/*
* 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 iotevents-data-2018-10-23.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.IoTEventsData.Model
{
///
/// Contains information about the current state of the alarm.
///
public partial class AlarmState
{
private CustomerAction _customerAction;
private RuleEvaluation _ruleEvaluation;
private AlarmStateName _stateName;
private SystemEvent _systemEvent;
///
/// Gets and sets the property CustomerAction.
///
/// Contains information about the action that you can take to respond to the alarm.
///
///
public CustomerAction CustomerAction
{
get { return this._customerAction; }
set { this._customerAction = value; }
}
// Check to see if CustomerAction property is set
internal bool IsSetCustomerAction()
{
return this._customerAction != null;
}
///
/// Gets and sets the property RuleEvaluation.
///
/// Information needed to evaluate data.
///
///
public RuleEvaluation RuleEvaluation
{
get { return this._ruleEvaluation; }
set { this._ruleEvaluation = value; }
}
// Check to see if RuleEvaluation property is set
internal bool IsSetRuleEvaluation()
{
return this._ruleEvaluation != null;
}
///
/// Gets and sets the property StateName.
///
/// The name of the alarm state. The state name can be one of the following values:
///
/// -
///
///
DISABLED
- When the alarm is in the DISABLED
state, it
/// isn't ready to evaluate data. To enable the alarm, you must change the alarm to the
/// NORMAL
state.
///
/// -
///
///
NORMAL
- When the alarm is in the NORMAL
state, it's ready
/// to evaluate data.
///
/// -
///
///
ACTIVE
- If the alarm is in the ACTIVE
state, the alarm
/// is invoked.
///
/// -
///
///
ACKNOWLEDGED
- When the alarm is in the ACKNOWLEDGED
state,
/// the alarm was invoked and you acknowledged the alarm.
///
/// -
///
///
SNOOZE_DISABLED
- When the alarm is in the SNOOZE_DISABLED
/// state, the alarm is disabled for a specified period of time. After the snooze time,
/// the alarm automatically changes to the NORMAL
state.
///
/// -
///
///
LATCHED
- When the alarm is in the LATCHED
state, the alarm
/// was invoked. However, the data that the alarm is currently evaluating is within the
/// specified range. To change the alarm to the NORMAL
state, you must acknowledge
/// the alarm.
///
///
///
public AlarmStateName StateName
{
get { return this._stateName; }
set { this._stateName = value; }
}
// Check to see if StateName property is set
internal bool IsSetStateName()
{
return this._stateName != null;
}
///
/// Gets and sets the property SystemEvent.
///
/// Contains information about alarm state changes.
///
///
public SystemEvent SystemEvent
{
get { return this._systemEvent; }
set { this._systemEvent = value; }
}
// Check to see if SystemEvent property is set
internal bool IsSetSystemEvent()
{
return this._systemEvent != null;
}
}
}