Class CfnSyncConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.codestarconnections.CfnSyncConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSyncConfigurationProps>
- Enclosing interface:
CfnSyncConfigurationProps
@Stability(Stable)
public static final class CfnSyncConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSyncConfigurationProps>
A builder for
CfnSyncConfigurationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnSyncConfigurationProps.getBranch()build()Builds the configured instance.configFile(String configFile) Sets the value ofCfnSyncConfigurationProps.getConfigFile()publishDeploymentStatus(String publishDeploymentStatus) Sets the value ofCfnSyncConfigurationProps.getPublishDeploymentStatus()repositoryLinkId(String repositoryLinkId) Sets the value ofCfnSyncConfigurationProps.getRepositoryLinkId()resourceName(String resourceName) Sets the value ofCfnSyncConfigurationProps.getResourceName()Sets the value ofCfnSyncConfigurationProps.getRoleArn()Sets the value ofCfnSyncConfigurationProps.getSyncType()triggerResourceUpdateOn(String triggerResourceUpdateOn) Sets the value ofCfnSyncConfigurationProps.getTriggerResourceUpdateOn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
branch
Sets the value ofCfnSyncConfigurationProps.getBranch()- Parameters:
branch- The branch associated with a specific sync configuration. This parameter is required.- Returns:
this
-
configFile
Sets the value ofCfnSyncConfigurationProps.getConfigFile()- Parameters:
configFile- The file path to the configuration file associated with a specific sync configuration. This parameter is required. The path should point to an actual file in the sync configurations linked repository.- Returns:
this
-
repositoryLinkId
@Stability(Stable) public CfnSyncConfigurationProps.Builder repositoryLinkId(String repositoryLinkId) Sets the value ofCfnSyncConfigurationProps.getRepositoryLinkId()- Parameters:
repositoryLinkId- The ID of the repository link associated with a specific sync configuration. This parameter is required.- Returns:
this
-
resourceName
Sets the value ofCfnSyncConfigurationProps.getResourceName()- Parameters:
resourceName- The name of the connection resource associated with a specific sync configuration. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnSyncConfigurationProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role associated with a specific sync configuration. This parameter is required.- Returns:
this
-
syncType
Sets the value ofCfnSyncConfigurationProps.getSyncType()- Parameters:
syncType- The type of sync for a specific sync configuration. This parameter is required.- Returns:
this
-
publishDeploymentStatus
@Stability(Stable) public CfnSyncConfigurationProps.Builder publishDeploymentStatus(String publishDeploymentStatus) Sets the value ofCfnSyncConfigurationProps.getPublishDeploymentStatus()- Parameters:
publishDeploymentStatus- Whether to enable or disable publishing of deployment status to source providers.- Returns:
this
-
triggerResourceUpdateOn
@Stability(Stable) public CfnSyncConfigurationProps.Builder triggerResourceUpdateOn(String triggerResourceUpdateOn) Sets the value ofCfnSyncConfigurationProps.getTriggerResourceUpdateOn()- Parameters:
triggerResourceUpdateOn- When to trigger Git sync to begin the stack update.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSyncConfigurationProps>- Returns:
- a new instance of
CfnSyncConfigurationProps - Throws:
NullPointerException- if any required attribute was not provided
-