Interface EngagementPreferences.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EngagementPreferences.Builder,,EngagementPreferences> SdkBuilder<EngagementPreferences.Builder,,EngagementPreferences> SdkPojo
- Enclosing class:
EngagementPreferences
@Mutable
@NotThreadSafe
public static interface EngagementPreferences.Builder
extends SdkPojo, CopyableBuilder<EngagementPreferences.Builder,EngagementPreferences>
-
Method Summary
Modifier and TypeMethodDescriptionemail(Collection<ContactPreference> email) A list of email-related contact preferencesemail(Consumer<ContactPreference.Builder>... email) A list of email-related contact preferencesemail(ContactPreference... email) A list of email-related contact preferencesphone(Collection<ContactPreference> phone) A list of phone-related contact preferencesphone(Consumer<ContactPreference.Builder>... phone) A list of phone-related contact preferencesphone(ContactPreference... phone) A list of phone-related contact preferencesMethods 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, sdkFieldNameToField, sdkFields
-
Method Details
-
phone
A list of phone-related contact preferences
- Parameters:
phone- A list of phone-related contact preferences- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phone
A list of phone-related contact preferences
- Parameters:
phone- A list of phone-related contact preferences- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phone
A list of phone-related contact preferences
This is a convenience method that creates an instance of theContactPreference.Builderavoiding the need to create one manually viaContactPreference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tophone(List<ContactPreference>).- Parameters:
phone- a consumer that will call methods onContactPreference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
email
A list of email-related contact preferences
- Parameters:
email- A list of email-related contact preferences- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
email
A list of email-related contact preferences
- Parameters:
email- A list of email-related contact preferences- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
email
A list of email-related contact preferences
This is a convenience method that creates an instance of theContactPreference.Builderavoiding the need to create one manually viaContactPreference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toemail(List<ContactPreference>).- Parameters:
email- a consumer that will call methods onContactPreference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-