@Generated(value="software.amazon.awssdk:codegen") public final class MessageInsightsFilters extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MessageInsightsFilters.Builder,MessageInsightsFilters>
An object containing Message Insights filters.
If you specify multiple filters, the filters are joined by AND.
If you specify multiple values for a filter, the values are joined by OR. Filter values are case-sensitive.
FromEmailAddress, Destination, and Subject filters support partial match. A
partial match is performed by using the * wildcard character placed at the beginning (suffix match), the
end (prefix match) or both ends of the string (contains match). In order to match the literal characters
* or \, they must be escaped using the \ character. If no wildcard character
is present, an exact match is performed.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MessageInsightsFilters.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MessageInsightsFilters.Builder |
builder() |
List<String> |
destination()
The recipient's email address.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<String> |
fromEmailAddress()
The from address used to send the message.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDestination()
For responses, this returns true if the service returned a value for the Destination property.
|
boolean |
hasFromEmailAddress()
For responses, this returns true if the service returned a value for the FromEmailAddress property.
|
int |
hashCode() |
boolean |
hasIsp()
For responses, this returns true if the service returned a value for the Isp property.
|
boolean |
hasLastDeliveryEvent()
For responses, this returns true if the service returned a value for the LastDeliveryEvent property.
|
boolean |
hasLastEngagementEvent()
For responses, this returns true if the service returned a value for the LastEngagementEvent property.
|
boolean |
hasSubject()
For responses, this returns true if the service returned a value for the Subject property.
|
List<String> |
isp()
The recipient's ISP (e.g.,
Gmail, Yahoo, etc.). |
List<DeliveryEventType> |
lastDeliveryEvent()
The last delivery-related event for the email, where the ordering is as follows:
SEND <
BOUNCE < DELIVERY < COMPLAINT. |
List<String> |
lastDeliveryEventAsStrings()
The last delivery-related event for the email, where the ordering is as follows:
SEND <
BOUNCE < DELIVERY < COMPLAINT. |
List<EngagementEventType> |
lastEngagementEvent()
The last engagement-related event for the email, where the ordering is as follows:
OPEN <
CLICK. |
List<String> |
lastEngagementEventAsStrings()
The last engagement-related event for the email, where the ordering is as follows:
OPEN <
CLICK. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends MessageInsightsFilters.Builder> |
serializableBuilderClass() |
List<String> |
subject()
The subject line of the message.
|
MessageInsightsFilters.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasFromEmailAddress()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> fromEmailAddress()
The from address used to send the message.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFromEmailAddress() method.
public final boolean hasDestination()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> destination()
The recipient's email address.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDestination() method.
public final boolean hasSubject()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> subject()
The subject line of the message.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSubject() method.
public final boolean hasIsp()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<String> isp()
The recipient's ISP (e.g., Gmail, Yahoo, etc.).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIsp() method.
Gmail, Yahoo, etc.).public final List<DeliveryEventType> lastDeliveryEvent()
The last delivery-related event for the email, where the ordering is as follows: SEND <
BOUNCE < DELIVERY < COMPLAINT.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLastDeliveryEvent() method.
SEND <
BOUNCE < DELIVERY < COMPLAINT.public final boolean hasLastDeliveryEvent()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> lastDeliveryEventAsStrings()
The last delivery-related event for the email, where the ordering is as follows: SEND <
BOUNCE < DELIVERY < COMPLAINT.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLastDeliveryEvent() method.
SEND <
BOUNCE < DELIVERY < COMPLAINT.public final List<EngagementEventType> lastEngagementEvent()
The last engagement-related event for the email, where the ordering is as follows: OPEN <
CLICK.
Engagement events are only available if Engagement tracking is enabled.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLastEngagementEvent() method.
OPEN <
CLICK.
Engagement events are only available if Engagement tracking is enabled.
public final boolean hasLastEngagementEvent()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> lastEngagementEventAsStrings()
The last engagement-related event for the email, where the ordering is as follows: OPEN <
CLICK.
Engagement events are only available if Engagement tracking is enabled.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLastEngagementEvent() method.
OPEN <
CLICK.
Engagement events are only available if Engagement tracking is enabled.
public MessageInsightsFilters.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MessageInsightsFilters.Builder,MessageInsightsFilters>public static MessageInsightsFilters.Builder builder()
public static Class<? extends MessageInsightsFilters.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.