Class CreateBranchRepoOption
java.lang.Object
build.cursed.genapi.forgejo.model.CreateBranchRepoOption
@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 CreateBranchRepoOption
extends Object
CreateBranchRepoOption options when creating a branch in a repository
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateBranchRepoOptionCreate an instance of CreateBranchRepoOption given an JSON stringName of the branch to createDeprecated: true Name of the old branch to create fromName of the old branch/tag/commit to create frominthashCode()newBranchName(String newBranchName) oldBranchName(String oldBranchName) oldRefName(String oldRefName) voidsetNewBranchName(String newBranchName) voidsetOldBranchName(String oldBranchName) voidsetOldRefName(String oldRefName) toJson()Convert an instance of CreateBranchRepoOption 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_BRANCH_NAME
- See Also:
-
SERIALIZED_NAME_OLD_BRANCH_NAME
- See Also:
-
SERIALIZED_NAME_OLD_REF_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateBranchRepoOption
public CreateBranchRepoOption()
-
-
Method Details
-
newBranchName
-
getNewBranchName
Name of the branch to create- Returns:
- newBranchName
-
setNewBranchName
-
oldBranchName
-
getOldBranchName
Deprecated: true Name of the old branch to create from- Returns:
- oldBranchName
-
setOldBranchName
-
oldRefName
-
getOldRefName
Name of the old branch/tag/commit to create from- Returns:
- oldRefName
-
setOldRefName
-
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 CreateBranchRepoOption
-
fromJson
Create an instance of CreateBranchRepoOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateBranchRepoOption
- Throws:
IOException- if the JSON string is invalid with respect to CreateBranchRepoOption
-
toJson
Convert an instance of CreateBranchRepoOption to an JSON string- Returns:
- JSON string
-