Class CfnCodeRepository.GitConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCodeRepository.GitConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCodeRepository.GitConfigProperty>
- Enclosing interface:
- CfnCodeRepository.GitConfigProperty
@Stability(Stable)
public static final class CfnCodeRepository.GitConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCodeRepository.GitConfigProperty>
A builder for
CfnCodeRepository.GitConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCodeRepository.GitConfigProperty.getBranch()build()Builds the configured instance.repositoryUrl(String repositoryUrl) Sets the value ofCfnCodeRepository.GitConfigProperty.getRepositoryUrl()Sets the value ofCfnCodeRepository.GitConfigProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repositoryUrl
@Stability(Stable) public CfnCodeRepository.GitConfigProperty.Builder repositoryUrl(String repositoryUrl) Sets the value ofCfnCodeRepository.GitConfigProperty.getRepositoryUrl()- Parameters:
repositoryUrl- The URL where the Git repository is located. This parameter is required.- Returns:
this
-
branch
Sets the value ofCfnCodeRepository.GitConfigProperty.getBranch()- Parameters:
branch- The default branch for the Git repository.- Returns:
this
-
secretArn
Sets the value ofCfnCodeRepository.GitConfigProperty.getSecretArn()- Parameters:
secretArn- The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label ofAWSCURRENTand must be in the following format:{"username": *UserName* , "password": *Password* }- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCodeRepository.GitConfigProperty>- Returns:
- a new instance of
CfnCodeRepository.GitConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-