Package ai.shipeasy.admin.model
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalert(OpsAlertContext alert) browser(OpsBrowserContext browser) booleanerror(OpsErrorContext error) static OpsItemContextCreate an instance of OpsItemContext given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAlert()Get alertGet browsergetError()Get errorGet measurePlaninthashCode()measurePlan(OpsMeasurePlanContext measurePlan) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAlert(OpsAlertContext alert) voidsetBrowser(OpsBrowserContext browser) voidsetError(OpsErrorContext error) voidsetMeasurePlan(OpsMeasurePlanContext measurePlan) toJson()Convert an instance of OpsItemContext 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_BROWSER
- See Also:
-
SERIALIZED_NAME_ERROR
- See Also:
-
SERIALIZED_NAME_ALERT
- See Also:
-
SERIALIZED_NAME_MEASURE_PLAN
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OpsItemContext
public OpsItemContext()
-
-
Method Details
-
browser
-
getBrowser
Get browser- Returns:
- browser
-
setBrowser
-
error
-
getError
Get error- Returns:
- error
-
setError
-
alert
-
getAlert
Get alert- Returns:
- alert
-
setAlert
-
measurePlan
-
getMeasurePlan
Get measurePlan- Returns:
- measurePlan
-
setMeasurePlan
-
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 OpsItemContext 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 OpsItemContext
-
fromJson
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
Convert an instance of OpsItemContext to an JSON string- Returns:
- JSON string
-