public SynthesizeSpeechRequest withSpeechMarkTypes(String... speechMarkTypes) {
        if (this.speechMarkTypes == null) {
            setSpeechMarkTypes(new java.util.ArrayList<String>(speechMarkTypes.length));
        }
        for (String ele : speechMarkTypes) {
            this.speechMarkTypes.add(ele);
        }
        return this;
    }
<p>
The type of speech marks returned for the input text.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSpeechMarkTypes(java.util.Collection)} or {@link #withSpeechMarkTypes(java.util.Collection)} if you
want to override the existing values.
</p>

@param speechMarkTypes
       The type of speech marks returned for the input text.
@return Returns a reference to this object so that method calls can be chained together.
@see SpeechMarkType
aws-java-sdk-polly/src/main/java/com/amazonaws/services/polly/model/SynthesizeSpeechRequest.java