Package ai.shipeasy.admin.model
Class OpsItemAttachment
java.lang.Object
ai.shipeasy.admin.model.OpsItemAttachment
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OpsItemAttachment
extends Object
A file uploaded with a bug/feature report.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OpsItemAttachmentCreate an instance of OpsItemAttachment given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Admin-API path to download the file (`GET` with the admin/ops key — screenshots render inline; recordings can't be watched).Sanitized original filename.getId()Attachment id.getKind()`screenshot` | `video` | `log`.MIME type, e.g.Upload size in bytes.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetFetchUrl(String fetchUrl) voidsetFilename(String filename) voidvoidvoidsetMimeType(String mimeType) voidsetSizeBytes(BigDecimal sizeBytes) sizeBytes(BigDecimal sizeBytes) toJson()Convert an instance of OpsItemAttachment 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_ID
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_FILENAME
- See Also:
-
SERIALIZED_NAME_MIME_TYPE
- See Also:
-
SERIALIZED_NAME_SIZE_BYTES
- See Also:
-
SERIALIZED_NAME_FETCH_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OpsItemAttachment
public OpsItemAttachment()
-
-
Method Details
-
id
-
getId
Attachment id.- Returns:
- id
-
setId
-
kind
-
getKind
`screenshot` | `video` | `log`.- Returns:
- kind
-
setKind
-
filename
-
getFilename
Sanitized original filename.- Returns:
- filename
-
setFilename
-
mimeType
-
getMimeType
MIME type, e.g. `image/png`.- Returns:
- mimeType
-
setMimeType
-
sizeBytes
-
getSizeBytes
Upload size in bytes.- Returns:
- sizeBytes
-
setSizeBytes
-
fetchUrl
-
getFetchUrl
Admin-API path to download the file (`GET` with the admin/ops key — screenshots render inline; recordings can't be watched).- Returns:
- fetchUrl
-
setFetchUrl
-
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 OpsItemAttachment 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 OpsItemAttachment
-
fromJson
Create an instance of OpsItemAttachment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OpsItemAttachment
- Throws:
IOException- if the JSON string is invalid with respect to OpsItemAttachment
-
toJson
Convert an instance of OpsItemAttachment to an JSON string- Returns:
- JSON string
-