Class PullRequestMeta
java.lang.Object
build.cursed.genapi.forgejo.model.PullRequestMeta
@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 PullRequestMeta
extends Object
PullRequestMeta PR info if an issue is a PR
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PullRequestMetaCreate an instance of PullRequestMeta given an JSON stringgetDraft()Get draftGet htmlUrlGet mergedGet mergedAtinthashCode()mergedAt(OffsetDateTime mergedAt) voidvoidsetHtmlUrl(String htmlUrl) voidvoidsetMergedAt(OffsetDateTime mergedAt) toJson()Convert an instance of PullRequestMeta 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_DRAFT
- See Also:
-
SERIALIZED_NAME_HTML_URL
- See Also:
-
SERIALIZED_NAME_MERGED
- See Also:
-
SERIALIZED_NAME_MERGED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PullRequestMeta
public PullRequestMeta()
-
-
Method Details
-
draft
-
getDraft
Get draft- Returns:
- draft
-
setDraft
-
htmlUrl
-
getHtmlUrl
Get htmlUrl- Returns:
- htmlUrl
-
setHtmlUrl
-
merged
-
getMerged
Get merged- Returns:
- merged
-
setMerged
-
mergedAt
-
getMergedAt
Get mergedAt- Returns:
- mergedAt
-
setMergedAt
-
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 PullRequestMeta
-
fromJson
Create an instance of PullRequestMeta given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PullRequestMeta
- Throws:
IOException- if the JSON string is invalid with respect to PullRequestMeta
-
toJson
Convert an instance of PullRequestMeta to an JSON string- Returns:
- JSON string
-