//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: IPS_AlarmClockOccurrence.cs // // Contents: IPS_AlarmClockOccurrence represents a single alarm clock setting. An instance of this class is created by calling AMT_AlarmClockService.AddAlarm method. // This file was automatically generated from IPS_AlarmClockOccurrence.mof // //---------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Globalization; using System.Xml.Serialization; using System.IO; using Intel.Manageability.WSManagement; using Intel.Manageability.Cim.Untyped; namespace Intel.Manageability.Cim.Typed { /// ///IPS_AlarmClockOccurrence represents a single alarm clock setting. An instance of this class is created by calling AMT_AlarmClockService.AddAlarm method. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_AlarmClockOccurrence")] [System.Xml.Serialization.XmlRootAttribute("IPS_AlarmClockOccurrence", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_AlarmClockOccurrence", IsNullable=false)] public class IPS_AlarmClockOccurrence : CIM_ManagedElement { /// /// Default constructor. /// public IPS_AlarmClockOccurrence() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public IPS_AlarmClockOccurrence(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public IPS_AlarmClockOccurrence(IWSManClient client): base(client) { } /// /// Remove DeleteOnCompletion field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveDeleteOnCompletion() { RemoveField("DeleteOnCompletion"); } /// /// Is true if the field DeleteOnCompletion exists in the current object, /// otherwise is false. /// public virtual bool DeleteOnCompletionExist { get { return ContainsField("DeleteOnCompletion"); } } /// /// Optional, if set to TRUE, the instance will be deleted by the FW when the alarm is completed. Otherwise, the SW can delete the instance using the Delete() method. /// [CimField(false, false)] public virtual bool DeleteOnCompletion { get { return bool.Parse(this["DeleteOnCompletion"][0]); } set { this.SetOrAddField("DeleteOnCompletion",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Key, Required, The instance key, set by the caller of AMT_AlarmClockService.AddAlarm. /// [CimField(true, true)] public virtual string InstanceID { get { return this.GetField("InstanceID")[0]; } set { this.SetOrAddField("InstanceID",value); } } /// /// Remove Interval field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveInterval() { RemoveField("Interval"); } /// /// Is true if the field Interval exists in the current object, /// otherwise is false. /// public virtual bool IntervalExist { get { return ContainsField("Interval"); } } /// /// Optional, The interval between occurrences of the alarm (0 if the alarm is scheduled to run once). /// [CimField(false, false)] public virtual CimDateTime Interval { get { return CimDateTime.Parse(this["Interval"][0]); } set { this.SetOrAddField("Interval",value.ToString()); } } /// /// Remove StartTime field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveStartTime() { RemoveField("StartTime"); } /// /// Is true if the field StartTime exists in the current object, /// otherwise is false. /// public virtual bool StartTimeExist { get { return ContainsField("StartTime"); } } /// /// Optional, The next time when the alarm is scheduled to be set. /// [CimField(false, false)] public virtual CimDateTime StartTime { get { return CimDateTime.Parse(this["StartTime"][0]); } set { this.SetOrAddField("StartTime",value.ToString()); } } /// /// Enumerate instances of IPS_AlarmClockOccurrence class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of IPS_AlarmClockOccurrence objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of IPS_AlarmClockOccurrence class at an endpoint. /// /// WS-Management client /// Collection of IPS_AlarmClockOccurrence objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of IPS_AlarmClockOccurrence if it is singular. /// Note: This method will succeed only if a single instance of the class exists. /// /// WS-Management client public static new void Delete(IWSManClient client) { CimBase.Delete(client); } /// /// Represents the keys of the IPS_AlarmClockOccurrence class. /// public new class CimKeys : CIM_ManagedElement.CimKeys { /// /// Key, Required, The instance key, set by the caller of AMT_AlarmClockService.AddAlarm. /// public virtual string InstanceID { get { return GetKey("InstanceID"); } set { SetOrAddKey("InstanceID", value); } } } } }