Class CodeStarSourceVariables.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.CodeStarSourceVariables.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeStarSourceVariables>
- Enclosing interface:
- CodeStarSourceVariables
@Stability(Stable)
public static final class CodeStarSourceVariables.Builder
extends Object
implements software.amazon.jsii.Builder<CodeStarSourceVariables>
A builder for
CodeStarSourceVariables-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorDate(String authorDate) Sets the value ofCodeStarSourceVariables.getAuthorDate()branchName(String branchName) Sets the value ofCodeStarSourceVariables.getBranchName()build()Builds the configured instance.Sets the value ofCodeStarSourceVariables.getCommitId()commitMessage(String commitMessage) Sets the value ofCodeStarSourceVariables.getCommitMessage()connectionArn(String connectionArn) Sets the value ofCodeStarSourceVariables.getConnectionArn()fullRepositoryName(String fullRepositoryName) Sets the value ofCodeStarSourceVariables.getFullRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorDate
Sets the value ofCodeStarSourceVariables.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 ofCodeStarSourceVariables.getBranchName()- Parameters:
branchName- The name of the branch this action tracks. This parameter is required.- Returns:
this
-
commitId
Sets the value ofCodeStarSourceVariables.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 ofCodeStarSourceVariables.getCommitMessage()- Parameters:
commitMessage- The message of the currently last commit on the tracked branch. This parameter is required.- Returns:
this
-
connectionArn
Sets the value ofCodeStarSourceVariables.getConnectionArn()- Parameters:
connectionArn- The connection ARN this source uses. This parameter is required.- Returns:
this
-
fullRepositoryName
@Stability(Stable) public CodeStarSourceVariables.Builder fullRepositoryName(String fullRepositoryName) Sets the value ofCodeStarSourceVariables.getFullRepositoryName()- Parameters:
fullRepositoryName- The name of the repository this action points to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CodeStarSourceVariables>- Returns:
- a new instance of
CodeStarSourceVariables - Throws:
NullPointerException- if any required attribute was not provided
-