public static class UpdateApprovalRuleDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UpdateApprovalRuleDetails |
build() |
UpdateApprovalRuleDetails.Builder |
copy(UpdateApprovalRuleDetails model) |
UpdateApprovalRuleDetails.Builder |
destinationBranch(String destinationBranch)
Branch name where pull requests targeting the branch must satisfy the approval rule.
|
UpdateApprovalRuleDetails.Builder |
minApprovalsCount(Integer minApprovalsCount)
Minimum number of approvals which must be provided by the reviewers specified in the list
before the rule can be satisfied
|
UpdateApprovalRuleDetails.Builder |
name(String name)
Name which is used to uniquely identify an approval rule.
|
UpdateApprovalRuleDetails.Builder |
reviewers(List<UpdateReviewerDetails> reviewers)
List of users who must provide approvals up to the minApprovalsCount specified in the
rule.
|
public UpdateApprovalRuleDetails.Builder name(String name)
Name which is used to uniquely identify an approval rule.
name
- the value to setpublic UpdateApprovalRuleDetails.Builder destinationBranch(String destinationBranch)
Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
destinationBranch
- the value to setpublic UpdateApprovalRuleDetails.Builder reviewers(List<UpdateReviewerDetails> reviewers)
List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.
reviewers
- the value to setpublic UpdateApprovalRuleDetails.Builder minApprovalsCount(Integer minApprovalsCount)
Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
minApprovalsCount
- the value to setpublic UpdateApprovalRuleDetails build()
public UpdateApprovalRuleDetails.Builder copy(UpdateApprovalRuleDetails model)
Copyright © 2016–2024. All rights reserved.