Class IssueTemplate
java.lang.Object
build.cursed.genapi.forgejo.model.IssueTemplate
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class IssueTemplate
extends Object
IssueTemplate represents an issue template for a repository
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBodyItem(IssueFormField bodyItem) addLabelsItem(String labelsItem) body(List<IssueFormField> body) booleanstatic IssueTemplateCreate an instance of IssueTemplate given an JSON stringgetAbout()Get aboutgetBody()Get bodyGet contentGet fileNameGet labelsgetName()Get namegetRef()Get refgetTitle()Get titleinthashCode()voidvoidsetBody(List<IssueFormField> body) voidsetContent(String content) voidsetFileName(String fileName) voidvoidvoidvoidtoJson()Convert an instance of IssueTemplate 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_ABOUT
- See Also:
-
SERIALIZED_NAME_BODY
- See Also:
-
SERIALIZED_NAME_CONTENT
- See Also:
-
SERIALIZED_NAME_FILE_NAME
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_REF
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
IssueTemplate
public IssueTemplate()
-
-
Method Details
-
about
-
getAbout
Get about- Returns:
- about
-
setAbout
-
body
-
addBodyItem
-
getBody
Get body- Returns:
- body
-
setBody
-
content
-
getContent
Get content- Returns:
- content
-
setContent
-
fileName
-
getFileName
Get fileName- Returns:
- fileName
-
setFileName
-
labels
-
addLabelsItem
-
getLabels
Get labels- Returns:
- labels
-
setLabels
-
name
-
getName
Get name- Returns:
- name
-
setName
-
ref
-
getRef
Get ref- Returns:
- ref
-
setRef
-
title
-
getTitle
Get title- Returns:
- title
-
setTitle
-
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 IssueTemplate
-
fromJson
Create an instance of IssueTemplate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IssueTemplate
- Throws:
IOException- if the JSON string is invalid with respect to IssueTemplate
-
toJson
Convert an instance of IssueTemplate to an JSON string- Returns:
- JSON string
-