Class PersistenceFailedResponse.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class PersistenceFailedResponse.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for PersistenceFailedResponse instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
errorMessage
public ErrorKind
errorKind
-
Method Summary
Modifier and Type Method Description String
getErrorMessage()
Gets the value of the 'errorMessage' field. PersistenceFailedResponse.Builder
setErrorMessage(String value)
Sets the value of the 'errorMessage' field. ErrorKind
getErrorKind()
Gets the value of the 'errorKind' field. PersistenceFailedResponse.Builder
setErrorKind(ErrorKind value)
Sets the value of the 'errorKind' field. boolean
hasErrorMessage()
Checks whether the 'errorMessage' field has been set. PersistenceFailedResponse.Builder
clearErrorMessage()
Clears the value of the 'errorMessage' field. boolean
hasErrorKind()
Checks whether the 'errorKind' field has been set. PersistenceFailedResponse.Builder
clearErrorKind()
Clears the value of the 'errorKind' field. PersistenceFailedResponse
build()
-
-
Method Detail
-
getErrorMessage
String getErrorMessage()
Gets the value of the 'errorMessage' field. Error message provided in the case of failure.
-
setErrorMessage
PersistenceFailedResponse.Builder setErrorMessage(String value)
Sets the value of the 'errorMessage' field. Error message provided in the case of failure.
- Parameters:
value
- The value of 'errorMessage'.
-
getErrorKind
ErrorKind getErrorKind()
Gets the value of the 'errorKind' field. The kind of error that caused the failure
-
setErrorKind
PersistenceFailedResponse.Builder setErrorKind(ErrorKind value)
Sets the value of the 'errorKind' field. The kind of error that caused the failure
- Parameters:
value
- The value of 'errorKind'.
-
hasErrorMessage
boolean hasErrorMessage()
Checks whether the 'errorMessage' field has been set. Error message provided in the case of failure.
-
clearErrorMessage
PersistenceFailedResponse.Builder clearErrorMessage()
Clears the value of the 'errorMessage' field. Error message provided in the case of failure.
-
hasErrorKind
boolean hasErrorKind()
Checks whether the 'errorKind' field has been set. The kind of error that caused the failure
-
clearErrorKind
PersistenceFailedResponse.Builder clearErrorKind()
Clears the value of the 'errorKind' field. The kind of error that caused the failure
-
build
PersistenceFailedResponse build()
-
-
-
-