Class StringEnumOptionDataV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<StringEnumOptionDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<StringEnumOptionDataV1>
org.apache.fineract.avro.generic.v1.StringEnumOptionDataV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<StringEnumOptionDataV1>
- Enclosing class:
StringEnumOptionDataV1
public static class StringEnumOptionDataV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<StringEnumOptionDataV1>
implements org.apache.avro.data.RecordBuilder<StringEnumOptionDataV1>
RecordBuilder for StringEnumOptionDataV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'code' field.clearId()Clears the value of the 'id' field.Clears the value of the 'value' field.getCode()Gets the value of the 'code' field.getId()Gets the value of the 'id' field.getValue()Gets the value of the 'value' field.booleanhasCode()Checks whether the 'code' field has been set.booleanhasId()Checks whether the 'id' field has been set.booleanhasValue()Checks whether the 'value' field has been set.Sets the value of the 'code' field.Sets the value of the 'id' field.Sets the value of the 'value' 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.
-
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.
-
getCode
Gets the value of the 'code' field.- Returns:
- The 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.
-
getValue
Gets the value of the 'value' field.- Returns:
- The value.
-
setValue
Sets the value of the 'value' field.- Parameters:
value- The value of 'value'.- Returns:
- This builder.
-
hasValue
public boolean hasValue()Checks whether the 'value' field has been set.- Returns:
- True if the 'value' field has been set, false otherwise.
-
clearValue
Clears the value of the 'value' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<StringEnumOptionDataV1>
-