public MessageInsightsFilters withLastDeliveryEvent(DeliveryEventType... lastDeliveryEvent) {
        java.util.ArrayList<String> lastDeliveryEventCopy = new java.util.ArrayList<String>(lastDeliveryEvent.length);
        for (DeliveryEventType value : lastDeliveryEvent) {
            lastDeliveryEventCopy.add(value.toString());
        }
        if (getLastDeliveryEvent() == null) {
            setLastDeliveryEvent(lastDeliveryEventCopy);
        } else {
            getLastDeliveryEvent().addAll(lastDeliveryEventCopy);
        }
        return this;
    }
<p>
The last delivery-related event for the email, where the ordering is as follows: <code>SEND</code> &lt;
<code>BOUNCE</code> &lt; <code>DELIVERY</code> &lt; <code>COMPLAINT</code>.
</p>

@param lastDeliveryEvent
       The last delivery-related event for the email, where the ordering is as follows: <code>SEND</code> &lt;
       <code>BOUNCE</code> &lt; <code>DELIVERY</code> &lt; <code>COMPLAINT</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see DeliveryEventType
aws-java-sdk-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/MessageInsightsFilters.java