Package com.qtsurfer.api.client.model
Class DatasetUploadState
java.lang.Object
com.qtsurfer.api.client.model.DatasetUploadState
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class DatasetUploadState
extends Object
Progress of one upload, from staged through ingest. Durably recorded once a version exists, so `ready`/`failed` are permanent answers; `uploading`/`ingesting` reflect in-flight state that can itself age out — see the `404` case on `GET .../uploads/{uploadId}`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum* `uploading` — the file was PUT to the presigned URL, but `finalize` has not been called yet. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this DatasetUploadState object is equal to o.getError()A human-readable reason, present when `status` is `failed` (e.g.getJobId()The ingest job id, while `status` is `ingesting`.* `uploading` — the file was PUT to the presigned URL, but `finalize` has not been called yet.Get uploadIdPresent when `status` is `ready` or `failed`.inthashCode()voidvoidvoidvoidsetUploadId(String uploadId) voidsetVersion(DatasetVersion version) status(DatasetUploadState.StatusEnum status) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.version(DatasetVersion version)
-
Field Details
-
JSON_PROPERTY_UPLOAD_ID
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_JOB_ID
- See Also:
-
JSON_PROPERTY_ERROR
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
-
Constructor Details
-
DatasetUploadState
public DatasetUploadState()
-
-
Method Details
-
uploadId
-
getUploadId
Get uploadId- Returns:
- uploadId
-
setUploadId
-
status
-
getStatus
* `uploading` — the file was PUT to the presigned URL, but `finalize` has not been called yet. * `ingesting` — `finalize` was called; the worker is parsing and validating the file. * `ready` — ingested successfully. `version` carries the result. * `failed` — ingest rejected the file (e.g. bad CSV contract, mixed timestamp units, a `.zip` with no file inside or more than one).- Returns:
- status
-
setStatus
-
jobId
-
getJobId
The ingest job id, while `status` is `ingesting`.- Returns:
- jobId
-
setJobId
-
error
-
getError
A human-readable reason, present when `status` is `failed` (e.g. bad CSV contract, mixed timestamp units, a `.zip` with no file inside or more than one). Durably recorded alongside the failure itself, so it stays available however long after the fact you poll — not tied to how recently the failure happened.- Returns:
- error
-
setError
-
version
-
getVersion
Present when `status` is `ready` or `failed`.- Returns:
- version
-
setVersion
-
equals
Return true if this DatasetUploadState object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-