Class DeployKey

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

@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 DeployKey extends Object
DeployKey a deploy key
  • Field Details

  • Constructor Details

    • DeployKey

      public DeployKey()
  • Method Details

    • createdAt

      public DeployKey createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

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

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • fingerprint

      public DeployKey fingerprint(@Nullable String fingerprint)
    • getFingerprint

      @Nullable public String getFingerprint()
      Get fingerprint
      Returns:
      fingerprint
    • setFingerprint

      public void setFingerprint(@Nullable String fingerprint)
    • id

      public DeployKey id(@Nullable Long id)
    • getId

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

      public void setId(@Nullable Long id)
    • key

      public DeployKey key(@Nullable String key)
    • getKey

      @Nullable public String getKey()
      Get key
      Returns:
      key
    • setKey

      public void setKey(@Nullable String key)
    • keyId

      public DeployKey keyId(@Nullable Long keyId)
    • getKeyId

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

      public void setKeyId(@Nullable Long keyId)
    • readOnly

      public DeployKey readOnly(@Nullable Boolean readOnly)
    • getReadOnly

      @Nullable public Boolean getReadOnly()
      Get readOnly
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(@Nullable Boolean readOnly)
    • repository

      public DeployKey repository(@Nullable Repository repository)
    • getRepository

      @Nullable public Repository getRepository()
      Get repository
      Returns:
      repository
    • setRepository

      public void setRepository(@Nullable Repository repository)
    • title

      public DeployKey title(@Nullable String title)
    • getTitle

      @Nullable public String getTitle()
      Get title
      Returns:
      title
    • setTitle

      public void setTitle(@Nullable String title)
    • url

      public DeployKey url(@Nullable String url)
    • getUrl

      @Nullable public String getUrl()
      Get url
      Returns:
      url
    • setUrl

      public void setUrl(@Nullable String url)
    • 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 DeployKey
    • fromJson

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

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