Class Status.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<Status>
org.springframework.cloud.stream.samples.Status.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Status>
Enclosing class:
Status

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

    • getId

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

      public Status.Builder setId(CharSequence 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 Status.Builder clearId()
      Clears the value of the 'id' field.
      Returns:
      This builder.
    • getText

      public CharSequence getText()
      Gets the value of the 'text' field.
      Returns:
      The value.
    • setText

      public Status.Builder setText(CharSequence value)
      Sets the value of the 'text' field.
      Parameters:
      value - The value of 'text'.
      Returns:
      This builder.
    • hasText

      public boolean hasText()
      Checks whether the 'text' field has been set.
      Returns:
      True if the 'text' field has been set, false otherwise.
    • clearText

      public Status.Builder clearText()
      Clears the value of the 'text' field.
      Returns:
      This builder.
    • getTimestamp

      public long getTimestamp()
      Gets the value of the 'timestamp' field.
      Returns:
      The value.
    • setTimestamp

      public Status.Builder setTimestamp(long value)
      Sets the value of the 'timestamp' field.
      Parameters:
      value - The value of 'timestamp'.
      Returns:
      This builder.
    • hasTimestamp

      public boolean hasTimestamp()
      Checks whether the 'timestamp' field has been set.
      Returns:
      True if the 'timestamp' field has been set, false otherwise.
    • clearTimestamp

      public Status.Builder clearTimestamp()
      Clears the value of the 'timestamp' field.
      Returns:
      This builder.
    • build

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