Package org.apache.beam.sdk.io.splunk
Class SplunkWriteError.Builder
java.lang.Object
org.apache.beam.sdk.io.splunk.SplunkWriteError.Builder
- Enclosing class:
SplunkWriteError
A builder class for creating a
SplunkWriteError
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Builds aSplunkWriteError
object.withPayload
(String payload) Assigns the payload to be used for reprocessing.withStatusCode
(Integer statusCode) Assigns a return status code to assist with debugging.withStatusMessage
(String statusMessage) Assigns a return status message to assist with debugging.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withStatusCode
Assigns a return status code to assist with debugging.- Parameters:
statusCode
- status code to assign
-
withStatusMessage
Assigns a return status message to assist with debugging.- Parameters:
statusMessage
- status message to assign
-
withPayload
Assigns the payload to be used for reprocessing.This is generally the original payload sent to HEC.
- Parameters:
payload
- payload to assign
-
create
Builds aSplunkWriteError
object.
-