public class Branchrestriction extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Branchrestriction.BranchMatchKindEnum |
static class |
Branchrestriction.BranchTypeEnum |
static class |
Branchrestriction.KindEnum |
| Constructor and Description |
|---|
Branchrestriction() |
| Modifier and Type | Method and Description |
|---|---|
Branchrestriction |
branchMatchKind(Branchrestriction.BranchMatchKindEnum branchMatchKind)
Indicates how the restriction is matched against a branch.
|
Branchrestriction |
branchType(Branchrestriction.BranchTypeEnum branchType)
Apply the restriction to branches of this type.
|
boolean |
equals(java.lang.Object o) |
@NotNull Branchrestriction.BranchMatchKindEnum |
getBranchMatchKind() |
Branchrestriction.BranchTypeEnum |
getBranchType() |
@Size(min=0) java.util.List<Group> |
getGroups() |
java.lang.Integer |
getId() |
@NotNull Branchrestriction.KindEnum |
getKind() |
Object |
getLinks() |
@NotNull java.lang.String |
getPattern() |
@Size(min=0) java.util.List<Account> |
getUsers() |
java.lang.Integer |
getValue() |
Branchrestriction |
groups(java.util.List<Group> groups) |
int |
hashCode() |
Branchrestriction |
id(java.lang.Integer id)
The branch restriction status' id.
|
Branchrestriction |
kind(Branchrestriction.KindEnum kind)
The type of restriction that is being applied.
|
Branchrestriction |
links(Object links) |
Branchrestriction |
pattern(java.lang.String pattern)
Apply the restriction to branches that match this pattern.
|
void |
setBranchMatchKind(Branchrestriction.BranchMatchKindEnum branchMatchKind) |
void |
setBranchType(Branchrestriction.BranchTypeEnum branchType) |
void |
setGroups(java.util.List<Group> groups) |
void |
setId(java.lang.Integer id) |
void |
setKind(Branchrestriction.KindEnum kind) |
void |
setLinks(Object links) |
void |
setPattern(java.lang.String pattern) |
void |
setUsers(java.util.List<Account> users) |
void |
setValue(java.lang.Integer value) |
java.lang.String |
toString() |
Branchrestriction |
users(java.util.List<Account> users) |
Branchrestriction |
value(java.lang.Integer 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.
|
public Branchrestriction pattern(java.lang.String pattern)
@NotNull public @NotNull java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
public Branchrestriction kind(Branchrestriction.KindEnum kind)
@NotNull public @NotNull Branchrestriction.KindEnum getKind()
public void setKind(Branchrestriction.KindEnum kind)
public Branchrestriction branchMatchKind(Branchrestriction.BranchMatchKindEnum branchMatchKind)
@NotNull public @NotNull Branchrestriction.BranchMatchKindEnum getBranchMatchKind()
public void setBranchMatchKind(Branchrestriction.BranchMatchKindEnum branchMatchKind)
public Branchrestriction links(Object links)
public Object getLinks()
public void setLinks(Object links)
public Branchrestriction branchType(Branchrestriction.BranchTypeEnum branchType)
public Branchrestriction.BranchTypeEnum getBranchType()
public void setBranchType(Branchrestriction.BranchTypeEnum branchType)
public Branchrestriction users(java.util.List<Account> users)
@Size(min=0) public @Size(min=0) java.util.List<Account> getUsers()
public void setUsers(java.util.List<Account> users)
public Branchrestriction id(java.lang.Integer id)
public java.lang.Integer getId()
public void setId(java.lang.Integer id)
public Branchrestriction groups(java.util.List<Group> groups)
@Size(min=0) public @Size(min=0) java.util.List<Group> getGroups()
public void setGroups(java.util.List<Group> groups)
public Branchrestriction value(java.lang.Integer value)
public java.lang.Integer getValue()
public void setValue(java.lang.Integer value)