Class CfnAssociation.GitHubConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnAssociation.GitHubConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssociation.GitHubConfigurationProperty>
- Enclosing interface:
CfnAssociation.GitHubConfigurationProperty
@Stability(Stable)
public static final class CfnAssociation.GitHubConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssociation.GitHubConfigurationProperty>
A builder for
CfnAssociation.GitHubConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAssociation.GitHubConfigurationProperty.getOwner()Sets the value ofCfnAssociation.GitHubConfigurationProperty.getOwnerType()Sets the value ofCfnAssociation.GitHubConfigurationProperty.getRepoId()Sets the value ofCfnAssociation.GitHubConfigurationProperty.getRepoName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
owner
Sets the value ofCfnAssociation.GitHubConfigurationProperty.getOwner()- Parameters:
owner- Repository owner. This parameter is required.- Returns:
this
-
ownerType
@Stability(Stable) public CfnAssociation.GitHubConfigurationProperty.Builder ownerType(String ownerType) Sets the value ofCfnAssociation.GitHubConfigurationProperty.getOwnerType()- Parameters:
ownerType- Type of repository owner. This parameter is required.- Returns:
this
-
repoId
Sets the value ofCfnAssociation.GitHubConfigurationProperty.getRepoId()- Parameters:
repoId- Associated Github repo ID. This parameter is required.- Returns:
this
-
repoName
@Stability(Stable) public CfnAssociation.GitHubConfigurationProperty.Builder repoName(String repoName) Sets the value ofCfnAssociation.GitHubConfigurationProperty.getRepoName()- Parameters:
repoName- Associated Github repo name. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssociation.GitHubConfigurationProperty>- Returns:
- a new instance of
CfnAssociation.GitHubConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-