Class CreateStatusOption
java.lang.Object
build.cursed.genapi.forgejo.model.CreateStatusOption
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class CreateStatusOption
extends Object
CreateStatusOption holds the information needed to create a new CommitStatus for a Commit
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanstatic CreateStatusOptionCreate an instance of CreateStatusOption given an JSON stringGet contextGet descriptiongetState()CommitStatusState holds the state of a CommitStatus It can be \"pending\", \"success\", \"error\", \"failure\" and \"warning\"Get targetUrlinthashCode()voidsetContext(String context) voidsetDescription(String description) voidvoidsetTargetUrl(String targetUrl) toJson()Convert an instance of CreateStatusOption 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_CONTEXT
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_TARGET_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateStatusOption
public CreateStatusOption()
-
-
Method Details
-
context
-
getContext
Get context- Returns:
- context
-
setContext
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
state
-
getState
CommitStatusState holds the state of a CommitStatus It can be \"pending\", \"success\", \"error\", \"failure\" and \"warning\"- Returns:
- state
-
setState
-
targetUrl
-
getTargetUrl
Get targetUrl- Returns:
- targetUrl
-
setTargetUrl
-
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 CreateStatusOption
-
fromJson
Create an instance of CreateStatusOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateStatusOption
- Throws:
IOException- if the JSON string is invalid with respect to CreateStatusOption
-
toJson
Convert an instance of CreateStatusOption to an JSON string- Returns:
- JSON string
-