Class CfnProject.PullRequestBuildPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.PullRequestBuildPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.PullRequestBuildPolicyProperty>
- Enclosing interface:
CfnProject.PullRequestBuildPolicyProperty
@Stability(Stable)
public static final class CfnProject.PullRequestBuildPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.PullRequestBuildPolicyProperty>
A builder for
CfnProject.PullRequestBuildPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapproverRoles(List<String> approverRoles) Sets the value ofCfnProject.PullRequestBuildPolicyProperty.getApproverRoles()build()Builds the configured instance.requiresCommentApproval(String requiresCommentApproval) Sets the value ofCfnProject.PullRequestBuildPolicyProperty.getRequiresCommentApproval()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
requiresCommentApproval
@Stability(Stable) public CfnProject.PullRequestBuildPolicyProperty.Builder requiresCommentApproval(String requiresCommentApproval) Sets the value ofCfnProject.PullRequestBuildPolicyProperty.getRequiresCommentApproval()- Parameters:
requiresCommentApproval- the value to be set. This parameter is required.- Returns:
this
-
approverRoles
@Stability(Stable) public CfnProject.PullRequestBuildPolicyProperty.Builder approverRoles(List<String> approverRoles) Sets the value ofCfnProject.PullRequestBuildPolicyProperty.getApproverRoles()- Parameters:
approverRoles- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProject.PullRequestBuildPolicyProperty>- Returns:
- a new instance of
CfnProject.PullRequestBuildPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-