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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EmailInsights.Builderdestination(String destination)The recipient of the email.EmailInsights.Builderevents(Collection<InsightsEvent> events)A list of events associated with the sent email.EmailInsights.Builderevents(Consumer<InsightsEvent.Builder>... events)A list of events associated with the sent email.EmailInsights.Builderevents(InsightsEvent... events)A list of events associated with the sent email.EmailInsights.Builderisp(String isp)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 Detail
-
destination
EmailInsights.Builder destination(String 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
EmailInsights.Builder isp(String 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
EmailInsights.Builder events(Collection<InsightsEvent> 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
EmailInsights.Builder events(InsightsEvent... 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
EmailInsights.Builder events(Consumer<InsightsEvent.Builder>... events)
A list of events associated with the sent email.
This is a convenience method that creates an instance of theInsightsEvent.Builderavoiding the need to create one manually viaInsightsEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#events(List.) - 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:
#events(java.util.Collection)
-
-