Class AvroDomainEventIdentity.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<AvroDomainEventIdentity>
org.apache.avro.specific.SpecificRecordBuilderBase<AvroDomainEventIdentity>
ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<AvroDomainEventIdentity>
- Enclosing class:
AvroDomainEventIdentity
public static class AvroDomainEventIdentity.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroDomainEventIdentity>
implements org.apache.avro.data.RecordBuilder<AvroDomainEventIdentity>
RecordBuilder for AvroDomainEventIdentity instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'created' field.Clears the value of the 'eventId' field.Clears the value of the 'idempotenceId' field.Gets the value of the 'created' field.Gets the value of the 'eventId' field.Gets the value of the 'idempotenceId' field.Gets the value of the 'created' field as an OptionalGets the value of the 'eventId' field as an OptionalGets the value of the 'idempotenceId' field as an OptionalbooleanChecks whether the 'created' field has been set.booleanChecks whether the 'eventId' field has been set.booleanChecks whether the 'idempotenceId' field has been set.setCreated(Instant value) Sets the value of the 'created' field.setEventId(String value) Sets the value of the 'eventId' field.setIdempotenceId(String value) Sets the value of the 'idempotenceId' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getEventId
Gets the value of the 'eventId' field.- Returns:
- The value.
-
getOptionalEventId
Gets the value of the 'eventId' field as an Optional- Returns:
- The Optional<value>.
-
setEventId
Sets the value of the 'eventId' field.- Parameters:
value- The value of 'eventId'.- Returns:
- This builder.
-
hasEventId
public boolean hasEventId()Checks whether the 'eventId' field has been set.- Returns:
- True if the 'eventId' field has been set, false otherwise.
-
clearEventId
Clears the value of the 'eventId' field.- Returns:
- This builder.
-
getIdempotenceId
Gets the value of the 'idempotenceId' field.- Returns:
- The value.
-
getOptionalIdempotenceId
Gets the value of the 'idempotenceId' field as an Optional- Returns:
- The Optional<value>.
-
setIdempotenceId
Sets the value of the 'idempotenceId' field.- Parameters:
value- The value of 'idempotenceId'.- Returns:
- This builder.
-
hasIdempotenceId
public boolean hasIdempotenceId()Checks whether the 'idempotenceId' field has been set.- Returns:
- True if the 'idempotenceId' field has been set, false otherwise.
-
clearIdempotenceId
Clears the value of the 'idempotenceId' field.- Returns:
- This builder.
-
getCreated
Gets the value of the 'created' field.- Returns:
- The value.
-
getOptionalCreated
Gets the value of the 'created' field as an Optional- Returns:
- The Optional<value>.
-
setCreated
Sets the value of the 'created' field.- Parameters:
value- The value of 'created'.- Returns:
- This builder.
-
hasCreated
public boolean hasCreated()Checks whether the 'created' field has been set.- Returns:
- True if the 'created' field has been set, false otherwise.
-
clearCreated
Clears the value of the 'created' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<AvroDomainEventIdentity>
-