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.
  • Field Details

  • Constructor Details

    • GetOpsItemResponse

      public GetOpsItemResponse()
  • Method Details

    • id

      public GetOpsItemResponse id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Stable opaque item id.
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • number

      public GetOpsItemResponse number(@Nullable BigDecimal number)
    • getNumber

      @Nullable public BigDecimal getNumber()
      Per-project item number (the `#7` handle), or `null` if unnumbered.
      Returns:
      number
    • setNumber

      public void setNumber(@Nullable BigDecimal number)
    • type

      public GetOpsItemResponse type(@Nonnull GetOpsItemResponse.TypeEnum type)
    • getType

      @Nonnull public GetOpsItemResponse.TypeEnum 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

      public void setType(@Nonnull GetOpsItemResponse.TypeEnum type)
    • title

      public GetOpsItemResponse title(@Nonnull String title)
    • getTitle

      @Nonnull public String getTitle()
      One-line item title (all types).
      Returns:
      title
    • setTitle

      public void setTitle(@Nonnull String title)
    • status

      public GetOpsItemResponse status(@Nonnull OpsItemStatus status)
    • getStatus

      @Nonnull public OpsItemStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(@Nonnull OpsItemStatus status)
    • priority

      public GetOpsItemResponse priority(@Nullable OpsItemPriority priority)
    • getPriority

      @Nullable public OpsItemPriority getPriority()
      Triage priority, or `null` if not yet set (all types).
      Returns:
      priority
    • setPriority

      public void setPriority(@Nullable OpsItemPriority priority)
    • source

      public GetOpsItemResponse source(@Nullable GetOpsItemResponse.SourceEnum source)
    • getSource

      @Nullable public GetOpsItemResponse.SourceEnum getSource()
      How the item was filed: `team` (a human admin/teammate — bug/feature) or `system` (auto-filed — error/alert/measure_plan).
      Returns:
      source
    • setSource

      public void setSource(@Nullable GetOpsItemResponse.SourceEnum source)
    • sourceRef

      public GetOpsItemResponse sourceRef(@Nullable String sourceRef)
    • getSourceRef

      @Nullable public String 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

      public void setSourceRef(@Nullable String sourceRef)
    • reporterEmail

      public GetOpsItemResponse reporterEmail(@Nullable String reporterEmail)
    • getReporterEmail

      @Nullable public String getReporterEmail()
      Reporter email (bug/feature), or `null`.
      Returns:
      reporterEmail
    • setReporterEmail

      public void setReporterEmail(@Nullable String reporterEmail)
    • stepsToReproduce

      public GetOpsItemResponse stepsToReproduce(@Nullable String stepsToReproduce)
    • getStepsToReproduce

      @Nullable public String getStepsToReproduce()
      Reproduction steps — populated for `bug`, empty string otherwise.
      Returns:
      stepsToReproduce
    • setStepsToReproduce

      public void setStepsToReproduce(@Nullable String stepsToReproduce)
    • actualResult

      public GetOpsItemResponse actualResult(@Nullable String actualResult)
    • getActualResult

      @Nullable public String getActualResult()
      What actually happened — `bug` only, empty string otherwise.
      Returns:
      actualResult
    • setActualResult

      public void setActualResult(@Nullable String actualResult)
    • expectedResult

      public GetOpsItemResponse expectedResult(@Nullable String expectedResult)
    • getExpectedResult

      @Nullable public String getExpectedResult()
      What was expected — `bug` only, empty string otherwise.
      Returns:
      expectedResult
    • setExpectedResult

      public void setExpectedResult(@Nullable String expectedResult)
    • description

      public GetOpsItemResponse description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Feature description — populated for `feature_request`, empty string otherwise.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • useCase

      public GetOpsItemResponse useCase(@Nullable String useCase)
    • getUseCase

      @Nullable public String getUseCase()
      Feature use case — `feature_request` only, empty string otherwise.
      Returns:
      useCase
    • setUseCase

      public void setUseCase(@Nullable String useCase)
    • context

      public GetOpsItemResponse context(@Nullable OpsItemContext context)
    • getContext

      @Nullable public OpsItemContext 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

      public void setContext(@Nullable OpsItemContext context)
    • attachments

      public GetOpsItemResponse attachments(@Nonnull List<OpsItemAttachment> attachments)
    • addAttachmentsItem

      public GetOpsItemResponse addAttachmentsItem(OpsItemAttachment attachmentsItem)
    • getAttachments

      @Nonnull public List<OpsItemAttachment> 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

      public void setAttachments(@Nonnull List<OpsItemAttachment> attachments)
    • related

      public GetOpsItemResponse related(@Nonnull OpsItemRelated related)
    • getRelated

      @Nonnull public OpsItemRelated getRelated()
      Get related
      Returns:
      related
    • setRelated

      public void setRelated(@Nonnull OpsItemRelated related)
    • connectorData

      public GetOpsItemResponse connectorData(@Nullable ConnectorData connectorData)
    • getConnectorData

      @Nullable public 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

      public void setConnectorData(@Nullable ConnectorData connectorData)
    • notify

      public GetOpsItemResponse notify(@Nullable NotificationTarget notify)
    • getNotify

      @Nullable public NotificationTarget getNotify()
      Per-item completion-notification target, or `null` (falls back to the project default).
      Returns:
      notify
    • setNotify

      public void setNotify(@Nullable NotificationTarget notify)
    • createdAt

      public GetOpsItemResponse createdAt(@Nonnull String createdAt)
    • getCreatedAt

      @Nonnull public String getCreatedAt()
      ISO-8601 creation timestamp.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nonnull String createdAt)
    • updatedAt

      public GetOpsItemResponse updatedAt(@Nullable String updatedAt)
    • getUpdatedAt

      @Nullable public String getUpdatedAt()
      ISO-8601 last-update timestamp.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nullable String updatedAt)
    • putAdditionalProperty

      public GetOpsItemResponse 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 property
      value - value of the property
      Returns:
      the GetOpsItemResponse 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static GetOpsItemResponse fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of GetOpsItemResponse to an JSON string
      Returns:
      JSON string