Class TagProtection
java.lang.Object
build.cursed.genapi.forgejo.model.TagProtection
@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 TagProtection
extends Object
TagProtection represents a tag protection
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWhitelistTeamsItem(String whitelistTeamsItem) addWhitelistUsernamesItem(String whitelistUsernamesItem) createdAt(OffsetDateTime createdAt) booleanstatic TagProtectionCreate an instance of TagProtection given an JSON stringGet createdAtgetId()Get idGet namePatternGet updatedAtGet whitelistTeamsGet whitelistUsernamesinthashCode()namePattern(String namePattern) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetNamePattern(String namePattern) voidsetUpdatedAt(OffsetDateTime updatedAt) voidsetWhitelistTeams(List<String> whitelistTeams) voidsetWhitelistUsernames(List<String> whitelistUsernames) toJson()Convert an instance of TagProtection to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwhitelistTeams(List<String> whitelistTeams) whitelistUsernames(List<String> whitelistUsernames)
-
Field Details
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME_PATTERN
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_WHITELIST_TEAMS
- See Also:
-
SERIALIZED_NAME_WHITELIST_USERNAMES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TagProtection
public TagProtection()
-
-
Method Details
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
id
-
getId
Get id- Returns:
- id
-
setId
-
namePattern
-
getNamePattern
Get namePattern- Returns:
- namePattern
-
setNamePattern
-
updatedAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
-
whitelistTeams
-
addWhitelistTeamsItem
-
getWhitelistTeams
Get whitelistTeams- Returns:
- whitelistTeams
-
setWhitelistTeams
-
whitelistUsernames
-
addWhitelistUsernamesItem
-
getWhitelistUsernames
Get whitelistUsernames- Returns:
- whitelistUsernames
-
setWhitelistUsernames
-
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 TagProtection
-
fromJson
Create an instance of TagProtection given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TagProtection
- Throws:
IOException- if the JSON string is invalid with respect to TagProtection
-
toJson
Convert an instance of TagProtection to an JSON string- Returns:
- JSON string
-