Interface ListContactsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListContactsResponse.Builder,,ListContactsResponse> SdkBuilder<ListContactsResponse.Builder,,ListContactsResponse> SdkPojo,SdkResponse.Builder,SesV2Response.Builder
- Enclosing class:
ListContactsResponse
@Mutable
@NotThreadSafe
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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods 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.Builderavoiding the need to create one manually viaContact.builder().When the
Consumercompletes,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
ListContactswith 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 toListContactswith 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.
-