Class CfnRepositoryMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryMixinProps>
- Enclosing interface:
CfnRepositoryMixinProps
CfnRepositoryMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRepositoryMixinProps.getCode()code(IResolvable code) Sets the value ofCfnRepositoryMixinProps.getCode()Sets the value ofCfnRepositoryMixinProps.getKmsKeyId()repositoryDescription(String repositoryDescription) Sets the value ofCfnRepositoryMixinProps.getRepositoryDescription()repositoryName(String repositoryName) Sets the value ofCfnRepositoryMixinProps.getRepositoryName()Sets the value ofCfnRepositoryMixinProps.getTags()Sets the value ofCfnRepositoryMixinProps.getTriggers()triggers(IResolvable triggers) Sets the value ofCfnRepositoryMixinProps.getTriggers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofCfnRepositoryMixinProps.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 CloudFormation template at creation time. This property cannot be used for updating code to an existing repository.
- Returns:
this
-
code
@Stability(Stable) public CfnRepositoryMixinProps.Builder code(CfnRepositoryPropsMixin.CodeProperty code) Sets the value ofCfnRepositoryMixinProps.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 CloudFormation template at creation time. This property cannot be used for updating code to an existing repository.
- Returns:
this
-
kmsKeyId
Sets the value ofCfnRepositoryMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.The input can be the full ARN, the key ID, or the key alias. For more information, see Finding the key ID and key ARN .
- Returns:
this
-
repositoryDescription
@Stability(Stable) public CfnRepositoryMixinProps.Builder repositoryDescription(String repositoryDescription) Sets the value ofCfnRepositoryMixinProps.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
-
repositoryName
Sets the value ofCfnRepositoryMixinProps.getRepositoryName()- Parameters:
repositoryName- The name of the new repository to be created.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
-
tags
Sets the value ofCfnRepositoryMixinProps.getTags()- Parameters:
tags- One or more tag key-value pairs to use when tagging this repository.- Returns:
this
-
triggers
Sets the value ofCfnRepositoryMixinProps.getTriggers()- Parameters:
triggers- The JSON block of configuration information for each trigger.- Returns:
this
-
triggers
Sets the value ofCfnRepositoryMixinProps.getTriggers()- Parameters:
triggers- The JSON block of configuration information for each trigger.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepositoryMixinProps>- Returns:
- a new instance of
CfnRepositoryMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-