public MessageResult withDeliveryStatus(DeliveryStatus deliveryStatus) {
        this.deliveryStatus = deliveryStatus.toString();
        return this;
    }
<p>
The delivery status of the message. Possible values are:
</p>
<ul>
<li>
<p>
DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to
send the message again.
</p>
</li>
<li>
<p>
OPT_OUT - The user who's associated with the endpoint address has opted out of receiving messages from you.
Amazon Pinpoint won't attempt to send the message again.
</p>
</li>
<li>
<p>
PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint address. Amazon Pinpoint won't
attempt to send the message again.
</p>
</li>
<li>
<p>
SUCCESSFUL - The message was successfully delivered to the endpoint address.
</p>
</li>
<li>
<p>
TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't attempt to send the message again.
</p>
</li>
<li>
<p>
THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint address.
</p>
</li>
<li>
<p>
UNKNOWN_FAILURE - An unknown error occurred.
</p>
</li>
</ul>

@param deliveryStatus
       The delivery status of the message. Possible values are:</p>
       <ul>
       <li>
       <p>
       DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt
       to send the message again.
       </p>
       </li>
       <li>
       <p>
       OPT_OUT - The user who's associated with the endpoint address has opted out of receiving messages from
       you. Amazon Pinpoint won't attempt to send the message again.
       </p>
       </li>
       <li>
       <p>
       PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint address. Amazon Pinpoint
       won't attempt to send the message again.
       </p>
       </li>
       <li>
       <p>
       SUCCESSFUL - The message was successfully delivered to the endpoint address.
       </p>
       </li>
       <li>
       <p>
       TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't attempt to send the message again.
       </p>
       </li>
       <li>
       <p>
       THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint address.
       </p>
       </li>
       <li>
       <p>
       UNKNOWN_FAILURE - An unknown error occurred.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see DeliveryStatus
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/MessageResult.java