Package com.oracle.bmc.devops.model
Class RepositoryCommit.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.RepositoryCommit.Builder
-
- Enclosing class:
- RepositoryCommit
public static class RepositoryCommit.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryCommit.BuilderauthorEmail(String authorEmail)Email of the author of the repository.RepositoryCommit.BuilderauthorName(String authorName)Name of the author of the repository.RepositoryCommitbuild()RepositoryCommit.BuildercommitId(String commitId)Commit hash pointed to by reference name.RepositoryCommit.BuildercommitMessage(String commitMessage)The commit message.RepositoryCommit.BuildercommitterEmail(String committerEmail)Email of who creates the commit.RepositoryCommit.BuildercommitterName(String committerName)Name of who creates the commit.RepositoryCommit.Buildercopy(RepositoryCommit model)RepositoryCommit.BuildermergedPullRequestId(String mergedPullRequestId)Id of the PullRequest that this commit was merged with.RepositoryCommit.BuilderparentCommitIds(List<String> parentCommitIds)An array of parent commit IDs of created commit.RepositoryCommit.BuildertimeCreated(Date timeCreated)The time at which commit was created.RepositoryCommit.BuildertreeId(String treeId)Tree information for the specified commit.
-
-
-
Method Detail
-
commitId
public RepositoryCommit.Builder commitId(String commitId)
Commit hash pointed to by reference name.- Parameters:
commitId- the value to set- Returns:
- this builder
-
commitMessage
public RepositoryCommit.Builder commitMessage(String commitMessage)
The commit message.- Parameters:
commitMessage- the value to set- Returns:
- this builder
-
authorName
public RepositoryCommit.Builder authorName(String authorName)
Name of the author of the repository.- Parameters:
authorName- the value to set- Returns:
- this builder
-
authorEmail
public RepositoryCommit.Builder authorEmail(String authorEmail)
Email of the author of the repository.- Parameters:
authorEmail- the value to set- Returns:
- this builder
-
committerName
public RepositoryCommit.Builder committerName(String committerName)
Name of who creates the commit.- Parameters:
committerName- the value to set- Returns:
- this builder
-
committerEmail
public RepositoryCommit.Builder committerEmail(String committerEmail)
Email of who creates the commit.- Parameters:
committerEmail- the value to set- Returns:
- this builder
-
mergedPullRequestId
public RepositoryCommit.Builder mergedPullRequestId(String mergedPullRequestId)
Id of the PullRequest that this commit was merged with.- Parameters:
mergedPullRequestId- the value to set- Returns:
- this builder
-
parentCommitIds
public RepositoryCommit.Builder parentCommitIds(List<String> parentCommitIds)
An array of parent commit IDs of created commit.- Parameters:
parentCommitIds- the value to set- Returns:
- this builder
-
timeCreated
public RepositoryCommit.Builder timeCreated(Date timeCreated)
The time at which commit was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
treeId
public RepositoryCommit.Builder treeId(String treeId)
Tree information for the specified commit.- Parameters:
treeId- the value to set- Returns:
- this builder
-
build
public RepositoryCommit build()
-
copy
public RepositoryCommit.Builder copy(RepositoryCommit model)
-
-