Interface SearchEmailAddressesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ConnectResponse.Builder
,CopyableBuilder<SearchEmailAddressesResponse.Builder,
,SearchEmailAddressesResponse> SdkBuilder<SearchEmailAddressesResponse.Builder,
,SearchEmailAddressesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SearchEmailAddressesResponse
@Mutable
@NotThreadSafe
public static interface SearchEmailAddressesResponse.Builder
extends ConnectResponse.Builder, SdkPojo, CopyableBuilder<SearchEmailAddressesResponse.Builder,SearchEmailAddressesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionapproximateTotalCount
(Long approximateTotalCount) The total number of email addresses which matched your search query.emailAddresses
(Collection<EmailAddressMetadata> emailAddresses) List of email addresses matching SearchFilter and SearchCriteriaemailAddresses
(Consumer<EmailAddressMetadata.Builder>... emailAddresses) List of email addresses matching SearchFilter and SearchCriteriaemailAddresses
(EmailAddressMetadata... emailAddresses) List of email addresses matching SearchFilter and SearchCriteriaIf there are additional results, this is the token for the next set of results.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
-
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.
-
emailAddresses
SearchEmailAddressesResponse.Builder emailAddresses(Collection<EmailAddressMetadata> emailAddresses) List of email addresses matching SearchFilter and SearchCriteria
- Parameters:
emailAddresses
- List of email addresses matching SearchFilter and SearchCriteria- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailAddresses
List of email addresses matching SearchFilter and SearchCriteria
- Parameters:
emailAddresses
- List of email addresses matching SearchFilter and SearchCriteria- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailAddresses
SearchEmailAddressesResponse.Builder emailAddresses(Consumer<EmailAddressMetadata.Builder>... emailAddresses) List of email addresses matching SearchFilter and SearchCriteria
This is a convenience method that creates an instance of theEmailAddressMetadata.Builder
avoiding the need to create one manually viaEmailAddressMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toemailAddresses(List<EmailAddressMetadata>)
.- Parameters:
emailAddresses
- a consumer that will call methods onEmailAddressMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approximateTotalCount
The total number of email addresses which matched your search query.
- Parameters:
approximateTotalCount
- The total number of email addresses which matched your search query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-