aws-sdk-pinpoint 1.85.0

AWS SDK for Amazon Pinpoint
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateVoiceTemplate`](crate::operation::create_voice_template::builders::CreateVoiceTemplateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`template_name(impl Into<String>)`](crate::operation::create_voice_template::builders::CreateVoiceTemplateFluentBuilder::template_name) / [`set_template_name(Option<String>)`](crate::operation::create_voice_template::builders::CreateVoiceTemplateFluentBuilder::set_template_name):<br>required: **true**<br><p>The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.</p><br>
    ///   - [`voice_template_request(VoiceTemplateRequest)`](crate::operation::create_voice_template::builders::CreateVoiceTemplateFluentBuilder::voice_template_request) / [`set_voice_template_request(Option<VoiceTemplateRequest>)`](crate::operation::create_voice_template::builders::CreateVoiceTemplateFluentBuilder::set_voice_template_request):<br>required: **true**<br><p>Specifies the content and settings for a message template that can be used in messages that are sent through the voice channel.</p><br>
    /// - On success, responds with [`CreateVoiceTemplateOutput`](crate::operation::create_voice_template::CreateVoiceTemplateOutput) with field(s):
    ///   - [`create_template_message_body(Option<CreateTemplateMessageBody>)`](crate::operation::create_voice_template::CreateVoiceTemplateOutput::create_template_message_body): <p>Provides information about a request to create a message template.</p>
    /// - On failure, responds with [`SdkError<CreateVoiceTemplateError>`](crate::operation::create_voice_template::CreateVoiceTemplateError)
    pub fn create_voice_template(&self) -> crate::operation::create_voice_template::builders::CreateVoiceTemplateFluentBuilder {
        crate::operation::create_voice_template::builders::CreateVoiceTemplateFluentBuilder::new(self.handle.clone())
    }
}