Package org.apache.fineract.avro
Class MessageV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<MessageV1>
- Enclosing class:
MessageV1
public static class MessageV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<MessageV1>
implements org.apache.avro.data.RecordBuilder<MessageV1>
RecordBuilder for MessageV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'businessDate' field.Clears the value of the 'category' field.Clears the value of the 'createdAt' 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 'idempotencyKey' field.Clears the value of the 'source' field.Clears the value of the 'tenantId' field.Clears the value of the 'type' field.Gets the value of the 'businessDate' field.Gets the value of the 'category' field.Gets the value of the 'createdAt' field.getData()Gets the value of the 'data' field.Gets the value of the 'dataschema' field.longgetId()Gets the value of the 'id' field.Gets the value of the 'idempotencyKey' field.Gets the value of the 'source' field.Gets the value of the 'tenantId' field.getType()Gets the value of the 'type' field.booleanChecks whether the 'businessDate' field has been set.booleanChecks whether the 'category' field has been set.booleanChecks whether the 'createdAt' 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.booleanChecks whether the 'idempotencyKey' field has been set.booleanChecks whether the 'source' field has been set.booleanChecks whether the 'tenantId' field has been set.booleanhasType()Checks whether the 'type' field has been set.setBusinessDate(String value) Sets the value of the 'businessDate' field.setCategory(String value) Sets the value of the 'category' field.setCreatedAt(String value) Sets the value of the 'createdAt' 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.setIdempotencyKey(String value) Sets the value of the 'idempotencyKey' field.Sets the value of the 'source' field.setTenantId(String value) Sets the value of the 'tenantId' 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.
-
getSource
Gets the value of the 'source' field. A unique identifier of the source service- Returns:
- The value.
-
setSource
Sets the value of the 'source' field. A unique identifier of the source service- Parameters:
value- The value of 'source'.- Returns:
- This builder.
-
hasSource
public boolean hasSource()Checks whether the 'source' field has been set. A unique identifier of the source service- Returns:
- True if the 'source' field has been set, false otherwise.
-
clearSource
Clears the value of the 'source' field. A unique identifier of the source service- 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.
-
getCreatedAt
Gets the value of the 'createdAt' field. The UTC time of when the event has been raised; in ISO_LOCAL_DATE_TIME format. For example 2011-12-03T10:15:30- Returns:
- The value.
-
setCreatedAt
Sets the value of the 'createdAt' field. The UTC time of when the event has been raised; in ISO_LOCAL_DATE_TIME format. For example 2011-12-03T10:15:30- Parameters:
value- The value of 'createdAt'.- Returns:
- This builder.
-
hasCreatedAt
public boolean hasCreatedAt()Checks whether the 'createdAt' field has been set. The UTC time of when the event has been raised; in ISO_LOCAL_DATE_TIME format. For example 2011-12-03T10:15:30- Returns:
- True if the 'createdAt' field has been set, false otherwise.
-
clearCreatedAt
Clears the value of the 'createdAt' field. The UTC time of when the event has been raised; in ISO_LOCAL_DATE_TIME format. For example 2011-12-03T10:15:30- Returns:
- This builder.
-
getBusinessDate
Gets the value of the 'businessDate' field. The business date when the event has been raised; in ISO_LOCAL_DATE format. For example 2011-12-03- Returns:
- The value.
-
setBusinessDate
Sets the value of the 'businessDate' field. The business date when the event has been raised; in ISO_LOCAL_DATE format. For example 2011-12-03- Parameters:
value- The value of 'businessDate'.- Returns:
- This builder.
-
hasBusinessDate
public boolean hasBusinessDate()Checks whether the 'businessDate' field has been set. The business date when the event has been raised; in ISO_LOCAL_DATE format. For example 2011-12-03- Returns:
- True if the 'businessDate' field has been set, false otherwise.
-
clearBusinessDate
Clears the value of the 'businessDate' field. The business date when the event has been raised; in ISO_LOCAL_DATE format. For example 2011-12-03- Returns:
- This builder.
-
getTenantId
Gets the value of the 'tenantId' field. The tenantId that the event has been sent from. For example default- Returns:
- The value.
-
setTenantId
Sets the value of the 'tenantId' field. The tenantId that the event has been sent from. For example default- Parameters:
value- The value of 'tenantId'.- Returns:
- This builder.
-
hasTenantId
public boolean hasTenantId()Checks whether the 'tenantId' field has been set. The tenantId that the event has been sent from. For example default- Returns:
- True if the 'tenantId' field has been set, false otherwise.
-
clearTenantId
Clears the value of the 'tenantId' field. The tenantId that the event has been sent from. For example default- Returns:
- This builder.
-
getIdempotencyKey
Gets the value of the 'idempotencyKey' field. The idempotency key for this particular event for consumer de-duplication- Returns:
- The value.
-
setIdempotencyKey
Sets the value of the 'idempotencyKey' field. The idempotency key for this particular event for consumer de-duplication- Parameters:
value- The value of 'idempotencyKey'.- Returns:
- This builder.
-
hasIdempotencyKey
public boolean hasIdempotencyKey()Checks whether the 'idempotencyKey' field has been set. The idempotency key for this particular event for consumer de-duplication- Returns:
- True if the 'idempotencyKey' field has been set, false otherwise.
-
clearIdempotencyKey
Clears the value of the 'idempotencyKey' field. The idempotency key for this particular event for consumer de-duplication- 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<MessageV1>
-