Class EditHookOption
java.lang.Object
build.cursed.genapi.forgejo.model.EditHookOption
@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 EditHookOption
extends Object
EditHookOption options when modify one hook
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(String eventsItem) authorizationHeader(String authorizationHeader) branchFilter(String branchFilter) booleanstatic EditHookOptionCreate an instance of EditHookOption given an JSON stringGet activeGet authorizationHeaderGet branchFilterGet configGet eventsinthashCode()putConfigItem(String key, String configItem) voidvoidsetAuthorizationHeader(String authorizationHeader) voidsetBranchFilter(String branchFilter) voidvoidtoJson()Convert an instance of EditHookOption 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_ACTIVE
- See Also:
-
SERIALIZED_NAME_AUTHORIZATION_HEADER
- See Also:
-
SERIALIZED_NAME_BRANCH_FILTER
- See Also:
-
SERIALIZED_NAME_CONFIG
- See Also:
-
SERIALIZED_NAME_EVENTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EditHookOption
public EditHookOption()
-
-
Method Details
-
active
-
getActive
Get active- Returns:
- active
-
setActive
-
authorizationHeader
-
getAuthorizationHeader
Get authorizationHeader- Returns:
- authorizationHeader
-
setAuthorizationHeader
-
branchFilter
-
getBranchFilter
Get branchFilter- Returns:
- branchFilter
-
setBranchFilter
-
config
-
putConfigItem
-
getConfig
Get config- Returns:
- config
-
setConfig
-
events
-
addEventsItem
-
getEvents
Get events- Returns:
- events
-
setEvents
-
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 EditHookOption
-
fromJson
Create an instance of EditHookOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EditHookOption
- Throws:
IOException- if the JSON string is invalid with respect to EditHookOption
-
toJson
Convert an instance of EditHookOption to an JSON string- Returns:
- JSON string
-