Class OAuth2Application

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class OAuth2Application extends Object
OAuth2Application
  • Field Details

  • Constructor Details

    • OAuth2Application

      public OAuth2Application()
  • Method Details

    • clientId

      public OAuth2Application clientId(@Nullable String clientId)
    • getClientId

      @Nullable public String getClientId()
      Get clientId
      Returns:
      clientId
    • setClientId

      public void setClientId(@Nullable String clientId)
    • clientSecret

      public OAuth2Application clientSecret(@Nullable String clientSecret)
    • getClientSecret

      @Nullable public String getClientSecret()
      Get clientSecret
      Returns:
      clientSecret
    • setClientSecret

      public void setClientSecret(@Nullable String clientSecret)
    • confidentialClient

      public OAuth2Application confidentialClient(@Nullable Boolean confidentialClient)
    • getConfidentialClient

      @Nullable public Boolean getConfidentialClient()
      Get confidentialClient
      Returns:
      confidentialClient
    • setConfidentialClient

      public void setConfidentialClient(@Nullable Boolean confidentialClient)
    • created

      public OAuth2Application created(@Nullable OffsetDateTime created)
    • getCreated

      @Nullable public OffsetDateTime getCreated()
      Get created
      Returns:
      created
    • setCreated

      public void setCreated(@Nullable OffsetDateTime created)
    • id

      public OAuth2Application id(@Nullable Long id)
    • getId

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

      public void setId(@Nullable Long id)
    • name

      public OAuth2Application name(@Nullable String name)
    • getName

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

      public void setName(@Nullable String name)
    • redirectUris

      public OAuth2Application redirectUris(@Nullable List<String> redirectUris)
    • addRedirectUrisItem

      public OAuth2Application addRedirectUrisItem(String redirectUrisItem)
    • getRedirectUris

      @Nullable public List<String> getRedirectUris()
      Get redirectUris
      Returns:
      redirectUris
    • setRedirectUris

      public void setRedirectUris(@Nullable List<String> redirectUris)
    • 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 OAuth2Application
    • fromJson

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

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