Interface Contact.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Contact.Builder,
,Contact> SdkBuilder<Contact.Builder,
,Contact> SdkPojo
- Enclosing class:
Contact
-
Method Summary
Modifier and TypeMethodDescriptionemailAddress
(String emailAddress) The contact's email address.lastUpdatedTimestamp
(Instant lastUpdatedTimestamp) A timestamp noting the last time the contact's information was updated.topicDefaultPreferences
(Collection<TopicPreference> topicDefaultPreferences) The default topic preferences applied to the contact.topicDefaultPreferences
(Consumer<TopicPreference.Builder>... topicDefaultPreferences) The default topic preferences applied to the contact.topicDefaultPreferences
(TopicPreference... topicDefaultPreferences) The default topic preferences applied to the contact.topicPreferences
(Collection<TopicPreference> topicPreferences) The contact's preference for being opted-in to or opted-out of a topic.topicPreferences
(Consumer<TopicPreference.Builder>... topicPreferences) The contact's preference for being opted-in to or opted-out of a topic.topicPreferences
(TopicPreference... topicPreferences) The contact's preference for being opted-in to or opted-out of a topic.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.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
-
Method Details
-
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 preference for being opted-in to or opted-out of a topic.
- Parameters:
topicPreferences
- The contact's preference for being opted-in to or opted-out of a topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPreferences
The contact's preference for being opted-in to or opted-out of a topic.
- Parameters:
topicPreferences
- The contact's preference for being opted-in to or opted-out of a topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPreferences
The contact's preference for being opted-in to or opted-out of a topic.
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:
-
topicDefaultPreferences
The default topic preferences applied to the contact.
- Parameters:
topicDefaultPreferences
- The default topic preferences applied to the contact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicDefaultPreferences
The default topic preferences applied to the contact.
- Parameters:
topicDefaultPreferences
- The default topic preferences applied to the contact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicDefaultPreferences
Contact.Builder topicDefaultPreferences(Consumer<TopicPreference.Builder>... topicDefaultPreferences) The default topic preferences applied to the contact.
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 totopicDefaultPreferences(List<TopicPreference>)
.- Parameters:
topicDefaultPreferences
- 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.
-
lastUpdatedTimestamp
A timestamp noting the last time the contact's information was updated.
- Parameters:
lastUpdatedTimestamp
- A timestamp noting the last time the contact's information was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-