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 Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'code' field.Clears the value of the 'message' field.getCode()Gets the value of the 'code' field.Gets the value of the 'message' field.booleanhasCode()Checks whether the 'code' field has been set.booleanChecks whether the 'message' field has been set.setCode(ResponseCode value) Sets the value of the 'code' field.setMessage(String value) Sets the value of the 'message' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getCode
Gets the value of the 'code' field.- Returns:
- The value.
-
setCode
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
Clears the value of the 'code' field.- Returns:
- This builder.
-
getMessage
Gets the value of the 'message' field.- Returns:
- The value.
-
setMessage
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
Clears the value of the 'message' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<ResponseStatus>
-