Package com.onfido.model
Class CompleteTaskDataBuilder
- java.lang.Object
-
- com.onfido.model.AbstractOpenApiSchema
-
- com.onfido.model.CompleteTaskDataBuilder
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class CompleteTaskDataBuilder extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompleteTaskDataBuilder.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description CompleteTaskDataBuilder()CompleteTaskDataBuilder(Object o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompleteTaskDataBuilderfromJson(String jsonString)Create an instance of CompleteTaskDataBuilder given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: ListUUIDgetId()Give access to shared properties.List<Object>getListObject()Get the actual instance of `ListReportNamegetName()Get nameObjectgetObject()Get the actual instance of `Object`.ReportSharedgetReportShared()Give access to shared properties.Map<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectReportStatusgetStatus()Get statusvoidsetActualInstance(Object instance)Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: ListStringtoJson()Convert an instance of CompleteTaskDataBuilder to an JSON stringstatic voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found-
Methods inherited from class com.onfido.model.AbstractOpenApiSchema
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toString
-
-
-
-
Constructor Detail
-
CompleteTaskDataBuilder
public CompleteTaskDataBuilder()
-
CompleteTaskDataBuilder
public CompleteTaskDataBuilder(Object o)
-
-
Method Detail
-
getSchemas
public Map<String,Class<?>> getSchemas()
Description copied from class:AbstractOpenApiSchemaGet the list of oneOf/anyOf composed schemas allowed to be stored in this object- Specified by:
getSchemasin classAbstractOpenApiSchema- Returns:
- an instance of the actual schema/object
-
setActualInstance
public void setActualInstance(Object instance)
Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: List- Overrides:
setActualInstancein classAbstractOpenApiSchema- Parameters:
instance- the actual instance of the schema/object
-
getActualInstance
public Object getActualInstance()
Get the actual instance, which can be the following: List- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (List
-
getListObject
public List<Object> getListObject() throws ClassCastException
Get the actual instance of `List- Returns:
- The actual instance of `List
` - Throws:
ClassCastException- if the instance is not `List`
-
getObject
public Object getObject() throws ClassCastException
Get the actual instance of `Object`. If the actual instance is not `Object`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Object`
- Throws:
ClassCastException- if the instance is not `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 CompleteTaskDataBuilder
-
fromJson
public static CompleteTaskDataBuilder fromJson(String jsonString) throws IOException
Create an instance of CompleteTaskDataBuilder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CompleteTaskDataBuilder
- Throws:
IOException- if the JSON string is invalid with respect to CompleteTaskDataBuilder
-
toJson
public String toJson()
Convert an instance of CompleteTaskDataBuilder to an JSON string- Returns:
- JSON string
-
getReportShared
public ReportShared getReportShared()
Give access to shared properties. Read-only.- Returns:
- ReportShared object with common fields
-
getId
public UUID getId()
Give access to shared properties. Read-only.- Returns:
- id
-
getName
public ReportName getName()
Get name- Returns:
- name
-
getStatus
public ReportStatus getStatus()
Get status- Returns:
- status
-
-