Class GPGKeyEmail
java.lang.Object
build.cursed.genapi.forgejo.model.GPGKeyEmail
@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 GPGKeyEmail
extends Object
GPGKeyEmail an email attached to a GPGKey
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GPGKeyEmailCreate an instance of GPGKeyEmail given an JSON stringgetEmail()Get emailGet verifiedinthashCode()voidvoidsetVerified(Boolean verified) toJson()Convert an instance of GPGKeyEmail 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_EMAIL
- See Also:
-
SERIALIZED_NAME_VERIFIED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GPGKeyEmail
public GPGKeyEmail()
-
-
Method Details
-
email
-
getEmail
Get email- Returns:
-
setEmail
-
verified
-
getVerified
Get verified- Returns:
- verified
-
setVerified
-
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 GPGKeyEmail
-
fromJson
Create an instance of GPGKeyEmail given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GPGKeyEmail
- Throws:
IOException- if the JSON string is invalid with respect to GPGKeyEmail
-
toJson
Convert an instance of GPGKeyEmail to an JSON string- Returns:
- JSON string
-