Interface SearchContactsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ConnectResponse.Builder
,CopyableBuilder<SearchContactsResponse.Builder,
,SearchContactsResponse> SdkBuilder<SearchContactsResponse.Builder,
,SearchContactsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SearchContactsResponse
@Mutable
@NotThreadSafe
public static interface SearchContactsResponse.Builder
extends ConnectResponse.Builder, SdkPojo, CopyableBuilder<SearchContactsResponse.Builder,SearchContactsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncontacts
(Collection<ContactSearchSummary> contacts) Information about the contacts.contacts
(Consumer<ContactSearchSummary.Builder>... contacts) Information about the contacts.contacts
(ContactSearchSummary... contacts) Information about the contacts.If there are additional results, this is the token for the next set of results.totalCount
(Long totalCount) The total number of contacts which matched your search query.Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
contacts
Information about the contacts.
- Parameters:
contacts
- Information about the contacts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contacts
Information about the contacts.
- Parameters:
contacts
- Information about the contacts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contacts
Information about the contacts.
This is a convenience method that creates an instance of theContactSearchSummary.Builder
avoiding the need to create one manually viaContactSearchSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontacts(List<ContactSearchSummary>)
.- Parameters:
contacts
- a consumer that will call methods onContactSearchSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If there are additional results, this is the token for the next set of results.
- Parameters:
nextToken
- If there are additional results, this is the token for the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalCount
The total number of contacts which matched your search query.
- Parameters:
totalCount
- The total number of contacts which matched your search query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-