aws_sdk_qconnect/client/create_message_template_attachment.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateMessageTemplateAttachment`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`knowledge_base_id(impl Into<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
7 /// - [`message_template_id(impl Into<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::message_template_id) / [`set_message_template_id(Option<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::set_message_template_id):<br>required: **true**<br><p>The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.</p><br>
8 /// - [`content_disposition(ContentDisposition)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::content_disposition) / [`set_content_disposition(Option<ContentDisposition>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::set_content_disposition):<br>required: **true**<br><p>The presentation information for the attachment file.</p><br>
9 /// - [`name(impl Into<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::set_name):<br>required: **true**<br><p>The name of the attachment file being uploaded. The name should include the file extension.</p><br>
10 /// - [`body(impl Into<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::body) / [`set_body(Option<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::set_body):<br>required: **true**<br><p>The body of the attachment file being uploaded. It should be encoded using base64 encoding.</p><br>
11 /// - [`client_token(impl Into<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p><br>
12 /// - On success, responds with [`CreateMessageTemplateAttachmentOutput`](crate::operation::create_message_template_attachment::CreateMessageTemplateAttachmentOutput) with field(s):
13 /// - [`attachment(Option<MessageTemplateAttachment>)`](crate::operation::create_message_template_attachment::CreateMessageTemplateAttachmentOutput::attachment): <p>The message template attachment.</p>
14 /// - On failure, responds with [`SdkError<CreateMessageTemplateAttachmentError>`](crate::operation::create_message_template_attachment::CreateMessageTemplateAttachmentError)
15 pub fn create_message_template_attachment(
16 &self,
17 ) -> crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder {
18 crate::operation::create_message_template_attachment::builders::CreateMessageTemplateAttachmentFluentBuilder::new(self.handle.clone())
19 }
20}