Class MessageV1.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<MessageV1>
org.apache.avro.specific.SpecificRecordBuilderBase<MessageV1>
org.apache.fineract.avro.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 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 MessageV1.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 MessageV1.Builder clearId()
      Clears the value of the 'id' field. The ID of the message to be sent
      Returns:
      This builder.
    • getSource

      public String getSource()
      Gets the value of the 'source' field. A unique identifier of the source service
      Returns:
      The value.
    • setSource

      public MessageV1.Builder setSource(String value)
      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

      public MessageV1.Builder clearSource()
      Clears the value of the 'source' field. A unique identifier of the source service
      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 MessageV1.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 MessageV1.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 MessageV1.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 MessageV1.Builder clearCategory()
      Clears the value of the 'category' field. The category of event the payload refers to. For example LOAN
      Returns:
      This builder.
    • getCreatedAt

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

      public MessageV1.Builder setCreatedAt(String value)
      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

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

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

      public MessageV1.Builder setBusinessDate(String value)
      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

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

      public String getTenantId()
      Gets the value of the 'tenantId' field. The tenantId that the event has been sent from. For example default
      Returns:
      The value.
    • setTenantId

      public MessageV1.Builder setTenantId(String value)
      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

      public MessageV1.Builder clearTenantId()
      Clears the value of the 'tenantId' field. The tenantId that the event has been sent from. For example default
      Returns:
      This builder.
    • getIdempotencyKey

      public String getIdempotencyKey()
      Gets the value of the 'idempotencyKey' field. The idempotency key for this particular event for consumer de-duplication
      Returns:
      The value.
    • setIdempotencyKey

      public MessageV1.Builder setIdempotencyKey(String value)
      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

      public MessageV1.Builder clearIdempotencyKey()
      Clears the value of the 'idempotencyKey' field. The idempotency key for this particular event for consumer de-duplication
      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 MessageV1.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 MessageV1.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 MessageV1.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 MessageV1.Builder clearData()
      Clears the value of the 'data' field. The payload data serialized into Avro bytes
      Returns:
      This builder.
    • build

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