public abstract static class SplunkWriteError.Builder
extends java.lang.Object
SplunkWriteError
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SplunkWriteError |
create()
Builds a
SplunkWriteError object. |
SplunkWriteError.Builder |
withPayload(java.lang.String payload)
Assigns the payload to be used for reprocessing.
|
SplunkWriteError.Builder |
withStatusCode(java.lang.Integer statusCode)
Assigns a return status code to assist with debugging.
|
SplunkWriteError.Builder |
withStatusMessage(java.lang.String statusMessage)
Assigns a return status message to assist with debugging.
|
public SplunkWriteError.Builder withStatusCode(java.lang.Integer statusCode)
statusCode
- status code to assignpublic SplunkWriteError.Builder withStatusMessage(java.lang.String statusMessage)
statusMessage
- status message to assignpublic SplunkWriteError.Builder withPayload(java.lang.String payload)
This is generally the original payload sent to HEC.
payload
- payload to assignpublic SplunkWriteError create()
SplunkWriteError
object.