Package ai.shipeasy.admin.model
Class CreateBugRequest
java.lang.Object
ai.shipeasy.admin.model.CreateBugRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateBugRequest
extends Object
Bug-kind fields for `POST /api/admin/ops` (sent with `type: bug`).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDiscriminator — files a bug. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactualResult(String actualResult) booleanexpectedResult(String expectedResult) static CreateBugRequestCreate an instance of CreateBugRequest given an JSON stringWhat actually happened.Arbitrary capture context, or `null`.What was expected instead.Where this bug's completion notification lands.URL of the page the bug relates to, or `null`.Initial triage priority, or `null`.Email of the reporter, or `null`.How to reproduce the bug.getTitle()One-line bug title (no leading/trailing whitespace).getType()Discriminator — files a bug.Reporter's user-agent string, or `null`.Reporter's viewport (e.g.inthashCode()notify(NotificationTarget notify) priority(OpsItemPriority priority) putContextItem(String key, Object contextItem) reporterEmail(String reporterEmail) voidsetActualResult(String actualResult) voidsetContext(Map<String, Object> context) voidsetExpectedResult(String expectedResult) voidsetNotify(NotificationTarget notify) voidsetPageUrl(URI pageUrl) voidsetPriority(OpsItemPriority priority) voidsetReporterEmail(String reporterEmail) voidsetStepsToReproduce(String stepsToReproduce) voidvoidvoidsetUserAgent(String userAgent) voidsetViewport(String viewport) stepsToReproduce(String stepsToReproduce) toJson()Convert an instance of CreateBugRequest 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_TYPE
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_STEPS_TO_REPRODUCE
- See Also:
-
SERIALIZED_NAME_ACTUAL_RESULT
- See Also:
-
SERIALIZED_NAME_EXPECTED_RESULT
- See Also:
-
SERIALIZED_NAME_PRIORITY
- See Also:
-
SERIALIZED_NAME_REPORTER_EMAIL
- See Also:
-
SERIALIZED_NAME_PAGE_URL
- See Also:
-
SERIALIZED_NAME_USER_AGENT
- See Also:
-
SERIALIZED_NAME_VIEWPORT
- See Also:
-
SERIALIZED_NAME_CONTEXT
- See Also:
-
SERIALIZED_NAME_NOTIFY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateBugRequest
public CreateBugRequest()
-
-
Method Details
-
type
-
getType
Discriminator — files a bug.- Returns:
- type
-
setType
-
title
-
getTitle
One-line bug title (no leading/trailing whitespace).- Returns:
- title
-
setTitle
-
stepsToReproduce
-
getStepsToReproduce
How to reproduce the bug.- Returns:
- stepsToReproduce
-
setStepsToReproduce
-
actualResult
-
getActualResult
What actually happened.- Returns:
- actualResult
-
setActualResult
-
expectedResult
-
getExpectedResult
What was expected instead.- Returns:
- expectedResult
-
setExpectedResult
-
priority
-
getPriority
Initial triage priority, or `null`.- Returns:
- priority
-
setPriority
-
reporterEmail
-
getReporterEmail
Email of the reporter, or `null`.- Returns:
- reporterEmail
-
setReporterEmail
-
pageUrl
-
getPageUrl
URL of the page the bug relates to, or `null`.- Returns:
- pageUrl
-
setPageUrl
-
userAgent
-
getUserAgent
Reporter's user-agent string, or `null`.- Returns:
- userAgent
-
setUserAgent
-
viewport
-
getViewport
Reporter's viewport (e.g. `1280x720`), or `null`.- Returns:
- viewport
-
setViewport
-
context
-
putContextItem
-
getContext
Arbitrary capture context, or `null`.- Returns:
- context
-
setContext
-
notify
-
getNotify
Where this bug's completion notification lands.- Returns:
- notify
-
setNotify
-
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 CreateBugRequest
-
fromJson
Create an instance of CreateBugRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateBugRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateBugRequest
-
toJson
Convert an instance of CreateBugRequest to an JSON string- Returns:
- JSON string
-