Class UploadFileRequest.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<UploadFileRequest>
net.sourceforge.jbizmo.commons.avro.file.UploadFileRequest.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<UploadFileRequest>
- Enclosing class:
- UploadFileRequest
public static class UploadFileRequest.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<UploadFileRequest>
implements org.apache.avro.data.RecordBuilder<UploadFileRequest>
RecordBuilder for UploadFileRequest instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'content' field.Clears the value of the 'fileName' field.Clears the value of the 'path' field.Gets the value of the 'content' field.Gets the value of the 'fileName' field.getPath()Gets the value of the 'path' field.booleanChecks whether the 'content' field has been set.booleanChecks whether the 'fileName' field has been set.booleanhasPath()Checks whether the 'path' field has been set.setContent(ByteBuffer value) Sets the value of the 'content' field.setFileName(String value) Sets the value of the 'fileName' field.Sets the value of the 'path' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getFileName
Gets the value of the 'fileName' field.- Returns:
- The value.
-
setFileName
Sets the value of the 'fileName' field.- Parameters:
value- The value of 'fileName'.- Returns:
- This builder.
-
hasFileName
public boolean hasFileName()Checks whether the 'fileName' field has been set.- Returns:
- True if the 'fileName' field has been set, false otherwise.
-
clearFileName
Clears the value of the 'fileName' field.- Returns:
- This builder.
-
getPath
Gets the value of the 'path' field.- Returns:
- The value.
-
setPath
Sets the value of the 'path' field.- Parameters:
value- The value of 'path'.- Returns:
- This builder.
-
hasPath
public boolean hasPath()Checks whether the 'path' field has been set.- Returns:
- True if the 'path' field has been set, false otherwise.
-
clearPath
Clears the value of the 'path' 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<UploadFileRequest>
-