com.vmware.vcloud.sdk.admin
Class AuditEvent

java.lang.Object
  extended by com.vmware.vcloud.sdk.VcloudResource<T>
      extended by com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.AuditEventType>
          extended by com.vmware.vcloud.sdk.admin.AuditEvent

public class AuditEvent
extends VcloudEntity<com.vmware.vcloud.api.rest.schema.AuditEventType>

Helper class to access AuditEvent in vCloud API.

Since:
API 5.6, SDK 5.6
See Also:
AuditEventType

Constructor Summary
AuditEvent(VcloudClient client, com.vmware.vcloud.api.rest.schema.AuditEventType auditEventType)
          Constructor to create a AuditEvent
 
Method Summary
static AuditEvent getAuditEventById(VcloudClient client, String vCloudId)
          Returns AuditEvent for the given referenceID
static AuditEvent getAuditEventByReference(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType auditEventRef)
          Returns AuditEvent for the given reference
 
Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity
getMetadata, getReference, getTasks
 
Methods inherited from class com.vmware.vcloud.sdk.VcloudResource
getResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditEvent

public AuditEvent(VcloudClient client,
                  com.vmware.vcloud.api.rest.schema.AuditEventType auditEventType)
Constructor to create a AuditEvent

Parameters:
client - VcloudClient
auditEventType - AuditEventType
Method Detail

getAuditEventByReference

public static AuditEvent getAuditEventByReference(VcloudClient client,
                                                  com.vmware.vcloud.api.rest.schema.ReferenceType auditEventRef)
                                           throws VCloudException
Returns AuditEvent for the given reference

Parameters:
client - vCloud API client VcloudClient
eventRef - ReferenceType to the event ReferenceType
Returns:
Event
Throws:
VCloudException

getAuditEventById

public static AuditEvent getAuditEventById(VcloudClient client,
                                           String vCloudId)
                                    throws VCloudException
Returns AuditEvent for the given referenceID

Parameters:
client - VcloudClient
vCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example: "urn:vcloud:event:00726872-0f0f-4f8d-bc26-b8c2b8aa9b23". String
Returns:
AuditEvent
Throws:
VCloudException
Since:
API 5.6


Copyright © 2016. All Rights Reserved.