Class CfnRepositoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryProps>
- Enclosing interface:
CfnRepositoryProps
CfnRepositoryProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.code
(IResolvable code) Sets the value ofCfnRepositoryProps.getCode()
Sets the value ofCfnRepositoryProps.getCode()
repositoryDescription
(String repositoryDescription) Sets the value ofCfnRepositoryProps.getRepositoryDescription()
repositoryName
(String repositoryName) Sets the value ofCfnRepositoryProps.getRepositoryName()
Sets the value ofCfnRepositoryProps.getTags()
Sets the value ofCfnRepositoryProps.getTriggers()
triggers
(IResolvable triggers) Sets the value ofCfnRepositoryProps.getTriggers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repositoryName
Sets the value ofCfnRepositoryProps.getRepositoryName()
- Parameters:
repositoryName
- The name of the new repository to be created. This parameter is required.The repository name must be unique across the calling AWS account . Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Quotas in the AWS CodeCommit User Guide . The suffix .git is prohibited.
- Returns:
this
-
code
Sets the value ofCfnRepositoryProps.getCode()
- Parameters:
code
- Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. Information about code is only used in resource creation. Updates to a stack will not reflect changes made to code properties after initial resource creation.You can only use this property to add code when creating a repository with a AWS CloudFormation template at creation time. This property cannot be used for updating code to an existing repository.
- Returns:
this
-
code
Sets the value ofCfnRepositoryProps.getCode()
- Parameters:
code
- Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. Information about code is only used in resource creation. Updates to a stack will not reflect changes made to code properties after initial resource creation.You can only use this property to add code when creating a repository with a AWS CloudFormation template at creation time. This property cannot be used for updating code to an existing repository.
- Returns:
this
-
repositoryDescription
@Stability(Stable) public CfnRepositoryProps.Builder repositoryDescription(String repositoryDescription) Sets the value ofCfnRepositoryProps.getRepositoryDescription()
- Parameters:
repositoryDescription
- A comment or description about the new repository.The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
- Returns:
this
-
tags
Sets the value ofCfnRepositoryProps.getTags()
- Parameters:
tags
- One or more tag key-value pairs to use when tagging this repository.- Returns:
this
-
triggers
Sets the value ofCfnRepositoryProps.getTriggers()
- Parameters:
triggers
- The JSON block of configuration information for each trigger.- Returns:
this
-
triggers
Sets the value ofCfnRepositoryProps.getTriggers()
- Parameters:
triggers
- The JSON block of configuration information for each trigger.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRepositoryProps>
- Returns:
- a new instance of
CfnRepositoryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-