Package ch.admin.bit.jeap.messaging.avro
Class AvroMessageIdentity.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<AvroMessageIdentity>
org.apache.avro.specific.SpecificRecordBuilderBase<AvroMessageIdentity>
ch.admin.bit.jeap.messaging.avro.AvroMessageIdentity.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<AvroMessageIdentity>
- Enclosing class:
AvroMessageIdentity
public static class AvroMessageIdentity.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroMessageIdentity>
implements org.apache.avro.data.RecordBuilder<AvroMessageIdentity>
RecordBuilder for AvroMessageIdentity instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'created' field.clearId()Clears the value of the 'id' field.Clears the value of the 'idempotenceId' field.Gets the value of the 'created' field.getId()Gets the value of the 'id' field.Gets the value of the 'idempotenceId' field.Gets the value of the 'created' field as an OptionalGets the value of the 'id' field as an OptionalGets the value of the 'idempotenceId' field as an OptionalbooleanChecks whether the 'created' field has been set.booleanhasId()Checks whether the 'id' field has been set.booleanChecks whether the 'idempotenceId' field has been set.setCreated(Instant value) Sets the value of the 'created' field.Sets the value of the 'id' 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
-
getId
Gets the value of the 'id' field.- Returns:
- The value.
-
getOptionalId
Gets the value of the 'id' field as an Optional- Returns:
- The Optional<value>.
-
setId
Sets the value of the 'id' field.- Parameters:
value- The value of 'id'.- Returns:
- This builder.
-
hasId
public boolean hasId()Checks whether the 'id' field has been set.- Returns:
- True if the 'id' field has been set, false otherwise.
-
clearId
Clears the value of the 'id' 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<AvroMessageIdentity>
-