public class EventType
extends Object
Constructor and Description |
---|
EventType() |
Modifier and Type | Method and Description |
---|---|
EventType |
addFieldsItem(Field fieldsItem)
Add fields to the event type
|
boolean |
equals(Object o) |
EventType |
fields(List<Field> fields)
Returns an EventType instance initialized with list of fields for the event type
|
Long |
getEtag()
Get etag
|
List<Field> |
getFields()
Get fields
|
String |
getId()
ID of the created event type
|
EventTypeLinks |
getLinks()
Get links
|
String |
getName()
Name of the event type
|
String |
getOwner()
The owner who created the event type
|
String |
getParentId()
Parent event type ID
|
ScopeEnum |
getScope()
Scope of the event type
|
Integer |
getTtl()
Time to live in days
|
int |
hashCode() |
EventType |
links(EventTypeLinks links)
Returns an EventType instance initialized with EventTypeLinks
|
EventType |
name(String name)
Returns an EventType instance initialized with name
|
EventType |
parentId(String parentId)
Returns an EventType instance initialized with parentId
|
EventType |
scope(ScopeEnum scope)
Returns an EventType instance initialized with scope
|
void |
setEtag(Long eTag) |
void |
setFields(List<Field> fields) |
void |
setId(String id) |
void |
setLinks(EventTypeLinks links) |
void |
setName(String name) |
void |
setOwner(String owner) |
void |
setParentId(String parentId) |
void |
setScope(ScopeEnum scope) |
void |
setTtl(Integer ttl) |
String |
toString() |
EventType |
ttl(Integer ttl)
Returns an EventType instance initialized with time to live
|
public String getId()
public void setId(String id)
public EventType name(String name)
name
- name to be associated with Eventspublic String getName()
public void setName(String name)
public EventType parentId(String parentId)
parentId
- Identifier value of a parent event typepublic String getParentId()
public void setParentId(String parentId)
public EventType ttl(Integer ttl)
ttl
- time to live valuepublic Integer getTtl()
public void setTtl(Integer ttl)
public Long getEtag()
public void setEtag(Long eTag)
public String getOwner()
public void setOwner(String owner)
public EventType scope(ScopeEnum scope)
scope
- Scope(Local or Global) to be associated with Eventspublic ScopeEnum getScope()
public void setScope(ScopeEnum scope)
public EventType fields(List<Field> fields)
fields
- list of events for the event typepublic EventType addFieldsItem(Field fieldsItem)
fieldsItem
- Field to be added to the event typepublic List<Field> getFields()
public void setFields(List<Field> fields)
public EventType links(EventTypeLinks links)
links
- instance of EventTypeLinks to be associated with Eventspublic EventTypeLinks getLinks()
public void setLinks(EventTypeLinks links)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object