Class CreateOAuth2ApplicationOptions
java.lang.Object
build.cursed.genapi.forgejo.model.CreateOAuth2ApplicationOptions
@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 CreateOAuth2ApplicationOptions
extends Object
CreateOAuth2ApplicationOptions holds options to create an oauth2 application
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRedirectUrisItem(String redirectUrisItem) confidentialClient(Boolean confidentialClient) booleanCreate an instance of CreateOAuth2ApplicationOptions given an JSON stringGet confidentialClientgetName()Get nameGet redirectUrisinthashCode()redirectUris(List<String> redirectUris) voidsetConfidentialClient(Boolean confidentialClient) voidvoidsetRedirectUris(List<String> redirectUris) toJson()Convert an instance of CreateOAuth2ApplicationOptions to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONFIDENTIAL_CLIENT
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_REDIRECT_URIS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateOAuth2ApplicationOptions
public CreateOAuth2ApplicationOptions()
-
-
Method Details
-
confidentialClient
-
getConfidentialClient
Get confidentialClient- Returns:
- confidentialClient
-
setConfidentialClient
-
name
-
getName
Get name- Returns:
- name
-
setName
-
redirectUris
-
addRedirectUrisItem
-
getRedirectUris
Get redirectUris- Returns:
- redirectUris
-
setRedirectUris
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of CreateOAuth2ApplicationOptions to an JSON string- Returns:
- JSON string
-