Package org.apache.fineract.avro
Class BulkMessageItemV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<BulkMessageItemV1>
org.apache.avro.specific.SpecificRecordBuilderBase<BulkMessageItemV1>
org.apache.fineract.avro.BulkMessageItemV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<BulkMessageItemV1>
- Enclosing class:
BulkMessageItemV1
public static class BulkMessageItemV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<BulkMessageItemV1>
implements org.apache.avro.data.RecordBuilder<BulkMessageItemV1>
RecordBuilder for BulkMessageItemV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'category' field.Clears the value of the 'data' field.Clears the value of the 'dataschema' field.clearId()Clears the value of the 'id' field.Clears the value of the 'type' field.Gets the value of the 'category' field.getData()Gets the value of the 'data' field.Gets the value of the 'dataschema' field.longgetId()Gets the value of the 'id' field.getType()Gets the value of the 'type' field.booleanChecks whether the 'category' field has been set.booleanhasData()Checks whether the 'data' field has been set.booleanChecks whether the 'dataschema' field has been set.booleanhasId()Checks whether the 'id' field has been set.booleanhasType()Checks whether the 'type' field has been set.setCategory(String value) Sets the value of the 'category' field.setData(ByteBuffer value) Sets the value of the 'data' field.setDataschema(String value) Sets the value of the 'dataschema' field.setId(long value) Sets the value of the 'id' 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
-
getId
public long getId()Gets the value of the 'id' field. The ID of the message to be sent- Returns:
- The value.
-
setId
Sets the value of the 'id' field. The ID of the message to be sent- Parameters:
value- The value of 'id'.- Returns:
- This builder.
-
hasId
public boolean hasId()Checks whether the 'id' field has been set. The ID of the message to be sent- Returns:
- True if the 'id' field has been set, false otherwise.
-
clearId
Clears the value of the 'id' field. The ID of the message to be sent- Returns:
- This builder.
-
getType
Gets the value of the 'type' field. The type of event the payload refers to. For example LoanApprovedBusinessEvent- Returns:
- The value.
-
setType
Sets the value of the 'type' field. The type of event the payload refers to. For example LoanApprovedBusinessEvent- Parameters:
value- The value of 'type'.- Returns:
- This builder.
-
hasType
public boolean hasType()Checks whether the 'type' field has been set. The type of event the payload refers to. For example LoanApprovedBusinessEvent- Returns:
- True if the 'type' field has been set, false otherwise.
-
clearType
Clears the value of the 'type' field. The type of event the payload refers to. For example LoanApprovedBusinessEvent- Returns:
- This builder.
-
getCategory
Gets the value of the 'category' field. The category of event the payload refers to. For example LOAN- Returns:
- The value.
-
setCategory
Sets the value of the 'category' field. The category of event the payload refers to. For example LOAN- Parameters:
value- The value of 'category'.- Returns:
- This builder.
-
hasCategory
public boolean hasCategory()Checks whether the 'category' field has been set. The category of event the payload refers to. For example LOAN- Returns:
- True if the 'category' field has been set, false otherwise.
-
clearCategory
Clears the value of the 'category' field. The category of event the payload refers to. For example LOAN- Returns:
- This builder.
-
getDataschema
Gets the value of the 'dataschema' field. The fully qualified name of the schema of the event payload. For example org.apache.fineract.avro.loan.v1.LoanAccountDataV1- Returns:
- The value.
-
setDataschema
Sets the value of the 'dataschema' field. The fully qualified name of the schema of the event payload. For example org.apache.fineract.avro.loan.v1.LoanAccountDataV1- Parameters:
value- The value of 'dataschema'.- Returns:
- This builder.
-
hasDataschema
public boolean hasDataschema()Checks whether the 'dataschema' field has been set. The fully qualified name of the schema of the event payload. For example org.apache.fineract.avro.loan.v1.LoanAccountDataV1- Returns:
- True if the 'dataschema' field has been set, false otherwise.
-
clearDataschema
Clears the value of the 'dataschema' field. The fully qualified name of the schema of the event payload. For example org.apache.fineract.avro.loan.v1.LoanAccountDataV1- Returns:
- This builder.
-
getData
Gets the value of the 'data' field. The payload data serialized into Avro bytes- Returns:
- The value.
-
setData
Sets the value of the 'data' field. The payload data serialized into Avro bytes- Parameters:
value- The value of 'data'.- Returns:
- This builder.
-
hasData
public boolean hasData()Checks whether the 'data' field has been set. The payload data serialized into Avro bytes- Returns:
- True if the 'data' field has been set, false otherwise.
-
clearData
Clears the value of the 'data' field. The payload data serialized into Avro bytes- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<BulkMessageItemV1>
-