aws_sdk_connectcases/client/create_template.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateTemplate`](crate::operation::create_template::builders::CreateTemplateFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_id(impl Into<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::domain_id) / [`set_domain_id(Option<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_domain_id):<br>required: **true**<br><p>The unique identifier of the Cases domain.</p><br>
/// - [`name(impl Into<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_name):<br>required: **true**<br><p>A name for the template. It must be unique per domain.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_description):<br>required: **false**<br><p>A brief description of the template.</p><br>
/// - [`layout_configuration(LayoutConfiguration)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::layout_configuration) / [`set_layout_configuration(Option<LayoutConfiguration>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_layout_configuration):<br>required: **false**<br><p>Configuration of layouts associated to the template.</p><br>
/// - [`required_fields(RequiredField)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::required_fields) / [`set_required_fields(Option<Vec::<RequiredField>>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_required_fields):<br>required: **false**<br><p>A list of fields that must contain a value for a case to be successfully created with this template.</p><br>
/// - [`status(TemplateStatus)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::status) / [`set_status(Option<TemplateStatus>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_status):<br>required: **false**<br><p>The status of the template.</p><br>
/// - On success, responds with [`CreateTemplateOutput`](crate::operation::create_template::CreateTemplateOutput) with field(s):
/// - [`template_id(String)`](crate::operation::create_template::CreateTemplateOutput::template_id): <p>A unique identifier of a template.</p>
/// - [`template_arn(String)`](crate::operation::create_template::CreateTemplateOutput::template_arn): <p>The Amazon Resource Name (ARN) of the newly created template.</p>
/// - On failure, responds with [`SdkError<CreateTemplateError>`](crate::operation::create_template::CreateTemplateError)
pub fn create_template(&self) -> crate::operation::create_template::builders::CreateTemplateFluentBuilder {
crate::operation::create_template::builders::CreateTemplateFluentBuilder::new(self.handle.clone())
}
}