public EventDestination withPinpointDestination(PinpointDestination pinpointDestination) {
        setPinpointDestination(pinpointDestination);
        return this;
    }
<p>
An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to
a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to
Amazon Pinpoint. For more information, see <a
href="https://docs.aws.amazon.com/pinpoint/latest/userguide/analytics-transactional-messages.html">Transactional
Messaging Charts</a> in the <i>Amazon Pinpoint User Guide</i>.
</p>

@param pinpointDestination
       An object that defines an Amazon Pinpoint project destination for email events. You can send email event
       data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are
       built in to Amazon Pinpoint. For more information, see <a
       href="https://docs.aws.amazon.com/pinpoint/latest/userguide/analytics-transactional-messages.html"
       >Transactional Messaging Charts</a> in the <i>Amazon Pinpoint User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/EventDestination.java