//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: AMT_SNMPEventSubscriber.cs
//
// Contents: Represents a SNMP-events subscriber in the Intel(R) AMT system.
// This file was automatically generated from AMT_SNMPEventSubscriber.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
{
///
///Represents a SNMP-events subscriber in the Intel(R) AMT system.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_SNMPEventSubscriber")]
[System.Xml.Serialization.XmlRootAttribute("AMT_SNMPEventSubscriber", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_SNMPEventSubscriber", IsNullable=false)]
public class AMT_SNMPEventSubscriber : AMT_EventSubscriber
{
///
/// Default constructor.
///
public AMT_SNMPEventSubscriber() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public AMT_SNMPEventSubscriber(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public AMT_SNMPEventSubscriber(IWSManClient client): base(client)
{
}
///
/// Required, Access and/or addressing information for a remote connection. This can be a host name, network address or similar information.
///
[CimField(false, true)]
public override string AccessInfo
{
get
{
return this.GetField("AccessInfo")[0];
}
set
{
this.SetOrAddField("AccessInfo",value);
}
}
///
/// Remove CommunityString field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveCommunityString()
{
RemoveField("CommunityString");
}
///
/// Is true if the field CommunityString exists in the current object,
/// otherwise is false.
///
public virtual bool CommunityStringExist
{
get
{
return ContainsField("CommunityString");
}
}
///
/// Optional, A community string to send with the trap operation.
///
[CimField(false, false)]
public virtual string CommunityString
{
get
{
return this.GetField("CommunityString")[0];
}
set
{
this.SetOrAddField("CommunityString",value);
}
}
///
/// Required, Associates a Subscription to its filter.
///
[CimField(false, true)]
public virtual byte PolicyID
{
get
{
return byte.Parse(this["PolicyID"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("PolicyID",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Enumerate instances of AMT_SNMPEventSubscriber class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of AMT_SNMPEventSubscriber objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of AMT_SNMPEventSubscriber class at an endpoint.
///
/// WS-Management client
/// Collection of AMT_SNMPEventSubscriber objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of AMT_SNMPEventSubscriber 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 AMT_SNMPEventSubscriber class.
///
public new class CimKeys : AMT_EventSubscriber.CimKeys
{
}
}
}