public RequestSenderIdRequest withMessageTypes(String... messageTypes) {
        if (this.messageTypes == null) {
            setMessageTypes(new java.util.ArrayList<String>(messageTypes.length));
        }
        for (String ele : messageTypes) {
            this.messageTypes.add(ele);
        }
        return this;
    }
<p>
The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and
PROMOTIONAL for messages that aren't critical or time-sensitive.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMessageTypes(java.util.Collection)} or {@link #withMessageTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param messageTypes
       The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and
       PROMOTIONAL for messages that aren't critical or time-sensitive.
@return Returns a reference to this object so that method calls can be chained together.
@see MessageType
aws-java-sdk-pinpointsmsvoicev2/src/main/java/com/amazonaws/services/pinpointsmsvoicev2/model/RequestSenderIdRequest.java