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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseStatusbuild()ResponseStatus.BuilderclearCode()Clears the value of the 'code' field.ResponseStatus.BuilderclearMessage()Clears the value of the 'message' field.ResponseCodegetCode()Gets the value of the 'code' field.StringgetMessage()Gets the value of the 'message' field.booleanhasCode()Checks whether the 'code' field has been set.booleanhasMessage()Checks whether the 'message' field has been set.ResponseStatus.BuildersetCode(ResponseCode value)Sets the value of the 'code' field.ResponseStatus.BuildersetMessage(String value)Sets the value of the 'message' field.
-
-
-
Method Detail
-
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:
buildin interfaceorg.apache.avro.data.RecordBuilder<ResponseStatus>
-
-