Class ListBranchesResult
- java.lang.Object
-
- com.amazonaws.services.codecommit.model.ListBranchesResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ListBranchesResult extends Object implements Serializable, Cloneable
Represents the output of a list branches operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListBranchesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListBranchesResultclone()booleanequals(Object obj)List<String>getBranches()The list of branch names.StringgetNextToken()An enumeration token that returns the batch of the results.inthashCode()voidsetBranches(Collection<String> branches)The list of branch names.voidsetNextToken(String nextToken)An enumeration token that returns the batch of the results.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListBranchesResultwithBranches(String... branches)The list of branch names.ListBranchesResultwithBranches(Collection<String> branches)The list of branch names.ListBranchesResultwithNextToken(String nextToken)An enumeration token that returns the batch of the results.
-
-
-
Method Detail
-
getBranches
public List<String> getBranches()
The list of branch names.
- Returns:
- The list of branch names.
-
setBranches
public void setBranches(Collection<String> branches)
The list of branch names.
- Parameters:
branches- The list of branch names.
-
withBranches
public ListBranchesResult withBranches(String... branches)
The list of branch names.
NOTE: This method appends the values to the existing list (if any). Use
setBranches(java.util.Collection)orwithBranches(java.util.Collection)if you want to override the existing values.- Parameters:
branches- The list of branch names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBranches
public ListBranchesResult withBranches(Collection<String> branches)
The list of branch names.
- Parameters:
branches- The list of branch names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
An enumeration token that returns the batch of the results.
- Parameters:
nextToken- An enumeration token that returns the batch of the results.
-
getNextToken
public String getNextToken()
An enumeration token that returns the batch of the results.
- Returns:
- An enumeration token that returns the batch of the results.
-
withNextToken
public ListBranchesResult withNextToken(String nextToken)
An enumeration token that returns the batch of the results.
- Parameters:
nextToken- An enumeration token that returns the batch of the results.- 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 ListBranchesResult clone()
-
-