Class BranchInfo
java.lang.Object
com.amazonaws.services.codecommit.model.BranchInfo
- All Implemented Interfaces:
Serializable
,Cloneable
Returns information about a branch.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The name of the branch.The ID of the last commit made to the branch.int
hashCode()
void
setBranchName
(String branchName) The name of the branch.void
setCommitId
(String commitId) The ID of the last commit made to the branch.toString()
Returns a string representation of this object; useful for testing and debugging.withBranchName
(String branchName) The name of the branch.withCommitId
(String commitId) The ID of the last commit made to the branch.
-
Constructor Details
-
BranchInfo
public BranchInfo()
-
-
Method Details
-
setBranchName
The name of the branch.
- Parameters:
branchName
- The name of the branch.
-
getBranchName
The name of the branch.
- Returns:
- The name of the branch.
-
withBranchName
The name of the branch.
- Parameters:
branchName
- The name of the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCommitId
The ID of the last commit made to the branch.
- Parameters:
commitId
- The ID of the last commit made to the branch.
-
getCommitId
The ID of the last commit made to the branch.
- Returns:
- The ID of the last commit made to the branch.
-
withCommitId
The ID of the last commit made to the branch.
- Parameters:
commitId
- The ID of the last commit made to the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-