Class OpsItemContext

java.lang.Object
ai.shipeasy.admin.model.OpsItemContext

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class OpsItemContext extends Object
Per-type capture context on a queue item. Exactly one of `browser` (bug/feature), `error`, `alert`, or `measurePlan` is populated depending on `type`; other keys (e.g. the AI dedupe block on bugs) may also be present.
  • Field Details

  • Constructor Details

    • OpsItemContext

      public OpsItemContext()
  • Method Details

    • browser

      public OpsItemContext browser(@Nullable OpsBrowserContext browser)
    • getBrowser

      @Nullable public OpsBrowserContext getBrowser()
      Get browser
      Returns:
      browser
    • setBrowser

      public void setBrowser(@Nullable OpsBrowserContext browser)
    • error

      public OpsItemContext error(@Nullable OpsErrorContext error)
    • getError

      @Nullable public OpsErrorContext getError()
      Get error
      Returns:
      error
    • setError

      public void setError(@Nullable OpsErrorContext error)
    • alert

      public OpsItemContext alert(@Nullable OpsAlertContext alert)
    • getAlert

      @Nullable public OpsAlertContext getAlert()
      Get alert
      Returns:
      alert
    • setAlert

      public void setAlert(@Nullable OpsAlertContext alert)
    • measurePlan

      public OpsItemContext measurePlan(@Nullable OpsMeasurePlanContext measurePlan)
    • getMeasurePlan

      @Nullable public OpsMeasurePlanContext getMeasurePlan()
      Get measurePlan
      Returns:
      measurePlan
    • setMeasurePlan

      public void setMeasurePlan(@Nullable OpsMeasurePlanContext measurePlan)
    • putAdditionalProperty

      public OpsItemContext 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 OpsItemContext 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 OpsItemContext
    • fromJson

      public static OpsItemContext fromJson(String jsonString) throws IOException
      Create an instance of OpsItemContext given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of OpsItemContext
      Throws:
      IOException - if the JSON string is invalid with respect to OpsItemContext
    • toJson

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