//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_SettingsDefineState.cs
//
// Contents: SettingsDefineState is used to associate an instance of SettingData with an instance of ManagedElement. This association indicates that the SettingData instance provides additional information about the Current State of the associated ManagedElement. State is broadly defined to include the configuration, status, capabilities, and other information of an instance.
// Use of the same instance of SettingData to represent more than one of Current State (SettingsDefineState) and Desired State (ElementSettingData) and Possible State (SettingsDefineCapabilities) for a ManagedElement is not recommended.
// This file was automatically generated from CIM_SettingsDefineState.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
{
///
///SettingsDefineState is used to associate an instance of SettingData with an instance of ManagedElement. This association indicates that the SettingData instance provides additional information about the Current State of the associated ManagedElement. State is broadly defined to include the configuration, status, capabilities, and other information of an instance.
///Use of the same instance of SettingData to represent more than one of Current State (SettingsDefineState) and Desired State (ElementSettingData) and Possible State (SettingsDefineCapabilities) for a ManagedElement is not recommended.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SettingsDefineState")]
[System.Xml.Serialization.XmlRootAttribute("CIM_SettingsDefineState", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SettingsDefineState", IsNullable=false)]
public class CIM_SettingsDefineState : CimBase
{
///
/// Default constructor.
///
public CIM_SettingsDefineState() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_SettingsDefineState(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_SettingsDefineState(IWSManClient client): base(client)
{
}
///
/// Key, Required, The managed element.
///
[CimField(true, false)]
public virtual CimReference ManagedElement
{
get
{
string innerXML = this.GetField("ManagedElement")[0];
CimReference epr = new CimReference("ManagedElement", XmlNamespace, innerXML);
return epr;
}
set
{
this.SetOrAddField("ManagedElement",value.Serialize(false));
}
}
///
/// Key, Required, The SettingData object that provides additional information about the current state and configuration of the ManagedElement.
///
[CimField(true, false)]
public virtual CimReference SettingData
{
get
{
string innerXML = this.GetField("SettingData")[0];
CimReference epr = new CimReference("SettingData", XmlNamespace, innerXML);
return epr;
}
set
{
this.SetOrAddField("SettingData",value.Serialize(false));
}
}
///
/// Enumerate instances of CIM_SettingsDefineState class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_SettingsDefineState objects
public static Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_SettingsDefineState class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_SettingsDefineState objects
public static Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_SettingsDefineState if it is singular.
/// Note: This method will succeed only if a single instance of the class exists.
///
/// WS-Management client
public static void Delete(IWSManClient client)
{
CimBase.Delete(client);
}
///
/// Represents the keys of the CIM_SettingsDefineState class.
///
public new class CimKeys : CimBase.CimKeys
{
///
/// Key, Required, The managed element.
///
public virtual CimReference ManagedElement
{
get
{
string innerXML = GetKey("ManagedElement");
CimReference epr = new CimReference("ManagedElement", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SettingsDefineState", innerXML);
return epr;
}
set
{
SetOrAddKey("ManagedElement", value);
}
}
///
/// Key, Required, The SettingData object that provides additional information about the current state and configuration of the ManagedElement.
///
public virtual CimReference SettingData
{
get
{
string innerXML = GetKey("SettingData");
CimReference epr = new CimReference("SettingData", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SettingsDefineState", innerXML);
return epr;
}
set
{
SetOrAddKey("SettingData", value);
}
}
}
}
}