public TemplateConfiguration withVoiceTemplate(Template voiceTemplate) {
        setVoiceTemplate(voiceTemplate);
        return this;
    }
<p>
The voice template to use for the message. This object isn't supported for campaigns.
</p>

@param voiceTemplate
       The voice template to use for the message. This object isn't supported for campaigns.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/TemplateConfiguration.java