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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListContactsResponse.Buildercontacts(Collection<Contact> contacts)The contacts present in a specific contact list.ListContactsResponse.Buildercontacts(Consumer<Contact.Builder>... contacts)The contacts present in a specific contact list.ListContactsResponse.Buildercontacts(Contact... contacts)The contacts present in a specific contact list.ListContactsResponse.BuildernextToken(String nextToken)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 Detail
-
contacts
ListContactsResponse.Builder contacts(Collection<Contact> 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
ListContactsResponse.Builder contacts(Contact... 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
ListContactsResponse.Builder contacts(Consumer<Contact.Builder>... 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 to#contacts(List.) - 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:
#contacts(java.util.Collection)
-
nextToken
ListContactsResponse.Builder nextToken(String 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.
-
-