Interface ListContactsResponse.Builder

  • Method Details

    • contacts

      The contacts present in a specific contact list.

      Parameters:
      contacts - The contacts present in a specific contact list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contacts

      ListContactsResponse.Builder contacts(Contact... contacts)

      The contacts present in a specific contact list.

      Parameters:
      contacts - The contacts present in a specific contact list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contacts

      The contacts present in a specific contact list.

      This is a convenience method that creates an instance of the Contact.Builder avoiding the need to create one manually via Contact.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to contacts(List<Contact>).

      Parameters:
      contacts - a consumer that will call methods on Contact.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nextToken

      ListContactsResponse.Builder nextToken(String nextToken)

      A string token indicating that there might be additional contacts available to be listed. Copy this token to a subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

      Parameters:
      nextToken - A string token indicating that there might be additional contacts available to be listed. Copy this token to a subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.