Class Hook
java.lang.Object
build.cursed.genapi.forgejo.model.Hook
@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 Hook
extends Object
Hook a hook is a web hook when one repository changed
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(String eventsItem) authorizationHeader(String authorizationHeader) branchFilter(String branchFilter) contentType(String contentType) createdAt(OffsetDateTime createdAt) booleanstatic HookCreate an instance of Hook given an JSON stringGet activeGet authorizationHeaderGet branchFilterDeprecated: use Metadata insteadGet contentTypeGet createdAtGet eventsgetId()Get idGet metadatagetType()Get typeGet updatedAtgetUrl()Get urlinthashCode()putConfigItem(String key, String configItem) voidvoidsetAuthorizationHeader(String authorizationHeader) voidsetBranchFilter(String branchFilter) voidvoidsetContentType(String contentType) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetMetadata(Object metadata) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) voidtoJson()Convert an instance of Hook to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) 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_CONTENT_TYPE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_EVENTS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Hook
public Hook()
-
-
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
Deprecated: use Metadata instead- Returns:
- config
-
setConfig
-
contentType
-
getContentType
Get contentType- Returns:
- contentType
-
setContentType
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
events
-
addEventsItem
-
getEvents
Get events- Returns:
- events
-
setEvents
-
id
-
getId
Get id- Returns:
- id
-
setId
-
metadata
-
getMetadata
Get metadata- Returns:
- metadata
-
setMetadata
-
type
-
getType
Get type- Returns:
- type
-
setType
-
updatedAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
-
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 Hook
-
fromJson
Create an instance of Hook given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Hook
- Throws:
IOException- if the JSON string is invalid with respect to Hook
-
toJson
Convert an instance of Hook to an JSON string- Returns:
- JSON string
-