Interface ListContactsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListContactsResponse.Builder,
,ListContactsResponse> SdkBuilder<ListContactsResponse.Builder,
,ListContactsResponse> SdkPojo
,SdkResponse.Builder
,SesV2Response.Builder
- Enclosing class:
ListContactsResponse
public static interface ListContactsResponse.Builder
extends SesV2Response.Builder, SdkPojo, CopyableBuilder<ListContactsResponse.Builder,ListContactsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncontacts
(Collection<Contact> contacts) The contacts present in a specific contact list.contacts
(Consumer<Contact.Builder>... contacts) The contacts present in a specific contact list.The contacts present in a specific contact list.A string token indicating that there might be additional contacts available to be listed.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
Methods inherited from interface software.amazon.awssdk.services.sesv2.model.SesV2Response.Builder
build, responseMetadata, responseMetadata
-
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
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 theContact.Builder
avoiding the need to create one manually viaContact.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontacts(List<Contact>)
.- Parameters:
contacts
- a consumer that will call methods onContact.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 toListContacts
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.
-