Class UploadStatus.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class UploadStatus.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for UploadStatus instances.
-
-
Field Summary
Fields Modifier and Type Field Description public boolean
complete
public String
message
public SecureHash
checksum
public SecureHash.Builder
checksumBuilder
public ExceptionEnvelope
exception
public ExceptionEnvelope.Builder
exceptionBuilder
-
Method Summary
Modifier and Type Method Description boolean
getComplete()
Gets the value of the 'complete' field. UploadStatus.Builder
setComplete(boolean value)
Sets the value of the 'complete' field. String
getMessage()
Gets the value of the 'message' field. UploadStatus.Builder
setMessage(String value)
Sets the value of the 'message' field. SecureHash
getChecksum()
Gets the value of the 'checksum' field. UploadStatus.Builder
setChecksum(SecureHash value)
Sets the value of the 'checksum' field. SecureHash.Builder
getChecksumBuilder()
Gets the Builder instance for the 'checksum' field and creates one if it doesn't exist yet. UploadStatus.Builder
setChecksumBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'checksum' field The checksum of the file that was uploaded that can be used to reference it. ExceptionEnvelope
getException()
Gets the value of the 'exception' field. UploadStatus.Builder
setException(ExceptionEnvelope value)
Sets the value of the 'exception' field. ExceptionEnvelope.Builder
getExceptionBuilder()
Gets the Builder instance for the 'exception' field and creates one if it doesn't exist yet. UploadStatus.Builder
setExceptionBuilder(ExceptionEnvelope.Builder value)
Sets the Builder instance for the 'exception' field cause of failure if the request was unsuccessful boolean
hasComplete()
Checks whether the 'complete' field has been set. UploadStatus.Builder
clearComplete()
Clears the value of the 'complete' field. boolean
hasMessage()
Checks whether the 'message' field has been set. UploadStatus.Builder
clearMessage()
Clears the value of the 'message' field. boolean
hasChecksum()
Checks whether the 'checksum' field has been set. boolean
hasChecksumBuilder()
Checks whether the 'checksum' field has an active Builder instance The checksum of the file that was uploaded that can be used to reference it. UploadStatus.Builder
clearChecksum()
Clears the value of the 'checksum' field. boolean
hasException()
Checks whether the 'exception' field has been set. boolean
hasExceptionBuilder()
Checks whether the 'exception' field has an active Builder instance cause of failure if the request was unsuccessful UploadStatus.Builder
clearException()
Clears the value of the 'exception' field. UploadStatus
build()
-
-
Method Detail
-
getComplete
boolean getComplete()
Gets the value of the 'complete' field. Has the upload completed? If false, it's likely in progress, but you should check the exception field
-
setComplete
UploadStatus.Builder setComplete(boolean value)
Sets the value of the 'complete' field. Has the upload completed? If false, it's likely in progress, but you should check the exception field
- Parameters:
value
- The value of 'complete'.
-
getMessage
String getMessage()
Gets the value of the 'message' field. A message indicating the current status of the upload.
-
setMessage
UploadStatus.Builder setMessage(String value)
Sets the value of the 'message' field. A message indicating the current status of the upload.
- Parameters:
value
- The value of 'message'.
-
getChecksum
SecureHash getChecksum()
Gets the value of the 'checksum' field. The checksum of the file that was uploaded that can be used to reference it.
-
setChecksum
UploadStatus.Builder setChecksum(SecureHash value)
Sets the value of the 'checksum' field. The checksum of the file that was uploaded that can be used to reference it.
- Parameters:
value
- The value of 'checksum'.
-
getChecksumBuilder
SecureHash.Builder getChecksumBuilder()
Gets the Builder instance for the 'checksum' field and creates one if it doesn't exist yet. The checksum of the file that was uploaded that can be used to reference it.
-
setChecksumBuilder
UploadStatus.Builder setChecksumBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'checksum' field The checksum of the file that was uploaded that can be used to reference it.
- Parameters:
value
- The builder instance that must be set.
-
getException
ExceptionEnvelope getException()
Gets the value of the 'exception' field. cause of failure if the request was unsuccessful
-
setException
UploadStatus.Builder setException(ExceptionEnvelope value)
Sets the value of the 'exception' field. cause of failure if the request was unsuccessful
- Parameters:
value
- The value of 'exception'.
-
getExceptionBuilder
ExceptionEnvelope.Builder getExceptionBuilder()
Gets the Builder instance for the 'exception' field and creates one if it doesn't exist yet. cause of failure if the request was unsuccessful
-
setExceptionBuilder
UploadStatus.Builder setExceptionBuilder(ExceptionEnvelope.Builder value)
Sets the Builder instance for the 'exception' field cause of failure if the request was unsuccessful
- Parameters:
value
- The builder instance that must be set.
-
hasComplete
boolean hasComplete()
Checks whether the 'complete' field has been set. Has the upload completed? If false, it's likely in progress, but you should check the exception field
-
clearComplete
UploadStatus.Builder clearComplete()
Clears the value of the 'complete' field. Has the upload completed? If false, it's likely in progress, but you should check the exception field
-
hasMessage
boolean hasMessage()
Checks whether the 'message' field has been set. A message indicating the current status of the upload.
-
clearMessage
UploadStatus.Builder clearMessage()
Clears the value of the 'message' field. A message indicating the current status of the upload.
-
hasChecksum
boolean hasChecksum()
Checks whether the 'checksum' field has been set. The checksum of the file that was uploaded that can be used to reference it.
-
hasChecksumBuilder
boolean hasChecksumBuilder()
Checks whether the 'checksum' field has an active Builder instance The checksum of the file that was uploaded that can be used to reference it.
-
clearChecksum
UploadStatus.Builder clearChecksum()
Clears the value of the 'checksum' field. The checksum of the file that was uploaded that can be used to reference it.
-
hasException
boolean hasException()
Checks whether the 'exception' field has been set. cause of failure if the request was unsuccessful
-
hasExceptionBuilder
boolean hasExceptionBuilder()
Checks whether the 'exception' field has an active Builder instance cause of failure if the request was unsuccessful
-
clearException
UploadStatus.Builder clearException()
Clears the value of the 'exception' field. cause of failure if the request was unsuccessful
-
build
UploadStatus build()
-
-
-
-