Class GPGKey

java.lang.Object
build.cursed.genapi.forgejo.model.GPGKey

@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 GPGKey extends Object
GPGKey a user GPG key to sign commit and tag in repository
  • Field Details

  • Constructor Details

    • GPGKey

      public GPGKey()
  • Method Details

    • canCertify

      public GPGKey canCertify(@Nullable Boolean canCertify)
    • getCanCertify

      @Nullable public Boolean getCanCertify()
      Get canCertify
      Returns:
      canCertify
    • setCanCertify

      public void setCanCertify(@Nullable Boolean canCertify)
    • canEncryptComms

      public GPGKey canEncryptComms(@Nullable Boolean canEncryptComms)
    • getCanEncryptComms

      @Nullable public Boolean getCanEncryptComms()
      Get canEncryptComms
      Returns:
      canEncryptComms
    • setCanEncryptComms

      public void setCanEncryptComms(@Nullable Boolean canEncryptComms)
    • canEncryptStorage

      public GPGKey canEncryptStorage(@Nullable Boolean canEncryptStorage)
    • getCanEncryptStorage

      @Nullable public Boolean getCanEncryptStorage()
      Get canEncryptStorage
      Returns:
      canEncryptStorage
    • setCanEncryptStorage

      public void setCanEncryptStorage(@Nullable Boolean canEncryptStorage)
    • canSign

      public GPGKey canSign(@Nullable Boolean canSign)
    • getCanSign

      @Nullable public Boolean getCanSign()
      Get canSign
      Returns:
      canSign
    • setCanSign

      public void setCanSign(@Nullable Boolean canSign)
    • createdAt

      public GPGKey createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Get createdAt
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • emails

      public GPGKey emails(@Nullable List<GPGKeyEmail> emails)
    • addEmailsItem

      public GPGKey addEmailsItem(GPGKeyEmail emailsItem)
    • getEmails

      @Nullable public List<GPGKeyEmail> getEmails()
      Get emails
      Returns:
      emails
    • setEmails

      public void setEmails(@Nullable List<GPGKeyEmail> emails)
    • expiresAt

      public GPGKey expiresAt(@Nullable OffsetDateTime expiresAt)
    • getExpiresAt

      @Nullable public OffsetDateTime getExpiresAt()
      Get expiresAt
      Returns:
      expiresAt
    • setExpiresAt

      public void setExpiresAt(@Nullable OffsetDateTime expiresAt)
    • id

      public GPGKey id(@Nullable Long id)
    • getId

      @Nullable public Long getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nullable Long id)
    • keyId

      public GPGKey keyId(@Nullable String keyId)
    • getKeyId

      @Nullable public String getKeyId()
      Get keyId
      Returns:
      keyId
    • setKeyId

      public void setKeyId(@Nullable String keyId)
    • primaryKeyId

      public GPGKey primaryKeyId(@Nullable String primaryKeyId)
    • getPrimaryKeyId

      @Nullable public String getPrimaryKeyId()
      Get primaryKeyId
      Returns:
      primaryKeyId
    • setPrimaryKeyId

      public void setPrimaryKeyId(@Nullable String primaryKeyId)
    • publicKey

      public GPGKey publicKey(@Nullable String publicKey)
    • getPublicKey

      @Nullable public String getPublicKey()
      Get publicKey
      Returns:
      publicKey
    • setPublicKey

      public void setPublicKey(@Nullable String publicKey)
    • subkeys

      public GPGKey subkeys(@Nullable List<GPGKey> subkeys)
    • addSubkeysItem

      public GPGKey addSubkeysItem(GPGKey subkeysItem)
    • getSubkeys

      @Nullable public List<GPGKey> getSubkeys()
      Get subkeys
      Returns:
      subkeys
    • setSubkeys

      public void setSubkeys(@Nullable List<GPGKey> subkeys)
    • verified

      public GPGKey verified(@Nullable Boolean verified)
    • getVerified

      @Nullable public Boolean getVerified()
      Get verified
      Returns:
      verified
    • setVerified

      public void setVerified(@Nullable Boolean verified)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 GPGKey
    • fromJson

      public static GPGKey fromJson(String jsonString) throws IOException
      Create an instance of GPGKey given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of GPGKey
      Throws:
      IOException - if the JSON string is invalid with respect to GPGKey
    • toJson

      public String toJson()
      Convert an instance of GPGKey to an JSON string
      Returns:
      JSON string