Class CfnCodeRepositoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCodeRepositoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCodeRepositoryProps>
- Enclosing interface:
CfnCodeRepositoryProps
@Stability(Stable)
public static final class CfnCodeRepositoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCodeRepositoryProps>
A builder for
CfnCodeRepositoryProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.codeRepositoryName
(String codeRepositoryName) Sets the value ofCfnCodeRepositoryProps.getCodeRepositoryName()
gitConfig
(IResolvable gitConfig) Sets the value ofCfnCodeRepositoryProps.getGitConfig()
gitConfig
(CfnCodeRepository.GitConfigProperty gitConfig) Sets the value ofCfnCodeRepositoryProps.getGitConfig()
Sets the value ofCfnCodeRepositoryProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gitConfig
Sets the value ofCfnCodeRepositoryProps.getGitConfig()
- Parameters:
gitConfig
- Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository. This parameter is required.- Returns:
this
-
gitConfig
@Stability(Stable) public CfnCodeRepositoryProps.Builder gitConfig(CfnCodeRepository.GitConfigProperty gitConfig) Sets the value ofCfnCodeRepositoryProps.getGitConfig()
- Parameters:
gitConfig
- Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository. This parameter is required.- Returns:
this
-
codeRepositoryName
@Stability(Stable) public CfnCodeRepositoryProps.Builder codeRepositoryName(String codeRepositoryName) Sets the value ofCfnCodeRepositoryProps.getCodeRepositoryName()
- Parameters:
codeRepositoryName
- The name of the Git repository.- Returns:
this
-
tags
Sets the value ofCfnCodeRepositoryProps.getTags()
- Parameters:
tags
- List of tags for Code Repository.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCodeRepositoryProps>
- Returns:
- a new instance of
CfnCodeRepositoryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-