Class CreateKeyOption
java.lang.Object
build.cursed.genapi.forgejo.model.CreateKeyOption
@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 CreateKeyOption
extends Object
CreateKeyOption options when creating a key
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateKeyOptionCreate an instance of CreateKeyOption given an JSON stringgetKey()An armored SSH key to addDescribe if the key has only read access or read/writegetTitle()Title of the key to addinthashCode()voidvoidsetReadOnly(Boolean readOnly) voidtoJson()Convert an instance of CreateKeyOption 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_KEY
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateKeyOption
public CreateKeyOption()
-
-
Method Details
-
key
-
getKey
An armored SSH key to add- Returns:
- key
-
setKey
-
readOnly
-
getReadOnly
Describe if the key has only read access or read/write- Returns:
- readOnly
-
setReadOnly
-
title
-
getTitle
Title of the key to add- Returns:
- title
-
setTitle
-
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 CreateKeyOption
-
fromJson
Create an instance of CreateKeyOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateKeyOption
- Throws:
IOException- if the JSON string is invalid with respect to CreateKeyOption
-
toJson
Convert an instance of CreateKeyOption to an JSON string- Returns:
- JSON string
-