Class TransferRepoOption
java.lang.Object
build.cursed.genapi.forgejo.model.TransferRepoOption
@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 TransferRepoOption
extends Object
TransferRepoOption options when transfer a repository's ownership
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTeamIdsItem(Long teamIdsItem) booleanstatic TransferRepoOptionCreate an instance of TransferRepoOption given an JSON stringGet newOwnerID of the team or teams to add to the repository.inthashCode()voidsetNewOwner(String newOwner) voidsetTeamIds(List<Long> teamIds) toJson()Convert an instance of TransferRepoOption 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_NEW_OWNER
- See Also:
-
SERIALIZED_NAME_TEAM_IDS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TransferRepoOption
public TransferRepoOption()
-
-
Method Details
-
newOwner
-
getNewOwner
Get newOwner- Returns:
- newOwner
-
setNewOwner
-
teamIds
-
addTeamIdsItem
-
getTeamIds
ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.- Returns:
- teamIds
-
setTeamIds
-
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 TransferRepoOption
-
fromJson
Create an instance of TransferRepoOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransferRepoOption
- Throws:
IOException- if the JSON string is invalid with respect to TransferRepoOption
-
toJson
Convert an instance of TransferRepoOption to an JSON string- Returns:
- JSON string
-