public static final class CfnCodeRepository.GitConfigProperty.Builder
extends java.lang.Object
CfnCodeRepository.GitConfigProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnCodeRepository.GitConfigProperty.Builder |
branch(java.lang.String branch)
Sets the value of
CfnCodeRepository.GitConfigProperty.getBranch() |
CfnCodeRepository.GitConfigProperty |
build()
Builds the configured instance.
|
CfnCodeRepository.GitConfigProperty.Builder |
repositoryUrl(java.lang.String repositoryUrl)
Sets the value of
CfnCodeRepository.GitConfigProperty.getRepositoryUrl() |
CfnCodeRepository.GitConfigProperty.Builder |
secretArn(java.lang.String secretArn)
Sets the value of
CfnCodeRepository.GitConfigProperty.getSecretArn() |
public CfnCodeRepository.GitConfigProperty.Builder repositoryUrl(java.lang.String repositoryUrl)
CfnCodeRepository.GitConfigProperty.getRepositoryUrl()
repositoryUrl
- The URL where the Git repository is located. This parameter is required.this
public CfnCodeRepository.GitConfigProperty.Builder branch(java.lang.String branch)
CfnCodeRepository.GitConfigProperty.getBranch()
branch
- The default branch for the Git repository.this
public CfnCodeRepository.GitConfigProperty.Builder secretArn(java.lang.String secretArn)
CfnCodeRepository.GitConfigProperty.getSecretArn()
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 of AWSCURRENT
and must be in the following format:
{"username": *UserName* , "password": *Password* }
this
public CfnCodeRepository.GitConfigProperty build()
CfnCodeRepository.GitConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided