Interface ListContactsResponse.Builder

    • Method Detail

      • nextToken

        ListContactsResponse.Builder nextToken​(String nextToken)

        The pagination token to continue to the next page of results.

        Parameters:
        nextToken - The pagination token to continue to the next page of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contacts

        ListContactsResponse.Builder contacts​(Collection<Contact> contacts)

        A list of the contacts and escalation plans in your Incident Manager account.

        Parameters:
        contacts - A list of the contacts and escalation plans in your Incident Manager account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contacts

        ListContactsResponse.Builder contacts​(Contact... contacts)

        A list of the contacts and escalation plans in your Incident Manager account.

        Parameters:
        contacts - A list of the contacts and escalation plans in your Incident Manager account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contacts

        ListContactsResponse.Builder contacts​(Consumer<Contact.Builder>... contacts)

        A list of the contacts and escalation plans in your Incident Manager account.

        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).

        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:
        #contacts(java.util.Collection)