Class GitHubSourceVariables.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.GitHubSourceVariables.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitHubSourceVariables>
- Enclosing interface:
- GitHubSourceVariables
@Stability(Stable)
public static final class GitHubSourceVariables.Builder
extends Object
implements software.amazon.jsii.Builder<GitHubSourceVariables>
A builder for
GitHubSourceVariables-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorDate(String authorDate) Sets the value ofGitHubSourceVariables.getAuthorDate()branchName(String branchName) Sets the value ofGitHubSourceVariables.getBranchName()build()Builds the configured instance.Sets the value ofGitHubSourceVariables.getCommitId()commitMessage(String commitMessage) Sets the value ofGitHubSourceVariables.getCommitMessage()committerDate(String committerDate) Sets the value ofGitHubSourceVariables.getCommitterDate()Sets the value ofGitHubSourceVariables.getCommitUrl()repositoryName(String repositoryName) Sets the value ofGitHubSourceVariables.getRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorDate
Sets the value ofGitHubSourceVariables.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 ofGitHubSourceVariables.getBranchName()- Parameters:
branchName- The name of the branch this action tracks. This parameter is required.- Returns:
this
-
commitId
Sets the value ofGitHubSourceVariables.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 ofGitHubSourceVariables.getCommitMessage()- Parameters:
commitMessage- The message of the currently last commit on the tracked branch. This parameter is required.- Returns:
this
-
committerDate
Sets the value ofGitHubSourceVariables.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
-
commitUrl
Sets the value ofGitHubSourceVariables.getCommitUrl()- Parameters:
commitUrl- The GitHub API URL of the currently last commit on the tracked branch. This parameter is required.- Returns:
this
-
repositoryName
Sets the value ofGitHubSourceVariables.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:
buildin interfacesoftware.amazon.jsii.Builder<GitHubSourceVariables>- Returns:
- a new instance of
GitHubSourceVariables - Throws:
NullPointerException- if any required attribute was not provided
-