Class AccessToken

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

@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 AccessToken extends Object
AccessToken
  • Field Details

  • Constructor Details

    • AccessToken

      public AccessToken()
  • Method Details

    • id

      public AccessToken id(@Nullable Long id)
    • getId

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

      public void setId(@Nullable Long id)
    • name

      public AccessToken name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • repositories

      public AccessToken repositories(@Nullable List<RepositoryMeta> repositories)
    • addRepositoriesItem

      public AccessToken addRepositoriesItem(RepositoryMeta repositoriesItem)
    • getRepositories

      @Nullable public List<RepositoryMeta> getRepositories()
      Indicates that an access token only has access to the specified repositories. Will be null if the access token is not limited to a set of specified repositories.
      Returns:
      repositories
    • setRepositories

      public void setRepositories(@Nullable List<RepositoryMeta> repositories)
    • scopes

      public AccessToken scopes(@Nullable List<String> scopes)
    • addScopesItem

      public AccessToken addScopesItem(String scopesItem)
    • getScopes

      @Nullable public List<String> getScopes()
      Get scopes
      Returns:
      scopes
    • setScopes

      public void setScopes(@Nullable List<String> scopes)
    • sha1

      public AccessToken sha1(@Nullable String sha1)
    • getSha1

      @Nullable public String getSha1()
      Get sha1
      Returns:
      sha1
    • setSha1

      public void setSha1(@Nullable String sha1)
    • tokenLastEight

      public AccessToken tokenLastEight(@Nullable String tokenLastEight)
    • getTokenLastEight

      @Nullable public String getTokenLastEight()
      Get tokenLastEight
      Returns:
      tokenLastEight
    • setTokenLastEight

      public void setTokenLastEight(@Nullable String tokenLastEight)
    • 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 AccessToken
    • fromJson

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

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