org.jclouds.cloudstack.domain
Class Event
java.lang.Object
org.jclouds.cloudstack.domain.Event
- All Implemented Interfaces:
- Comparable<Event>
public class Event
- extends Object
- implements Comparable<Event>
Class Event
- Author:
- Vijay Kiran
|
Constructor Summary |
protected |
Event(String id,
String account,
String description,
Date created,
String domain,
String domainId,
String level,
String parentId,
String state,
String type,
String username)
|
Event
@ConstructorProperties(value={"id","account","description","created","domain","domainId","level","parentId","state","type","username"})
protected Event(String id,
@Nullable
String account,
@Nullable
String description,
@Nullable
Date created,
@Nullable
String domain,
@Nullable
String domainId,
@Nullable
String level,
@Nullable
String parentId,
@Nullable
String state,
@Nullable
String type,
@Nullable
String username)
builder
public static Event.Builder<?> builder()
toBuilder
public Event.Builder<?> toBuilder()
getId
public String getId()
- Returns:
- the ID of the event
getAccount
@Nullable
public String getAccount()
- Returns:
- the account name for the account that owns the object being acted on in the event
(e.g. the owner of the virtual machine, ip address, or security group)
getDescription
@Nullable
public String getDescription()
- Returns:
- the description of the event
getCreated
@Nullable
public Date getCreated()
- Returns:
- the date the event was created
getDomain
@Nullable
public String getDomain()
- Returns:
- the name of the account's domain
getDomainId
@Nullable
public String getDomainId()
- Returns:
- the id of the account's domain
getLevel
@Nullable
public String getLevel()
- Returns:
- the event level (INFO, WARN, ERROR)
getParentId
@Nullable
public String getParentId()
- Returns:
- whether the event is parented
getState
@Nullable
public String getState()
- Returns:
- the state of the event
getType
@Nullable
public String getType()
- Returns:
- the type of the event (see event types)
getUsername
@Nullable
public String getUsername()
- Returns:
- the name of the user who performed the action (can be different from the account if
an admin is performing an action for a user, e.g. starting/stopping a user's virtual machine)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(Event other)
- Specified by:
compareTo in interface Comparable<Event>
Copyright © 2009-2012 jclouds. All Rights Reserved.