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 Summary
Constructors Constructor Description Builder()
-
Method Summary
All 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
-
name
public UpdateApprovalRuleDetails.Builder name(String name)
Name which is used to uniquely identify an approval rule.- Parameters:
name- the value to set- Returns:
- this builder
-
destinationBranch
public 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
-
reviewers
public 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
-
minApprovalsCount
public 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
-
build
public UpdateApprovalRuleDetails build()
-
copy
public UpdateApprovalRuleDetails.Builder copy(UpdateApprovalRuleDetails model)
-
-