Class CombinedStatus
java.lang.Object
build.cursed.genapi.forgejo.model.CombinedStatus
@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 CombinedStatus
extends Object
CombinedStatus holds the combined state of several statuses for a single commit
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStatusesItem(CommitStatus statusesItem) booleanstatic CombinedStatusCreate an instance of CombinedStatus given an JSON stringGet commitUrlGet repositorygetSha()Get shagetState()CommitStatusState holds the state of a CommitStatus It can be \"pending\", \"success\", \"error\", \"failure\" and \"warning\"Get statusesGet totalCountgetUrl()Get urlinthashCode()repository(Repository repository) voidsetCommitUrl(String commitUrl) voidsetRepository(Repository repository) voidvoidvoidsetStatuses(List<CommitStatus> statuses) voidsetTotalCount(Long totalCount) voidstatuses(List<CommitStatus> statuses) toJson()Convert an instance of CombinedStatus to an JSON stringtoString()totalCount(Long totalCount) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_COMMIT_URL
- See Also:
-
SERIALIZED_NAME_REPOSITORY
- See Also:
-
SERIALIZED_NAME_SHA
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_STATUSES
- See Also:
-
SERIALIZED_NAME_TOTAL_COUNT
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CombinedStatus
public CombinedStatus()
-
-
Method Details
-
commitUrl
-
getCommitUrl
Get commitUrl- Returns:
- commitUrl
-
setCommitUrl
-
repository
-
getRepository
Get repository- Returns:
- repository
-
setRepository
-
sha
-
getSha
Get sha- Returns:
- sha
-
setSha
-
state
-
getState
CommitStatusState holds the state of a CommitStatus It can be \"pending\", \"success\", \"error\", \"failure\" and \"warning\"- Returns:
- state
-
setState
-
statuses
-
addStatusesItem
-
getStatuses
Get statuses- Returns:
- statuses
-
setStatuses
-
totalCount
-
getTotalCount
Get totalCount- Returns:
- totalCount
-
setTotalCount
-
url
-
getUrl
Get url- Returns:
- url
-
setUrl
-
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 CombinedStatus
-
fromJson
Create an instance of CombinedStatus given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CombinedStatus
- Throws:
IOException- if the JSON string is invalid with respect to CombinedStatus
-
toJson
Convert an instance of CombinedStatus to an JSON string- Returns:
- JSON string
-