@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListContactsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListContactsResult() |
Modifier and Type | Method and Description |
---|---|
ListContactsResult |
clone() |
boolean |
equals(Object obj) |
List<ContactData> |
getContactList()
List of contacts.
|
String |
getNextToken()
Next token returned in the response of a previous
ListContacts call. |
int |
hashCode() |
void |
setContactList(Collection<ContactData> contactList)
List of contacts.
|
void |
setNextToken(String nextToken)
Next token returned in the response of a previous
ListContacts call. |
String |
toString()
Returns a string representation of this object.
|
ListContactsResult |
withContactList(Collection<ContactData> contactList)
List of contacts.
|
ListContactsResult |
withContactList(ContactData... contactList)
List of contacts.
|
ListContactsResult |
withNextToken(String nextToken)
Next token returned in the response of a previous
ListContacts call. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<ContactData> getContactList()
List of contacts.
public void setContactList(Collection<ContactData> contactList)
List of contacts.
contactList
- List of contacts.public ListContactsResult withContactList(ContactData... contactList)
List of contacts.
NOTE: This method appends the values to the existing list (if any). Use
setContactList(java.util.Collection)
or withContactList(java.util.Collection)
if you want to
override the existing values.
contactList
- List of contacts.public ListContactsResult withContactList(Collection<ContactData> contactList)
List of contacts.
contactList
- List of contacts.public void setNextToken(String nextToken)
Next token returned in the response of a previous ListContacts
call. Used to get the next page of
results.
nextToken
- Next token returned in the response of a previous ListContacts
call. Used to get the next
page of results.public String getNextToken()
Next token returned in the response of a previous ListContacts
call. Used to get the next page of
results.
ListContacts
call. Used to get the next
page of results.public ListContactsResult withNextToken(String nextToken)
Next token returned in the response of a previous ListContacts
call. Used to get the next page of
results.
nextToken
- Next token returned in the response of a previous ListContacts
call. Used to get the next
page of results.public String toString()
toString
in class Object
Object.toString()
public ListContactsResult clone()