Class Email
java.lang.Object
build.cursed.genapi.forgejo.model.Email
@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 Email
extends Object
Email an email address belonging to a user
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EmailCreate an instance of Email given an JSON stringgetEmail()Get emailGet primaryGet userIdGet usernameGet verifiedinthashCode()voidvoidsetPrimary(Boolean primary) voidvoidsetUsername(String username) voidsetVerified(Boolean verified) toJson()Convert an instance of Email 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_PRIMARY
- See Also:
-
SERIALIZED_NAME_USER_ID
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
SERIALIZED_NAME_VERIFIED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Email
public Email()
-
-
Method Details
-
email
-
getEmail
Get email- Returns:
-
setEmail
-
-
getPrimary
Get primary- Returns:
- primary
-
setPrimary
-
userId
-
getUserId
Get userId- Returns:
- userId
-
setUserId
-
username
-
getUsername
Get username- Returns:
- username
-
setUsername
-
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 Email
-
fromJson
Create an instance of Email given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Email
- Throws:
IOException- if the JSON string is invalid with respect to Email
-
toJson
Convert an instance of Email to an JSON string- Returns:
- JSON string
-