Interface EmailInsights.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EmailInsights.Builder,
,EmailInsights> SdkBuilder<EmailInsights.Builder,
,EmailInsights> SdkPojo
- Enclosing class:
EmailInsights
public static interface EmailInsights.Builder
extends SdkPojo, CopyableBuilder<EmailInsights.Builder,EmailInsights>
-
Method Summary
Modifier and TypeMethodDescriptiondestination
(String destination) The recipient of the email.events
(Collection<InsightsEvent> events) A list of events associated with the sent email.events
(Consumer<InsightsEvent.Builder>... events) A list of events associated with the sent email.events
(InsightsEvent... events) A list of events associated with the sent email.The recipient's ISP (e.g.,Gmail
,Yahoo
, etc.).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
-
destination
The recipient of the email.
- Parameters:
destination
- The recipient of the email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isp
The recipient's ISP (e.g.,
Gmail
,Yahoo
, etc.).- Parameters:
isp
- The recipient's ISP (e.g.,Gmail
,Yahoo
, etc.).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
A list of events associated with the sent email.
- Parameters:
events
- A list of events associated with the sent email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
A list of events associated with the sent email.
- Parameters:
events
- A list of events associated with the sent email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
A list of events associated with the sent email.
This is a convenience method that creates an instance of theInsightsEvent.Builder
avoiding the need to create one manually viaInsightsEvent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toevents(List<InsightsEvent>)
.- Parameters:
events
- a consumer that will call methods onInsightsEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-