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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateContactRequest.BuilderattributesData(String attributesData)The attribute data attached to a contact.CreateContactRequest.BuildercontactListName(String contactListName)The name of the contact list to which the contact should be added.CreateContactRequest.BuilderemailAddress(String emailAddress)The contact's email address.CreateContactRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateContactRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateContactRequest.BuildertopicPreferences(Collection<TopicPreference> topicPreferences)The contact's preferences for being opted-in to or opted-out of topics.CreateContactRequest.BuildertopicPreferences(Consumer<TopicPreference.Builder>... topicPreferences)The contact's preferences for being opted-in to or opted-out of topics.CreateContactRequest.BuildertopicPreferences(TopicPreference... topicPreferences)The contact's preferences for being opted-in to or opted-out of topics.CreateContactRequest.BuilderunsubscribeAll(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 Detail
-
contactListName
CreateContactRequest.Builder contactListName(String 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
CreateContactRequest.Builder emailAddress(String 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
CreateContactRequest.Builder topicPreferences(Collection<TopicPreference> 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(TopicPreference... 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 to#topicPreferences(List.) - 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:
#topicPreferences(java.util.Collection)
-
unsubscribeAll
CreateContactRequest.Builder unsubscribeAll(Boolean 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
CreateContactRequest.Builder attributesData(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateContactRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-