public abstract static class SplunkEvent.Builder
extends java.lang.Object
SplunkEvent.| Constructor and Description | 
|---|
Builder()  | 
| Modifier and Type | Method and Description | 
|---|---|
SplunkEvent | 
create()
Creates a  
SplunkEvent object. | 
SplunkEvent.Builder | 
withEvent(java.lang.String event)
Assigns the event payload to be sent to the HEC endpoint. 
 | 
SplunkEvent.Builder | 
withFields(com.google.gson.JsonObject fields)
Assigns fields value to the event metadata. 
 | 
SplunkEvent.Builder | 
withHost(java.lang.String host)
Assigns host value to the event metadata. 
 | 
SplunkEvent.Builder | 
withIndex(java.lang.String index)
Assigns index value to the event metadata. 
 | 
SplunkEvent.Builder | 
withSource(java.lang.String source)
Assigns source value to the event metadata. 
 | 
SplunkEvent.Builder | 
withSourceType(java.lang.String sourceType)
Assigns sourceType value to the event metadata. 
 | 
SplunkEvent.Builder | 
withTime(java.lang.Long time)
Assigns time value to the event metadata. 
 | 
public SplunkEvent.Builder withTime(java.lang.Long time)
time - time value to assignpublic SplunkEvent.Builder withHost(java.lang.String host)
host - host value to assignpublic SplunkEvent.Builder withSource(java.lang.String source)
source - source value to assignpublic SplunkEvent.Builder withSourceType(java.lang.String sourceType)
sourceType - sourceType value to assignpublic SplunkEvent.Builder withIndex(java.lang.String index)
index - index value to assignpublic SplunkEvent.Builder withFields(com.google.gson.JsonObject fields)
fields - fields value to assignpublic SplunkEvent.Builder withEvent(java.lang.String event)
event - payload to be sent to HECpublic SplunkEvent create()
SplunkEvent object.