Class DowloadFileResponse.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<DowloadFileResponse>
net.sourceforge.jbizmo.commons.avro.file.DowloadFileResponse.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<DowloadFileResponse>
- Enclosing class:
- DowloadFileResponse
public static class DowloadFileResponse.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<DowloadFileResponse>
implements org.apache.avro.data.RecordBuilder<DowloadFileResponse>
RecordBuilder for DowloadFileResponse instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'content' field.Clears the value of the 'responseStatus' field.Gets the value of the 'content' field.Gets the value of the 'responseStatus' field.Gets the Builder instance for the 'responseStatus' field and creates one if it doesn't exist yet.booleanChecks whether the 'content' field has been set.booleanChecks whether the 'responseStatus' field has been set.booleanChecks whether the 'responseStatus' field has an active Builder instancesetContent(ByteBuffer value) Sets the value of the 'content' field.setResponseStatus(ResponseStatus value) Sets the value of the 'responseStatus' field.Sets the Builder instance for the 'responseStatus' fieldMethods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getResponseStatus
Gets the value of the 'responseStatus' field.- Returns:
- The value.
-
setResponseStatus
Sets the value of the 'responseStatus' field.- Parameters:
value- The value of 'responseStatus'.- Returns:
- This builder.
-
hasResponseStatus
public boolean hasResponseStatus()Checks whether the 'responseStatus' field has been set.- Returns:
- True if the 'responseStatus' field has been set, false otherwise.
-
getResponseStatusBuilder
Gets the Builder instance for the 'responseStatus' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setResponseStatusBuilder
Sets the Builder instance for the 'responseStatus' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasResponseStatusBuilder
public boolean hasResponseStatusBuilder()Checks whether the 'responseStatus' field has an active Builder instance- Returns:
- True if the 'responseStatus' field has an active Builder instance
-
clearResponseStatus
Clears the value of the 'responseStatus' field.- Returns:
- This builder.
-
getContent
Gets the value of the 'content' field.- Returns:
- The value.
-
setContent
Sets the value of the 'content' field.- Parameters:
value- The value of 'content'.- Returns:
- This builder.
-
hasContent
public boolean hasContent()Checks whether the 'content' field has been set.- Returns:
- True if the 'content' field has been set, false otherwise.
-
clearContent
Clears the value of the 'content' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<DowloadFileResponse>
-