Class CreateOAuth2ApplicationOptions

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

@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 CreateOAuth2ApplicationOptions extends Object
CreateOAuth2ApplicationOptions holds options to create an oauth2 application
  • Field Details

  • Constructor Details

    • CreateOAuth2ApplicationOptions

      public CreateOAuth2ApplicationOptions()
  • Method Details

    • confidentialClient

      public CreateOAuth2ApplicationOptions confidentialClient(@Nullable Boolean confidentialClient)
    • getConfidentialClient

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

      public void setConfidentialClient(@Nullable Boolean confidentialClient)
    • name

      public CreateOAuth2ApplicationOptions name(@Nullable String name)
    • getName

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

      public void setName(@Nullable String name)
    • redirectUris

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

      public CreateOAuth2ApplicationOptions 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 CreateOAuth2ApplicationOptions
    • fromJson

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

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