Class EventProcessingFailedPayload.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<EventProcessingFailedPayload>
org.apache.avro.specific.SpecificRecordBuilderBase<EventProcessingFailedPayload>
ch.admin.bit.jeap.domainevent.avro.error.EventProcessingFailedPayload.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<EventProcessingFailedPayload>
- Enclosing class:
EventProcessingFailedPayload
public static class EventProcessingFailedPayload.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<EventProcessingFailedPayload>
implements org.apache.avro.data.RecordBuilder<EventProcessingFailedPayload>
RecordBuilder for EventProcessingFailedPayload instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'errorDescription' field.Clears the value of the 'errorMessage' field.Clears the value of the 'originalKey' field.Clears the value of the 'originalMessage' field.Clears the value of the 'stackTrace' field.Gets the value of the 'errorDescription' field.Gets the value of the 'errorMessage' field.Gets the value of the 'errorDescription' field as an OptionalGets the value of the 'errorMessage' field as an OptionalGets the value of the 'originalKey' field as an OptionalGets the value of the 'originalMessage' field as an OptionalGets the value of the 'stackTrace' field as an OptionalGets the value of the 'originalKey' field.Gets the value of the 'originalMessage' field.Gets the value of the 'stackTrace' field.booleanChecks whether the 'errorDescription' field has been set.booleanChecks whether the 'errorMessage' field has been set.booleanChecks whether the 'originalKey' field has been set.booleanChecks whether the 'originalMessage' field has been set.booleanChecks whether the 'stackTrace' field has been set.setErrorDescription(String value) Sets the value of the 'errorDescription' field.setErrorMessage(String value) Sets the value of the 'errorMessage' field.setOriginalKey(ByteBuffer value) Sets the value of the 'originalKey' field.setOriginalMessage(ByteBuffer value) Sets the value of the 'originalMessage' field.setStackTrace(String value) Sets the value of the 'stackTrace' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getOriginalMessage
Gets the value of the 'originalMessage' field.- Returns:
- The value.
-
getOptionalOriginalMessage
Gets the value of the 'originalMessage' field as an Optional- Returns:
- The Optional<value>.
-
setOriginalMessage
Sets the value of the 'originalMessage' field.- Parameters:
value- The value of 'originalMessage'.- Returns:
- This builder.
-
hasOriginalMessage
public boolean hasOriginalMessage()Checks whether the 'originalMessage' field has been set.- Returns:
- True if the 'originalMessage' field has been set, false otherwise.
-
clearOriginalMessage
Clears the value of the 'originalMessage' field.- Returns:
- This builder.
-
getOriginalKey
Gets the value of the 'originalKey' field.- Returns:
- The value.
-
getOptionalOriginalKey
Gets the value of the 'originalKey' field as an Optional- Returns:
- The Optional<value>.
-
setOriginalKey
Sets the value of the 'originalKey' field.- Parameters:
value- The value of 'originalKey'.- Returns:
- This builder.
-
hasOriginalKey
public boolean hasOriginalKey()Checks whether the 'originalKey' field has been set.- Returns:
- True if the 'originalKey' field has been set, false otherwise.
-
clearOriginalKey
Clears the value of the 'originalKey' field.- Returns:
- This builder.
-
getErrorMessage
Gets the value of the 'errorMessage' field.- Returns:
- The value.
-
getOptionalErrorMessage
Gets the value of the 'errorMessage' field as an Optional- Returns:
- The Optional<value>.
-
setErrorMessage
Sets the value of the 'errorMessage' field.- Parameters:
value- The value of 'errorMessage'.- Returns:
- This builder.
-
hasErrorMessage
public boolean hasErrorMessage()Checks whether the 'errorMessage' field has been set.- Returns:
- True if the 'errorMessage' field has been set, false otherwise.
-
clearErrorMessage
Clears the value of the 'errorMessage' field.- Returns:
- This builder.
-
getErrorDescription
Gets the value of the 'errorDescription' field.- Returns:
- The value.
-
getOptionalErrorDescription
Gets the value of the 'errorDescription' field as an Optional- Returns:
- The Optional<value>.
-
setErrorDescription
Sets the value of the 'errorDescription' field.- Parameters:
value- The value of 'errorDescription'.- Returns:
- This builder.
-
hasErrorDescription
public boolean hasErrorDescription()Checks whether the 'errorDescription' field has been set.- Returns:
- True if the 'errorDescription' field has been set, false otherwise.
-
clearErrorDescription
Clears the value of the 'errorDescription' field.- Returns:
- This builder.
-
getStackTrace
Gets the value of the 'stackTrace' field.- Returns:
- The value.
-
getOptionalStackTrace
Gets the value of the 'stackTrace' field as an Optional- Returns:
- The Optional<value>.
-
setStackTrace
Sets the value of the 'stackTrace' field.- Parameters:
value- The value of 'stackTrace'.- Returns:
- This builder.
-
hasStackTrace
public boolean hasStackTrace()Checks whether the 'stackTrace' field has been set.- Returns:
- True if the 'stackTrace' field has been set, false otherwise.
-
clearStackTrace
Clears the value of the 'stackTrace' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<EventProcessingFailedPayload>
-