Job

//indico-client-java/com.indico.query/Job

# Job

[jvm]\
class Job(indicoClient: IndicoClient, errors: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>?, val id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))

Job information

## Constructors

| | |
|---|---|
| Job | [jvm]<br>constructor(indicoClient: IndicoClient, errors: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>?, id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) |

## Properties

| Name | Summary |
|---|---|
| id | [jvm]<br>val id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |

## Functions

| Name | Summary |
|---|---|
| errors | [jvm]<br>fun errors(): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)><br>If job status is FAILURE returns the list of errors encoutered |
| result | [jvm]<br>fun result(): JSONObject<br>Retrieve result. Status must be success or an error will be thrown. |
| resultAsString | [jvm]<br>fun resultAsString(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
| results | [jvm]<br>fun results(): JSONArray<br>Retrieve results. Status must be success or an error will be thrown. |
| status | [jvm]<br>fun status(): JobStatus<br>Retrieve job status |