Class Branchrestriction
java.lang.Object
se.bjurr.bitbucketcloud.gen.model.ModelObject
se.bjurr.bitbucketcloud.gen.model.Branchrestriction
@Generated(value="org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen",
date="2025-07-17T16:07:08.420911588+02:00[Europe/Stockholm]",
comments="Generator version: 7.14.0")
public class Branchrestriction
extends ModelObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionBranchrestriction(String pattern, Branchrestriction.KindEnum kind, Branchrestriction.BranchMatchKindEnum branchMatchKind, String type) -
Method Summary
Modifier and TypeMethodDescriptionaddGroupsItem(Group groupsItem) addUsersItem(Account usersItem) branchMatchKind(Branchrestriction.BranchMatchKindEnum branchMatchKind) Indicates how the restriction is matched against a branch.branchType(Branchrestriction.BranchTypeEnum branchType) Apply the restriction to branches of this type.booleangetId()@NotNull Branchrestriction.KindEnumgetKind()getLinks()@NotNull StringgetUsers()getValue()inthashCode()The branch restriction status' id.The type of restriction that is being applied.Apply the restriction to branches that match this pattern.removeGroupsItem(Group groupsItem) removeUsersItem(Account usersItem) voidsetBranchMatchKind(Branchrestriction.BranchMatchKindEnum branchMatchKind) voidsetBranchType(Branchrestriction.BranchTypeEnum branchType) voidvoidvoidvoidvoidsetPattern(String pattern) voidvoidtoString()Value with kind-specific semantics: \"require_approvals_to_merge\" uses it to require a minimum number of approvals on a PR; \"require_passing_builds_to_merge\" uses it to require a minimum number of passing builds.Methods inherited from class se.bjurr.bitbucketcloud.gen.model.ModelObject
getType, setType, type
-
Constructor Details
-
Branchrestriction
public Branchrestriction() -
Branchrestriction
public Branchrestriction(String pattern, Branchrestriction.KindEnum kind, Branchrestriction.BranchMatchKindEnum branchMatchKind, String type)
-
-
Method Details
-
pattern
Apply the restriction to branches that match this pattern. Active when `branch_match_kind` is `glob`. Will be empty when `branch_match_kind` is `branching_model`. -
getPattern
-
setPattern
-
kind
The type of restriction that is being applied. -
getKind
-
setKind
-
branchMatchKind
Indicates how the restriction is matched against a branch. The default is `glob`. -
getBranchMatchKind
-
setBranchMatchKind
-
links
-
getLinks
-
setLinks
-
branchType
Apply the restriction to branches of this type. Active when `branch_match_kind` is `branching_model`. The branch type will be calculated using the branching model configured for the repository. -
getBranchType
-
setBranchType
-
users
-
getUsers
-
setUsers
-
addUsersItem
-
removeUsersItem
-
id
The branch restriction status' id. -
getId
-
setId
-
groups
-
getGroups
-
setGroups
-
addGroupsItem
-
removeGroupsItem
-
value
Value with kind-specific semantics: \"require_approvals_to_merge\" uses it to require a minimum number of approvals on a PR; \"require_passing_builds_to_merge\" uses it to require a minimum number of passing builds. -
getValue
-
setValue
-
equals
- Overrides:
equalsin classModelObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classModelObject
-
toString
- Overrides:
toStringin classModelObject
-