Interface SearchContactsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConnectResponse.Builder,CopyableBuilder<SearchContactsResponse.Builder,SearchContactsResponse>,SdkBuilder<SearchContactsResponse.Builder,SearchContactsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- SearchContactsResponse
public static interface SearchContactsResponse.Builder extends ConnectResponse.Builder, SdkPojo, CopyableBuilder<SearchContactsResponse.Builder,SearchContactsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SearchContactsResponse.Buildercontacts(Collection<ContactSearchSummary> contacts)Information about the contacts.SearchContactsResponse.Buildercontacts(Consumer<ContactSearchSummary.Builder>... contacts)Information about the contacts.SearchContactsResponse.Buildercontacts(ContactSearchSummary... contacts)Information about the contacts.SearchContactsResponse.BuildernextToken(String nextToken)If there are additional results, this is the token for the next set of results.SearchContactsResponse.BuildertotalCount(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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
contacts
SearchContactsResponse.Builder contacts(Collection<ContactSearchSummary> 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
SearchContactsResponse.Builder contacts(ContactSearchSummary... 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
SearchContactsResponse.Builder contacts(Consumer<ContactSearchSummary.Builder>... contacts)
Information about the contacts.
This is a convenience method that creates an instance of theContactSearchSummary.Builderavoiding the need to create one manually viaContactSearchSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#contacts(List.) - 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:
#contacts(java.util.Collection)
-
nextToken
SearchContactsResponse.Builder nextToken(String 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
SearchContactsResponse.Builder totalCount(Long 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.
-
-