public SynthesisTask withSpeechMarkTypes(SpeechMarkType... speechMarkTypes) {
        java.util.ArrayList<String> speechMarkTypesCopy = new java.util.ArrayList<String>(speechMarkTypes.length);
        for (SpeechMarkType value : speechMarkTypes) {
            speechMarkTypesCopy.add(value.toString());
        }
        if (getSpeechMarkTypes() == null) {
            setSpeechMarkTypes(speechMarkTypesCopy);
        } else {
            getSpeechMarkTypes().addAll(speechMarkTypesCopy);
        }
        return this;
    }
<p>
The type of speech marks returned for the input text.
</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/SynthesisTask.java