Class EventProcessingFailedReferences.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<EventProcessingFailedReferences>
org.apache.avro.specific.SpecificRecordBuilderBase<EventProcessingFailedReferences>
ch.admin.bit.jeap.domainevent.avro.error.EventProcessingFailedReferences.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<EventProcessingFailedReferences>
- Enclosing class:
EventProcessingFailedReferences
public static class EventProcessingFailedReferences.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<EventProcessingFailedReferences>
implements org.apache.avro.data.RecordBuilder<EventProcessingFailedReferences>
RecordBuilder for EventProcessingFailedReferences instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'errorType' field.Clears the value of the 'message' field.Gets the value of the 'errorType' field.Gets the Builder instance for the 'errorType' field and creates one if it doesn't exist yet.Gets the value of the 'message' field.Gets the Builder instance for the 'message' field and creates one if it doesn't exist yet.Gets the value of the 'errorType' field as an OptionalGets the value of the 'message' field as an OptionalbooleanChecks whether the 'errorType' field has been set.booleanChecks whether the 'errorType' field has an active Builder instancebooleanChecks whether the 'message' field has been set.booleanChecks whether the 'message' field has an active Builder instancesetErrorType(ErrorTypeReference value) Sets the value of the 'errorType' field.Sets the Builder instance for the 'errorType' fieldsetMessage(MessageReference value) Sets the value of the 'message' field.Sets the Builder instance for the 'message' fieldMethods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getMessage
Gets the value of the 'message' field.- Returns:
- The value.
-
getOptionalMessage
Gets the value of the 'message' field as an Optional- Returns:
- The Optional<value>.
-
setMessage
Sets the value of the 'message' field.- Parameters:
value- The value of 'message'.- Returns:
- This builder.
-
hasMessage
public boolean hasMessage()Checks whether the 'message' field has been set.- Returns:
- True if the 'message' field has been set, false otherwise.
-
getMessageBuilder
Gets the Builder instance for the 'message' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setMessageBuilder
Sets the Builder instance for the 'message' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasMessageBuilder
public boolean hasMessageBuilder()Checks whether the 'message' field has an active Builder instance- Returns:
- True if the 'message' field has an active Builder instance
-
clearMessage
Clears the value of the 'message' field.- Returns:
- This builder.
-
getErrorType
Gets the value of the 'errorType' field.- Returns:
- The value.
-
getOptionalErrorType
Gets the value of the 'errorType' field as an Optional- Returns:
- The Optional<value>.
-
setErrorType
Sets the value of the 'errorType' field.- Parameters:
value- The value of 'errorType'.- Returns:
- This builder.
-
hasErrorType
public boolean hasErrorType()Checks whether the 'errorType' field has been set.- Returns:
- True if the 'errorType' field has been set, false otherwise.
-
getErrorTypeBuilder
Gets the Builder instance for the 'errorType' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setErrorTypeBuilder
public EventProcessingFailedReferences.Builder setErrorTypeBuilder(ErrorTypeReference.Builder value) Sets the Builder instance for the 'errorType' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasErrorTypeBuilder
public boolean hasErrorTypeBuilder()Checks whether the 'errorType' field has an active Builder instance- Returns:
- True if the 'errorType' field has an active Builder instance
-
clearErrorType
Clears the value of the 'errorType' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<EventProcessingFailedReferences>
-