Package com.oracle.bmc.devops.model
Class UpdateApprovalRuleDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.devops.model.UpdateApprovalRuleDetails.Builder
 
- 
- Enclosing class:
- UpdateApprovalRuleDetails
 
 public static class UpdateApprovalRuleDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateApprovalRuleDetailsbuild()UpdateApprovalRuleDetails.Buildercopy(UpdateApprovalRuleDetails model)UpdateApprovalRuleDetails.BuilderdestinationBranch(String destinationBranch)Branch name where pull requests targeting the branch must satisfy the approval rule.UpdateApprovalRuleDetails.BuilderminApprovalsCount(Integer minApprovalsCount)Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfiedUpdateApprovalRuleDetails.Buildername(String name)Name which is used to uniquely identify an approval rule.UpdateApprovalRuleDetails.Builderreviewers(List<UpdateReviewerDetails> reviewers)List of users who must provide approvals up to the minApprovalsCount specified in the rule.
 
- 
- 
- 
Method Detail- 
namepublic UpdateApprovalRuleDetails.Builder name(String name) Name which is used to uniquely identify an approval rule.- Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
destinationBranchpublic 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 - Parameters:
- destinationBranch- the value to set
- Returns:
- this builder
 
 - 
reviewerspublic 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. - Parameters:
- reviewers- the value to set
- Returns:
- this builder
 
 - 
minApprovalsCountpublic 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- Parameters:
- minApprovalsCount- the value to set
- Returns:
- this builder
 
 - 
buildpublic UpdateApprovalRuleDetails build() 
 - 
copypublic UpdateApprovalRuleDetails.Builder copy(UpdateApprovalRuleDetails model) 
 
- 
 
-