Interface CreateContactRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateContactRequest.Builder,
,CreateContactRequest> SdkBuilder<CreateContactRequest.Builder,
,CreateContactRequest> SdkPojo
,SdkRequest.Builder
,SesV2Request.Builder
- Enclosing class:
CreateContactRequest
public static interface CreateContactRequest.Builder
extends SesV2Request.Builder, SdkPojo, CopyableBuilder<CreateContactRequest.Builder,CreateContactRequest>
-
Method Summary
Modifier and TypeMethodDescriptionattributesData
(String attributesData) The attribute data attached to a contact.contactListName
(String contactListName) The name of the contact list to which the contact should be added.emailAddress
(String emailAddress) The contact's email address.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.topicPreferences
(Collection<TopicPreference> topicPreferences) The contact's preferences for being opted-in to or opted-out of topics.topicPreferences
(Consumer<TopicPreference.Builder>... topicPreferences) The contact's preferences for being opted-in to or opted-out of topics.topicPreferences
(TopicPreference... topicPreferences) The contact's preferences for being opted-in to or opted-out of topics.unsubscribeAll
(Boolean unsubscribeAll) A boolean value status noting if the contact is unsubscribed from all contact list topics.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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.services.sesv2.model.SesV2Request.Builder
build
-
Method Details
-
contactListName
The name of the contact list to which the contact should be added.
- Parameters:
contactListName
- The name of the contact list to which the contact should be added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailAddress
The contact's email address.
- Parameters:
emailAddress
- The contact's email address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPreferences
The contact's preferences for being opted-in to or opted-out of topics.
- Parameters:
topicPreferences
- The contact's preferences for being opted-in to or opted-out of topics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPreferences
The contact's preferences for being opted-in to or opted-out of topics.
- Parameters:
topicPreferences
- The contact's preferences for being opted-in to or opted-out of topics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPreferences
CreateContactRequest.Builder topicPreferences(Consumer<TopicPreference.Builder>... topicPreferences) The contact's preferences for being opted-in to or opted-out of topics.
This is a convenience method that creates an instance of theTopicPreference.Builder
avoiding the need to create one manually viaTopicPreference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totopicPreferences(List<TopicPreference>)
.- Parameters:
topicPreferences
- a consumer that will call methods onTopicPreference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unsubscribeAll
A boolean value status noting if the contact is unsubscribed from all contact list topics.
- Parameters:
unsubscribeAll
- A boolean value status noting if the contact is unsubscribed from all contact list topics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributesData
The attribute data attached to a contact.
- Parameters:
attributesData
- The attribute data attached to a contact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateContactRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateContactRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-