Package ch.admin.bit.jeap.messaging.avro
Class AvroMessagePublisher.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<AvroMessagePublisher>
org.apache.avro.specific.SpecificRecordBuilderBase<AvroMessagePublisher>
ch.admin.bit.jeap.messaging.avro.AvroMessagePublisher.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<AvroMessagePublisher>
- Enclosing class:
AvroMessagePublisher
public static class AvroMessagePublisher.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroMessagePublisher>
implements org.apache.avro.data.RecordBuilder<AvroMessagePublisher>
RecordBuilder for AvroMessagePublisher instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'service' field.Clears the value of the 'system' field.Gets the value of the 'service' field as an OptionalGets the value of the 'system' field as an OptionalGets the value of the 'service' field.Gets the value of the 'system' field.booleanChecks whether the 'service' field has been set.booleanChecks whether the 'system' field has been set.setService(String value) Sets the value of the 'service' field.Sets the value of the 'system' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getSystem
Gets the value of the 'system' field.- Returns:
- The value.
-
getOptionalSystem
Gets the value of the 'system' field as an Optional- Returns:
- The Optional<value>.
-
setSystem
Sets the value of the 'system' field.- Parameters:
value- The value of 'system'.- Returns:
- This builder.
-
hasSystem
public boolean hasSystem()Checks whether the 'system' field has been set.- Returns:
- True if the 'system' field has been set, false otherwise.
-
clearSystem
Clears the value of the 'system' field.- Returns:
- This builder.
-
getService
Gets the value of the 'service' field.- Returns:
- The value.
-
getOptionalService
Gets the value of the 'service' field as an Optional- Returns:
- The Optional<value>.
-
setService
Sets the value of the 'service' field.- Parameters:
value- The value of 'service'.- Returns:
- This builder.
-
hasService
public boolean hasService()Checks whether the 'service' field has been set.- Returns:
- True if the 'service' field has been set, false otherwise.
-
clearService
Clears the value of the 'service' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<AvroMessagePublisher>
-