Interface PullRequestBuildPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PullRequestBuildPolicy.Builder,
,PullRequestBuildPolicy> SdkBuilder<PullRequestBuildPolicy.Builder,
,PullRequestBuildPolicy> SdkPojo
- Enclosing class:
PullRequestBuildPolicy
-
Method Summary
Modifier and TypeMethodDescriptionapproverRoles
(Collection<PullRequestBuildApproverRole> approverRoles) List of repository roles that have approval privileges for pull request builds when comment approval is required.approverRoles
(PullRequestBuildApproverRole... approverRoles) List of repository roles that have approval privileges for pull request builds when comment approval is required.approverRolesWithStrings
(String... approverRoles) List of repository roles that have approval privileges for pull request builds when comment approval is required.approverRolesWithStrings
(Collection<String> approverRoles) List of repository roles that have approval privileges for pull request builds when comment approval is required.requiresCommentApproval
(String requiresCommentApproval) Specifies when comment-based approval is required before triggering a build on pull requests.requiresCommentApproval
(PullRequestBuildCommentApproval requiresCommentApproval) Specifies when comment-based approval is required before triggering a build on pull requests.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
requiresCommentApproval
Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.
-
DISABLED: Builds trigger automatically without requiring comment approval
-
ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)
-
FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)
- Parameters:
requiresCommentApproval
- Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.-
DISABLED: Builds trigger automatically without requiring comment approval
-
ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)
-
FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
requiresCommentApproval
PullRequestBuildPolicy.Builder requiresCommentApproval(PullRequestBuildCommentApproval requiresCommentApproval) Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.
-
DISABLED: Builds trigger automatically without requiring comment approval
-
ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)
-
FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)
- Parameters:
requiresCommentApproval
- Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.-
DISABLED: Builds trigger automatically without requiring comment approval
-
ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)
-
FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
approverRolesWithStrings
List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when
requiresCommentApproval
is not DISABLED.- Parameters:
approverRoles
- List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable whenrequiresCommentApproval
is not DISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approverRolesWithStrings
List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when
requiresCommentApproval
is not DISABLED.- Parameters:
approverRoles
- List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable whenrequiresCommentApproval
is not DISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approverRoles
PullRequestBuildPolicy.Builder approverRoles(Collection<PullRequestBuildApproverRole> approverRoles) List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when
requiresCommentApproval
is not DISABLED.- Parameters:
approverRoles
- List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable whenrequiresCommentApproval
is not DISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approverRoles
List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when
requiresCommentApproval
is not DISABLED.- Parameters:
approverRoles
- List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable whenrequiresCommentApproval
is not DISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-