Class ErrorTypeReference.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<ErrorTypeReference>
org.apache.avro.specific.SpecificRecordBuilderBase<ErrorTypeReference>
ch.admin.bit.jeap.domainevent.avro.error.ErrorTypeReference.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<ErrorTypeReference>
- Enclosing class:
ErrorTypeReference
public static class ErrorTypeReference.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<ErrorTypeReference>
implements org.apache.avro.data.RecordBuilder<ErrorTypeReference>
RecordBuilder for ErrorTypeReference instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'code' field.Clears the value of the 'temporality' field.Clears the value of the 'type' field.getCode()Gets the value of the 'code' field.Gets the value of the 'code' field as an OptionalGets the value of the 'temporality' field as an OptionalGets the value of the 'type' field as an OptionalGets the value of the 'temporality' field.getType()Gets the value of the 'type' field.booleanhasCode()Checks whether the 'code' field has been set.booleanChecks whether the 'temporality' field has been set.booleanhasType()Checks whether the 'type' field has been set.Sets the value of the 'code' field.setTemporality(String value) Sets the value of the 'temporality' field.Sets the value of the 'type' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getType
Gets the value of the 'type' field.- Returns:
- The value.
-
getOptionalType
Gets the value of the 'type' field as an Optional- Returns:
- The Optional<value>.
-
setType
Sets the value of the 'type' field.- Parameters:
value- The value of 'type'.- Returns:
- This builder.
-
hasType
public boolean hasType()Checks whether the 'type' field has been set.- Returns:
- True if the 'type' field has been set, false otherwise.
-
clearType
Clears the value of the 'type' field.- Returns:
- This builder.
-
getTemporality
Gets the value of the 'temporality' field.- Returns:
- The value.
-
getOptionalTemporality
Gets the value of the 'temporality' field as an Optional- Returns:
- The Optional<value>.
-
setTemporality
Sets the value of the 'temporality' field.- Parameters:
value- The value of 'temporality'.- Returns:
- This builder.
-
hasTemporality
public boolean hasTemporality()Checks whether the 'temporality' field has been set.- Returns:
- True if the 'temporality' field has been set, false otherwise.
-
clearTemporality
Clears the value of the 'temporality' field.- Returns:
- This builder.
-
getCode
Gets the value of the 'code' field.- Returns:
- The value.
-
getOptionalCode
Gets the value of the 'code' field as an Optional- Returns:
- The Optional<value>.
-
setCode
Sets the value of the 'code' field.- Parameters:
value- The value of 'code'.- Returns:
- This builder.
-
hasCode
public boolean hasCode()Checks whether the 'code' field has been set.- Returns:
- True if the 'code' field has been set, false otherwise.
-
clearCode
Clears the value of the 'code' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<ErrorTypeReference>
-