Class CreateGPGKeyOption
java.lang.Object
build.cursed.genapi.forgejo.model.CreateGPGKeyOption
@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 CreateGPGKeyOption
extends Object
CreateGPGKeyOption options create user GPG key
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarmoredPublicKey(String armoredPublicKey) armoredSignature(String armoredSignature) booleanstatic CreateGPGKeyOptionCreate an instance of CreateGPGKeyOption given an JSON stringAn armored GPG key to addGet armoredSignatureinthashCode()voidsetArmoredPublicKey(String armoredPublicKey) voidsetArmoredSignature(String armoredSignature) toJson()Convert an instance of CreateGPGKeyOption 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_ARMORED_PUBLIC_KEY
- See Also:
-
SERIALIZED_NAME_ARMORED_SIGNATURE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateGPGKeyOption
public CreateGPGKeyOption()
-
-
Method Details
-
armoredPublicKey
-
getArmoredPublicKey
An armored GPG key to add- Returns:
- armoredPublicKey
-
setArmoredPublicKey
-
armoredSignature
-
getArmoredSignature
Get armoredSignature- Returns:
- armoredSignature
-
setArmoredSignature
-
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 CreateGPGKeyOption
-
fromJson
Create an instance of CreateGPGKeyOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateGPGKeyOption
- Throws:
IOException- if the JSON string is invalid with respect to CreateGPGKeyOption
-
toJson
Convert an instance of CreateGPGKeyOption to an JSON string- Returns:
- JSON string
-