Package ai.shipeasy.admin.model
Class GetOpsItemResponse
java.lang.Object
ai.shipeasy.admin.model.GetOpsItemResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class GetOpsItemResponse
extends Object
One queue item, any of the five types. Shared fields apply to all; `stepsToReproduce`/`actualResult`/`expectedResult` are bug-specific, `description`/`useCase` feature-specific. The auto-collected browser fields (page URL, user-agent, viewport) live under `context.browser` for bug/feature. `context` also carries the hydrated per-type payload for auto-filed `error`/`alert`/`measure_plan` tickets, `attachments` lists any uploaded files, and `related` gives deep links to the underlying resources.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumHow the item was filed: `team` (a human admin/teammate — bug/feature) or `system` (auto-filed — error/alert/measure_plan).static enumQueue item type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactualResult(String actualResult) addAttachmentsItem(OpsItemAttachment attachmentsItem) attachments(List<OpsItemAttachment> attachments) connectorData(ConnectorData connectorData) context(OpsItemContext context) description(String description) booleanexpectedResult(String expectedResult) static GetOpsItemResponseCreate an instance of GetOpsItemResponse given an JSON stringWhat actually happened — `bug` only, empty string otherwise.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Files attached to the report — screenshots, recordings, logs.Per-connector linkage recorded for this item, keyed by connector provider.Type-specific capture context.ISO-8601 creation timestamp.Feature description — populated for `feature_request`, empty string otherwise.What was expected — `bug` only, empty string otherwise.getId()Stable opaque item id.Per-item completion-notification target, or `null` (falls back to the project default).Per-project item number (the `#7` handle), or `null` if unnumbered.Triage priority, or `null` if not yet set (all types).Get relatedReporter email (bug/feature), or `null`.How the item was filed: `team` (a human admin/teammate — bug/feature) or `system` (auto-filed — error/alert/measure_plan).Stable key of the originating record for auto-filed tickets (error fingerprint, `<alert source>:<dedupeKey>`, or measurement-plan ref); `null` for human-filed bugs/features.Get statusReproduction steps — populated for `bug`, empty string otherwise.getTitle()One-line item title (all types).getType()Queue item type.ISO-8601 last-update timestamp.Feature use case — `feature_request` only, empty string otherwise.inthashCode()notify(NotificationTarget notify) number(BigDecimal number) priority(OpsItemPriority priority) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.related(OpsItemRelated related) reporterEmail(String reporterEmail) voidsetActualResult(String actualResult) voidsetAttachments(List<OpsItemAttachment> attachments) voidsetConnectorData(ConnectorData connectorData) voidsetContext(OpsItemContext context) voidsetCreatedAt(String createdAt) voidsetDescription(String description) voidsetExpectedResult(String expectedResult) voidvoidsetNotify(NotificationTarget notify) voidsetNumber(BigDecimal number) voidsetPriority(OpsItemPriority priority) voidsetRelated(OpsItemRelated related) voidsetReporterEmail(String reporterEmail) voidvoidsetSourceRef(String sourceRef) voidsetStatus(OpsItemStatus status) voidsetStepsToReproduce(String stepsToReproduce) voidvoidvoidsetUpdatedAt(String updatedAt) voidsetUseCase(String useCase) source(GetOpsItemResponse.SourceEnum source) status(OpsItemStatus status) stepsToReproduce(String stepsToReproduce) toJson()Convert an instance of GetOpsItemResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NUMBER
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_PRIORITY
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_SOURCE_REF
- See Also:
-
SERIALIZED_NAME_REPORTER_EMAIL
- See Also:
-
SERIALIZED_NAME_STEPS_TO_REPRODUCE
- See Also:
-
SERIALIZED_NAME_ACTUAL_RESULT
- See Also:
-
SERIALIZED_NAME_EXPECTED_RESULT
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_USE_CASE
- See Also:
-
SERIALIZED_NAME_CONTEXT
- See Also:
-
SERIALIZED_NAME_ATTACHMENTS
- See Also:
-
SERIALIZED_NAME_RELATED
- See Also:
-
SERIALIZED_NAME_CONNECTOR_DATA
- See Also:
-
SERIALIZED_NAME_NOTIFY
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GetOpsItemResponse
public GetOpsItemResponse()
-
-
Method Details
-
id
-
getId
Stable opaque item id.- Returns:
- id
-
setId
-
number
-
getNumber
Per-project item number (the `#7` handle), or `null` if unnumbered.- Returns:
- number
-
setNumber
-
type
-
getType
Queue item type. `bug` and `feature_request` are user-fileable; `error`, `alert`, and `measure_plan` tickets are auto-filed by the platform (a tracked production error, a metric-threshold alert, and an assistant-proposed measurement plan respectively).- Returns:
- type
-
setType
-
title
-
getTitle
One-line item title (all types).- Returns:
- title
-
setTitle
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
priority
-
getPriority
Triage priority, or `null` if not yet set (all types).- Returns:
- priority
-
setPriority
-
source
-
getSource
How the item was filed: `team` (a human admin/teammate — bug/feature) or `system` (auto-filed — error/alert/measure_plan).- Returns:
- source
-
setSource
-
sourceRef
-
getSourceRef
Stable key of the originating record for auto-filed tickets (error fingerprint, `<alert source>:<dedupeKey>`, or measurement-plan ref); `null` for human-filed bugs/features.- Returns:
- sourceRef
-
setSourceRef
-
reporterEmail
-
getReporterEmail
Reporter email (bug/feature), or `null`.- Returns:
- reporterEmail
-
setReporterEmail
-
stepsToReproduce
-
getStepsToReproduce
Reproduction steps — populated for `bug`, empty string otherwise.- Returns:
- stepsToReproduce
-
setStepsToReproduce
-
actualResult
-
getActualResult
What actually happened — `bug` only, empty string otherwise.- Returns:
- actualResult
-
setActualResult
-
expectedResult
-
getExpectedResult
What was expected — `bug` only, empty string otherwise.- Returns:
- expectedResult
-
setExpectedResult
-
description
-
getDescription
Feature description — populated for `feature_request`, empty string otherwise.- Returns:
- description
-
setDescription
-
useCase
-
getUseCase
Feature use case — `feature_request` only, empty string otherwise.- Returns:
- useCase
-
setUseCase
-
context
-
getContext
Type-specific capture context. For `bug`/`feature_request` it carries `browser` (the auto-collected page URL / user-agent / viewport). For auto-filed tickets it carries the hydrated `error`, `alert`, or `measurePlan` block. `null` only for legacy rows with nothing captured.- Returns:
- context
-
setContext
-
attachments
-
addAttachmentsItem
-
getAttachments
Files attached to the report — screenshots, recordings, logs. Populated for `bug`/`feature_request`; always an empty array for auto-filed `error`/`alert`/`measure_plan` tickets. Fetch each via its `fetchUrl` with the same admin/ops key (the download route is ops-key allow-listed).- Returns:
- attachments
-
setAttachments
-
getRelated
Get related- Returns:
- related
-
setRelated
-
connectorData
-
getConnectorData
Per-connector linkage recorded for this item, keyed by connector provider. Populated as connectors act on the item (e.g. GitHub opens an issue, Slack posts a message); more than one provider can be present at once. `null` if no connector has touched the item.- Returns:
- connectorData
-
setConnectorData
-
notify
-
getNotify
Per-item completion-notification target, or `null` (falls back to the project default).- Returns:
- notify
-
setNotify
-
createdAt
-
getCreatedAt
ISO-8601 creation timestamp.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
ISO-8601 last-update timestamp.- Returns:
- updatedAt
-
setUpdatedAt
-
putAdditionalProperty
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 GetOpsItemResponse instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates 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 GetOpsItemResponse
-
fromJson
Create an instance of GetOpsItemResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetOpsItemResponse
- Throws:
IOException- if the JSON string is invalid with respect to GetOpsItemResponse
-
toJson
Convert an instance of GetOpsItemResponse to an JSON string- Returns:
- JSON string
-