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 Details

    • getId

      public long getId()
      Gets the value of the 'id' field. The ID of the message to be sent
      Returns:
      The value.
    • setId

      public BulkMessageItemV1.Builder setId(long value)
      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

      public BulkMessageItemV1.Builder clearId()
      Clears the value of the 'id' field. The ID of the message to be sent
      Returns:
      This builder.
    • getType

      public String getType()
      Gets the value of the 'type' field. The type of event the payload refers to. For example LoanApprovedBusinessEvent
      Returns:
      The value.
    • setType

      public BulkMessageItemV1.Builder setType(String value)
      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

      public BulkMessageItemV1.Builder clearType()
      Clears the value of the 'type' field. The type of event the payload refers to. For example LoanApprovedBusinessEvent
      Returns:
      This builder.
    • getCategory

      public String getCategory()
      Gets the value of the 'category' field. The category of event the payload refers to. For example LOAN
      Returns:
      The value.
    • setCategory

      public BulkMessageItemV1.Builder setCategory(String value)
      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

      public BulkMessageItemV1.Builder clearCategory()
      Clears the value of the 'category' field. The category of event the payload refers to. For example LOAN
      Returns:
      This builder.
    • getDataschema

      public String 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

      public BulkMessageItemV1.Builder setDataschema(String value)
      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

      public BulkMessageItemV1.Builder 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

      public ByteBuffer getData()
      Gets the value of the 'data' field. The payload data serialized into Avro bytes
      Returns:
      The value.
    • setData

      public BulkMessageItemV1.Builder setData(ByteBuffer value)
      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

      public BulkMessageItemV1.Builder clearData()
      Clears the value of the 'data' field. The payload data serialized into Avro bytes
      Returns:
      This builder.
    • build

      public BulkMessageItemV1 build()
      Specified by:
      build in interface org.apache.avro.data.RecordBuilder<BulkMessageItemV1>