public class ListAssociationsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Association> |
associations
The associations.
|
private java.lang.String |
nextToken
The token to use when requesting the next set of items.
|
Constructor and Description |
---|
ListAssociationsResult() |
Modifier and Type | Method and Description |
---|---|
ListAssociationsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Association> |
getAssociations()
The associations.
|
java.lang.String |
getNextToken()
The token to use when requesting the next set of items.
|
int |
hashCode() |
void |
setAssociations(java.util.Collection<Association> associations)
The associations.
|
void |
setNextToken(java.lang.String nextToken)
The token to use when requesting the next set of items.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListAssociationsResult |
withAssociations(Association... associations)
The associations.
|
ListAssociationsResult |
withAssociations(java.util.Collection<Association> associations)
The associations.
|
ListAssociationsResult |
withNextToken(java.lang.String nextToken)
The token to use when requesting the next set of items.
|
private SdkInternalList<Association> associations
The associations.
private java.lang.String nextToken
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
public java.util.List<Association> getAssociations()
The associations.
public void setAssociations(java.util.Collection<Association> associations)
The associations.
associations
- The associations.public ListAssociationsResult withAssociations(Association... associations)
The associations.
NOTE: This method appends the values to the existing list (if
any). Use setAssociations(java.util.Collection)
or
withAssociations(java.util.Collection)
if you want to override
the existing values.
associations
- The associations.public ListAssociationsResult withAssociations(java.util.Collection<Association> associations)
The associations.
associations
- The associations.public void setNextToken(java.lang.String nextToken)
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
nextToken
- The token to use when requesting the next set of items. If there
are no additional items to return, the string is empty.public java.lang.String getNextToken()
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
public ListAssociationsResult withNextToken(java.lang.String nextToken)
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
nextToken
- The token to use when requesting the next set of items. If there
are no additional items to return, the string is empty.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 ListAssociationsResult clone()
clone
in class java.lang.Object