Package ai.shipeasy.admin.model
Class OpsBrowserContext
java.lang.Object
ai.shipeasy.admin.model.OpsBrowserContext
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OpsBrowserContext
extends Object
Auto-collected browser environment for a `bug`/`feature_request`, captured at file time.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OpsBrowserContextCreate an instance of OpsBrowserContext given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.URL of the page the report was filed from, or `null`.Reporter's user-agent string, or `null`.Reporter's viewport (e.g.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetPageUrl(String pageUrl) voidsetUserAgent(String userAgent) voidsetViewport(String viewport) toJson()Convert an instance of OpsBrowserContext 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_PAGE_URL
- See Also:
-
SERIALIZED_NAME_USER_AGENT
- See Also:
-
SERIALIZED_NAME_VIEWPORT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OpsBrowserContext
public OpsBrowserContext()
-
-
Method Details
-
pageUrl
-
getPageUrl
URL of the page the report was filed from, 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
-
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 OpsBrowserContext 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 OpsBrowserContext
-
fromJson
Create an instance of OpsBrowserContext given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OpsBrowserContext
- Throws:
IOException- if the JSON string is invalid with respect to OpsBrowserContext
-
toJson
Convert an instance of OpsBrowserContext to an JSON string- Returns:
- JSON string
-