Class RateDataV1.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<RateDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<RateDataV1>
org.apache.fineract.avro.portfolio.v1.RateDataV1.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<RateDataV1>
Enclosing class:
RateDataV1

public static class RateDataV1.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<RateDataV1> implements org.apache.avro.data.RecordBuilder<RateDataV1>
RecordBuilder for RateDataV1 instances.
  • Method Details

    • getId

      public Long getId()
      Gets the value of the 'id' field.
      Returns:
      The value.
    • setId

      public RateDataV1.Builder setId(Long value)
      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

      public RateDataV1.Builder clearId()
      Clears the value of the 'id' field.
      Returns:
      This builder.
    • getName

      public String getName()
      Gets the value of the 'name' field.
      Returns:
      The value.
    • setName

      public RateDataV1.Builder setName(String value)
      Sets the value of the 'name' field.
      Parameters:
      value - The value of 'name'.
      Returns:
      This builder.
    • hasName

      public boolean hasName()
      Checks whether the 'name' field has been set.
      Returns:
      True if the 'name' field has been set, false otherwise.
    • clearName

      public RateDataV1.Builder clearName()
      Clears the value of the 'name' field.
      Returns:
      This builder.
    • getPercentage

      public BigDecimal getPercentage()
      Gets the value of the 'percentage' field.
      Returns:
      The value.
    • setPercentage

      public RateDataV1.Builder setPercentage(BigDecimal value)
      Sets the value of the 'percentage' field.
      Parameters:
      value - The value of 'percentage'.
      Returns:
      This builder.
    • hasPercentage

      public boolean hasPercentage()
      Checks whether the 'percentage' field has been set.
      Returns:
      True if the 'percentage' field has been set, false otherwise.
    • clearPercentage

      public RateDataV1.Builder clearPercentage()
      Clears the value of the 'percentage' field.
      Returns:
      This builder.
    • getProductApply

      public EnumOptionDataV1 getProductApply()
      Gets the value of the 'productApply' field.
      Returns:
      The value.
    • setProductApply

      public RateDataV1.Builder setProductApply(EnumOptionDataV1 value)
      Sets the value of the 'productApply' field.
      Parameters:
      value - The value of 'productApply'.
      Returns:
      This builder.
    • hasProductApply

      public boolean hasProductApply()
      Checks whether the 'productApply' field has been set.
      Returns:
      True if the 'productApply' field has been set, false otherwise.
    • getProductApplyBuilder

      public EnumOptionDataV1.Builder getProductApplyBuilder()
      Gets the Builder instance for the 'productApply' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setProductApplyBuilder

      public RateDataV1.Builder setProductApplyBuilder(EnumOptionDataV1.Builder value)
      Sets the Builder instance for the 'productApply' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasProductApplyBuilder

      public boolean hasProductApplyBuilder()
      Checks whether the 'productApply' field has an active Builder instance
      Returns:
      True if the 'productApply' field has an active Builder instance
    • clearProductApply

      public RateDataV1.Builder clearProductApply()
      Clears the value of the 'productApply' field.
      Returns:
      This builder.
    • getActive

      public Boolean getActive()
      Gets the value of the 'active' field.
      Returns:
      The value.
    • setActive

      public RateDataV1.Builder setActive(Boolean value)
      Sets the value of the 'active' field.
      Parameters:
      value - The value of 'active'.
      Returns:
      This builder.
    • hasActive

      public boolean hasActive()
      Checks whether the 'active' field has been set.
      Returns:
      True if the 'active' field has been set, false otherwise.
    • clearActive

      public RateDataV1.Builder clearActive()
      Clears the value of the 'active' field.
      Returns:
      This builder.
    • build

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