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
overrideConfigurationMethods 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, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaTopicPreference.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-