Class ErrorTypeReference.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<ErrorTypeReference>
org.apache.avro.specific.SpecificRecordBuilderBase<ErrorTypeReference>
ch.admin.bit.jeap.domainevent.avro.error.ErrorTypeReference.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<ErrorTypeReference>
Enclosing class:
ErrorTypeReference

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

    • getType

      public String getType()
      Gets the value of the 'type' field.
      Returns:
      The value.
    • getOptionalType

      public Optional<String> getOptionalType()
      Gets the value of the 'type' field as an Optional
      Returns:
      The Optional<value>.
    • setType

      public ErrorTypeReference.Builder setType(String value)
      Sets the value of the 'type' field.
      Parameters:
      value - The value of 'type'.
      Returns:
      This builder.
    • hasType

      public boolean hasType()
      Checks whether the 'type' field has been set.
      Returns:
      True if the 'type' field has been set, false otherwise.
    • clearType

      public ErrorTypeReference.Builder clearType()
      Clears the value of the 'type' field.
      Returns:
      This builder.
    • getTemporality

      public String getTemporality()
      Gets the value of the 'temporality' field.
      Returns:
      The value.
    • getOptionalTemporality

      public Optional<String> getOptionalTemporality()
      Gets the value of the 'temporality' field as an Optional
      Returns:
      The Optional<value>.
    • setTemporality

      public ErrorTypeReference.Builder setTemporality(String value)
      Sets the value of the 'temporality' field.
      Parameters:
      value - The value of 'temporality'.
      Returns:
      This builder.
    • hasTemporality

      public boolean hasTemporality()
      Checks whether the 'temporality' field has been set.
      Returns:
      True if the 'temporality' field has been set, false otherwise.
    • clearTemporality

      public ErrorTypeReference.Builder clearTemporality()
      Clears the value of the 'temporality' field.
      Returns:
      This builder.
    • getCode

      public String getCode()
      Gets the value of the 'code' field.
      Returns:
      The value.
    • getOptionalCode

      public Optional<String> getOptionalCode()
      Gets the value of the 'code' field as an Optional
      Returns:
      The Optional<value>.
    • setCode

      public ErrorTypeReference.Builder setCode(String value)
      Sets the value of the 'code' field.
      Parameters:
      value - The value of 'code'.
      Returns:
      This builder.
    • hasCode

      public boolean hasCode()
      Checks whether the 'code' field has been set.
      Returns:
      True if the 'code' field has been set, false otherwise.
    • clearCode

      public ErrorTypeReference.Builder clearCode()
      Clears the value of the 'code' field.
      Returns:
      This builder.
    • build

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