Class BranchInfo
- java.lang.Object
-
- com.amazonaws.services.codecommit.model.BranchInfo
-
- All Implemented Interfaces:
Serializable,Cloneable
public class BranchInfo extends Object implements Serializable, Cloneable
Returns information about a branch.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BranchInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchInfoclone()booleanequals(Object obj)StringgetBranchName()The name of the branch.StringgetCommitId()The ID of the last commit made to the branch.inthashCode()voidsetBranchName(String branchName)The name of the branch.voidsetCommitId(String commitId)The ID of the last commit made to the branch.StringtoString()Returns a string representation of this object; useful for testing and debugging.BranchInfowithBranchName(String branchName)The name of the branch.BranchInfowithCommitId(String commitId)The ID of the last commit made to the branch.
-
-
-
Method Detail
-
setBranchName
public void setBranchName(String branchName)
The name of the branch.
- Parameters:
branchName- The name of the branch.
-
getBranchName
public String getBranchName()
The name of the branch.
- Returns:
- The name of the branch.
-
withBranchName
public BranchInfo withBranchName(String branchName)
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
public void setCommitId(String commitId)
The ID of the last commit made to the branch.
- Parameters:
commitId- The ID of the last commit made to the branch.
-
getCommitId
public String getCommitId()
The ID of the last commit made to the branch.
- Returns:
- The ID of the last commit made to the branch.
-
withCommitId
public BranchInfo withCommitId(String commitId)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BranchInfo clone()
-
-