Class CodeCommitSourceVariables.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.CodeCommitSourceVariables.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeCommitSourceVariables>
- Enclosing interface:
- CodeCommitSourceVariables
@Stability(Stable)
public static final class CodeCommitSourceVariables.Builder
extends Object
implements software.amazon.jsii.Builder<CodeCommitSourceVariables>
A builder for
CodeCommitSourceVariables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorDate
(String authorDate) Sets the value ofCodeCommitSourceVariables.getAuthorDate()
branchName
(String branchName) Sets the value ofCodeCommitSourceVariables.getBranchName()
build()
Builds the configured instance.Sets the value ofCodeCommitSourceVariables.getCommitId()
commitMessage
(String commitMessage) Sets the value ofCodeCommitSourceVariables.getCommitMessage()
committerDate
(String committerDate) Sets the value ofCodeCommitSourceVariables.getCommitterDate()
repositoryName
(String repositoryName) Sets the value ofCodeCommitSourceVariables.getRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorDate
Sets the value ofCodeCommitSourceVariables.getAuthorDate()
- Parameters:
authorDate
- The date the currently last commit on the tracked branch was authored, in ISO-8601 format. This parameter is required.- Returns:
this
-
branchName
Sets the value ofCodeCommitSourceVariables.getBranchName()
- Parameters:
branchName
- The name of the branch this action tracks. This parameter is required.- Returns:
this
-
commitId
Sets the value ofCodeCommitSourceVariables.getCommitId()
- Parameters:
commitId
- The SHA1 hash of the currently last commit on the tracked branch. This parameter is required.- Returns:
this
-
commitMessage
Sets the value ofCodeCommitSourceVariables.getCommitMessage()
- Parameters:
commitMessage
- The message of the currently last commit on the tracked branch. This parameter is required.- Returns:
this
-
committerDate
Sets the value ofCodeCommitSourceVariables.getCommitterDate()
- Parameters:
committerDate
- The date the currently last commit on the tracked branch was committed, in ISO-8601 format. This parameter is required.- Returns:
this
-
repositoryName
Sets the value ofCodeCommitSourceVariables.getRepositoryName()
- Parameters:
repositoryName
- The name of the repository this action points to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CodeCommitSourceVariables>
- Returns:
- a new instance of
CodeCommitSourceVariables
- Throws:
NullPointerException
- if any required attribute was not provided
-