Class ResponseStatus.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<ResponseStatus>
net.sourceforge.jbizmo.commons.avro.response.ResponseStatus.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<ResponseStatus>
Enclosing class:
ResponseStatus

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

    • getCode

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

      public ResponseStatus.Builder setCode(ResponseCode 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 ResponseStatus.Builder clearCode()
      Clears the value of the 'code' field.
      Returns:
      This builder.
    • getMessage

      public String getMessage()
      Gets the value of the 'message' field.
      Returns:
      The value.
    • setMessage

      public ResponseStatus.Builder setMessage(String value)
      Sets the value of the 'message' field.
      Parameters:
      value - The value of 'message'.
      Returns:
      This builder.
    • hasMessage

      public boolean hasMessage()
      Checks whether the 'message' field has been set.
      Returns:
      True if the 'message' field has been set, false otherwise.
    • clearMessage

      public ResponseStatus.Builder clearMessage()
      Clears the value of the 'message' field.
      Returns:
      This builder.
    • build

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