public class ListBranchesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of a list branches operation.
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
branches
The list of branch names.
|
private java.lang.String |
nextToken
An enumeration token that returns the batch of the results.
|
Constructor and Description |
---|
ListBranchesResult() |
Modifier and Type | Method and Description |
---|---|
ListBranchesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getBranches()
The list of branch names.
|
java.lang.String |
getNextToken()
An enumeration token that returns the batch of the results.
|
int |
hashCode() |
void |
setBranches(java.util.Collection<java.lang.String> branches)
The list of branch names.
|
void |
setNextToken(java.lang.String nextToken)
An enumeration token that returns the batch of the results.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListBranchesResult |
withBranches(java.util.Collection<java.lang.String> branches)
The list of branch names.
|
ListBranchesResult |
withBranches(java.lang.String... branches)
The list of branch names.
|
ListBranchesResult |
withNextToken(java.lang.String nextToken)
An enumeration token that returns the batch of the results.
|
private java.util.List<java.lang.String> branches
The list of branch names.
private java.lang.String nextToken
An enumeration token that returns the batch of the results.
public java.util.List<java.lang.String> getBranches()
The list of branch names.
public void setBranches(java.util.Collection<java.lang.String> branches)
The list of branch names.
branches
- The list of branch names.public ListBranchesResult withBranches(java.lang.String... branches)
The list of branch names.
NOTE: This method appends the values to the existing list (if
any). Use setBranches(java.util.Collection)
or
withBranches(java.util.Collection)
if you want to override the
existing values.
branches
- The list of branch names.public ListBranchesResult withBranches(java.util.Collection<java.lang.String> branches)
The list of branch names.
branches
- The list of branch names.public void setNextToken(java.lang.String nextToken)
An enumeration token that returns the batch of the results.
nextToken
- An enumeration token that returns the batch of the results.public java.lang.String getNextToken()
An enumeration token that returns the batch of the results.
public ListBranchesResult withNextToken(java.lang.String nextToken)
An enumeration token that returns the batch of the results.
nextToken
- An enumeration token that returns the batch of the results.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ListBranchesResult clone()
clone
in class java.lang.Object