Class CreateHookOption
java.lang.Object
build.cursed.genapi.forgejo.model.CreateHookOption
@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 CreateHookOption
extends Object
CreateHookOption options when create a hook
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(String eventsItem) authorizationHeader(String authorizationHeader) branchFilter(String branchFilter) booleanstatic CreateHookOptionCreate an instance of CreateHookOption given an JSON stringGet activeGet authorizationHeaderGet branchFilterCreateHookOptionConfig has all config options in it required are \"content_type\" and \"url\" RequiredGet eventsgetType()Get typeinthashCode()putConfigItem(String key, String configItem) voidvoidsetAuthorizationHeader(String authorizationHeader) voidsetBranchFilter(String branchFilter) voidvoidvoidtoJson()Convert an instance of CreateHookOption 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:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateHookOption
public CreateHookOption()
-
-
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
CreateHookOptionConfig has all config options in it required are \"content_type\" and \"url\" Required- Returns:
- config
-
setConfig
-
events
-
addEventsItem
-
getEvents
Get events- Returns:
- events
-
setEvents
-
type
-
getType
Get type- Returns:
- type
-
setType
-
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 CreateHookOption
-
fromJson
Create an instance of CreateHookOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateHookOption
- Throws:
IOException- if the JSON string is invalid with respect to CreateHookOption
-
toJson
Convert an instance of CreateHookOption to an JSON string- Returns:
- JSON string
-