Class CfnProject.ScopeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.ScopeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.ScopeConfigurationProperty>
- Enclosing interface:
CfnProject.ScopeConfigurationProperty
@Stability(Stable)
public static final class CfnProject.ScopeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.ScopeConfigurationProperty>
A builder for
CfnProject.ScopeConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnProject.ScopeConfigurationProperty.getDomain()Sets the value ofCfnProject.ScopeConfigurationProperty.getName()Sets the value ofCfnProject.ScopeConfigurationProperty.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnProject.ScopeConfigurationProperty.getName()- Parameters:
name- The name of either the enterprise or organization that will send webhook events to CodeBuild , depending on if the webhook is a global or organization webhook respectively. This parameter is required.- Returns:
this
-
domain
Sets the value ofCfnProject.ScopeConfigurationProperty.getDomain()- Parameters:
domain- The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.- Returns:
this
-
scope
Sets the value ofCfnProject.ScopeConfigurationProperty.getScope()- Parameters:
scope- The type of scope for a GitHub or GitLab webhook. The scope default is GITHUB_ORGANIZATION.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProject.ScopeConfigurationProperty>- Returns:
- a new instance of
CfnProject.ScopeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-