Class PublicKey
java.lang.Object
build.cursed.genapi.forgejo.model.PublicKey
@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 PublicKey
extends Object
PublicKey publickey is a user key to push code to repository
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanfingerprint(String fingerprint) static PublicKeyCreate an instance of PublicKey given an JSON stringGet createdAtGet fingerprintgetId()Get idgetKey()Get keyGet keyTypeGet readOnlygetTitle()Get titlegetUrl()Get urlgetUser()Get userinthashCode()voidsetCreatedAt(OffsetDateTime createdAt) voidsetFingerprint(String fingerprint) voidvoidvoidsetKeyType(String keyType) voidsetReadOnly(Boolean readOnly) voidvoidvoidtoJson()Convert an instance of PublicKey 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_CREATED_AT
- See Also:
-
SERIALIZED_NAME_FINGERPRINT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_KEY_TYPE
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PublicKey
public PublicKey()
-
-
Method Details
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
fingerprint
-
getFingerprint
Get fingerprint- Returns:
- fingerprint
-
setFingerprint
-
id
-
getId
Get id- Returns:
- id
-
setId
-
key
-
getKey
Get key- Returns:
- key
-
setKey
-
keyType
-
getKeyType
Get keyType- Returns:
- keyType
-
setKeyType
-
readOnly
-
getReadOnly
Get readOnly- Returns:
- readOnly
-
setReadOnly
-
title
-
getTitle
Get title- Returns:
- title
-
setTitle
-
url
-
getUrl
Get url- Returns:
- url
-
setUrl
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
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 PublicKey
-
fromJson
Create an instance of PublicKey given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PublicKey
- Throws:
IOException- if the JSON string is invalid with respect to PublicKey
-
toJson
Convert an instance of PublicKey to an JSON string- Returns:
- JSON string
-