deepakmits
Contributor
Contributor

not finding eventfilterspec.seteventtypeid method in vim25.jar downloaded from vmware ?

Hi , I am not finding "setEventTypeId" method API in EventFilterSpec class in vim25.jar . This jar I downloaded from Vmware site for SDK 5.1.

Has anybody encountered this issue earlier ? or I am doing something wrong ?

Thanks in advance.

I got below on decompiling this class -

package com.vmware.vim25;

import java.util.ArrayList;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;

import javax.xml.bind.annotation.XmlAccessorType;

import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)

@XmlType(name="EventFilterSpec", propOrder={"entity", "time", "userName", "eventChainId", "alarm", "scheduledTask", "disableFullMessage", "category", "type", "tag", "eventTypeId"})

public class EventFilterSpec extends DynamicData

{

  protected EventFilterSpecByEntity entity;

  protected EventFilterSpecByTime time;

  protected EventFilterSpecByUsername userName;

  protected Integer eventChainId;

  protected ManagedObjectReference alarm;

  protected ManagedObjectReference scheduledTask;

  protected Boolean disableFullMessage;

  protected List<String> category;

  protected List<String> type;

  protected List<String> tag;

  protected List<String> eventTypeId;

  public EventFilterSpecByEntity getEntity()

  {

    return this.entity;

  }

  public void setEntity(EventFilterSpecByEntity paramEventFilterSpecByEntity)

  {

    this.entity = paramEventFilterSpecByEntity;

  }

  public EventFilterSpecByTime getTime()

  {

    return this.time;

  }

  public void setTime(EventFilterSpecByTime paramEventFilterSpecByTime)

  {

    this.time = paramEventFilterSpecByTime;

  }

  public EventFilterSpecByUsername getUserName()

  {

    return this.userName;

  }

  public void setUserName(EventFilterSpecByUsername paramEventFilterSpecByUsername)

  {

    this.userName = paramEventFilterSpecByUsername;

  }

  public Integer getEventChainId()

  {

    return this.eventChainId;

  }

  public void setEventChainId(Integer paramInteger)

  {

    this.eventChainId = paramInteger;

  }

  public ManagedObjectReference getAlarm()

  {

    return this.alarm;

  }

  public void setAlarm(ManagedObjectReference paramManagedObjectReference)

  {

    this.alarm = paramManagedObjectReference;

  }

  public ManagedObjectReference getScheduledTask()

  {

    return this.scheduledTask;

  }

  public void setScheduledTask(ManagedObjectReference paramManagedObjectReference)

  {

    this.scheduledTask = paramManagedObjectReference;

  }

  public Boolean isDisableFullMessage()

  {

    return this.disableFullMessage;

  }

  public void setDisableFullMessage(Boolean paramBoolean)

  {

    this.disableFullMessage = paramBoolean;

  }

  public List<String> getCategory()

  {

    if (this.category == null) {

      this.category = new ArrayList();

    }

    return this.category;

  }

  public List<String> getType()

  {

    if (this.type == null) {

      this.type = new ArrayList();

    }

    return this.type;

  }

  public List<String> getTag()

  {

    if (this.tag == null) {

      this.tag = new ArrayList();

    }

    return this.tag;

  }

  public List<String> getEventTypeId()

  {

    if (this.eventTypeId == null) {

      this.eventTypeId = new ArrayList();

    }

    return this.eventTypeId;

  }

}

0 Kudos
1 Reply
ssurana
VMware Employee
VMware Employee

This is how you do it with the JAX-WS stubs:

EventFilterSpec spec = new EventFilterSpec();
spec.getEventTypeId().add("foo");
0 Kudos