Package com.onfido.model
Class ResultsFeedback
- java.lang.Object
-
- com.onfido.model.ResultsFeedback
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class ResultsFeedback extends Object
ResultsFeedback
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResultsFeedback.CustomTypeAdapterFactorystatic classResultsFeedback.ExpectedResultEnumThe expected result for the check or report.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHECK_IDstatic StringSERIALIZED_NAME_EXPECTED_RESULTstatic StringSERIALIZED_NAME_FEEDBACK_NOTESstatic StringSERIALIZED_NAME_REPORT_ID
-
Constructor Summary
Constructors Constructor Description ResultsFeedback()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultsFeedbackcheckId(UUID checkId)booleanequals(Object o)ResultsFeedbackexpectedResult(ResultsFeedback.ExpectedResultEnum expectedResult)ResultsFeedbackfeedbackNotes(String feedbackNotes)static ResultsFeedbackfromJson(String jsonString)Create an instance of ResultsFeedback given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.UUIDgetCheckId()The ID of the check (only if report_id is not provided).ResultsFeedback.ExpectedResultEnumgetExpectedResult()The expected result for the check or report.StringgetFeedbackNotes()Any additional information or feedback.UUIDgetReportId()The ID of the check (only if check_id is not provided).inthashCode()ResultsFeedbackputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.ResultsFeedbackreportId(UUID reportId)voidsetCheckId(UUID checkId)voidsetExpectedResult(ResultsFeedback.ExpectedResultEnum expectedResult)voidsetFeedbackNotes(String feedbackNotes)voidsetReportId(UUID reportId)StringtoJson()Convert an instance of ResultsFeedback to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_EXPECTED_RESULT
public static final String SERIALIZED_NAME_EXPECTED_RESULT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CHECK_ID
public static final String SERIALIZED_NAME_CHECK_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REPORT_ID
public static final String SERIALIZED_NAME_REPORT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEEDBACK_NOTES
public static final String SERIALIZED_NAME_FEEDBACK_NOTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
expectedResult
public ResultsFeedback expectedResult(ResultsFeedback.ExpectedResultEnum expectedResult)
-
getExpectedResult
@Nullable public ResultsFeedback.ExpectedResultEnum getExpectedResult()
The expected result for the check or report.- Returns:
- expectedResult
-
setExpectedResult
public void setExpectedResult(ResultsFeedback.ExpectedResultEnum expectedResult)
-
checkId
public ResultsFeedback checkId(UUID checkId)
-
getCheckId
@Nullable public UUID getCheckId()
The ID of the check (only if report_id is not provided).- Returns:
- checkId
-
setCheckId
public void setCheckId(UUID checkId)
-
reportId
public ResultsFeedback reportId(UUID reportId)
-
getReportId
@Nullable public UUID getReportId()
The ID of the check (only if check_id is not provided).- Returns:
- reportId
-
setReportId
public void setReportId(UUID reportId)
-
feedbackNotes
public ResultsFeedback feedbackNotes(String feedbackNotes)
-
getFeedbackNotes
@Nullable public String getFeedbackNotes()
Any additional information or feedback.- Returns:
- feedbackNotes
-
setFeedbackNotes
public void setFeedbackNotes(String feedbackNotes)
-
putAdditionalProperty
public ResultsFeedback putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the ResultsFeedback instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ResultsFeedback
-
fromJson
public static ResultsFeedback fromJson(String jsonString) throws IOException
Create an instance of ResultsFeedback given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ResultsFeedback
- Throws:
IOException- if the JSON string is invalid with respect to ResultsFeedback
-
toJson
public String toJson()
Convert an instance of ResultsFeedback to an JSON string- Returns:
- JSON string
-
-