Class AddCollaboratorOption
java.lang.Object
build.cursed.genapi.forgejo.model.AddCollaboratorOption
@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 AddCollaboratorOption
extends Object
AddCollaboratorOption options when adding a user as a collaborator of a repository
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets permission -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AddCollaboratorOptionCreate an instance of AddCollaboratorOption given an JSON stringGet permissioninthashCode()permission(AddCollaboratorOption.PermissionEnum permission) voidsetPermission(AddCollaboratorOption.PermissionEnum permission) toJson()Convert an instance of AddCollaboratorOption 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_PERMISSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AddCollaboratorOption
public AddCollaboratorOption()
-
-
Method Details
-
permission
-
getPermission
Get permission- Returns:
- permission
-
setPermission
-
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 AddCollaboratorOption
-
fromJson
Create an instance of AddCollaboratorOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AddCollaboratorOption
- Throws:
IOException- if the JSON string is invalid with respect to AddCollaboratorOption
-
toJson
Convert an instance of AddCollaboratorOption to an JSON string- Returns:
- JSON string
-