aws_sdk_support/client/
add_attachments_to_set.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 [`AddAttachmentsToSet`](crate::operation::add_attachments_to_set::builders::AddAttachmentsToSetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`attachment_set_id(impl Into<String>)`](crate::operation::add_attachments_to_set::builders::AddAttachmentsToSetFluentBuilder::attachment_set_id) / [`set_attachment_set_id(Option<String>)`](crate::operation::add_attachments_to_set::builders::AddAttachmentsToSetFluentBuilder::set_attachment_set_id):<br>required: **false**<br><p>The ID of the attachment set. If an <code>attachmentSetId</code> is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an <code>attachmentSetId</code> is specified, the attachments are added to the specified set, if it exists.</p><br>
7    ///   - [`attachments(Attachment)`](crate::operation::add_attachments_to_set::builders::AddAttachmentsToSetFluentBuilder::attachments) / [`set_attachments(Option<Vec::<Attachment>>)`](crate::operation::add_attachments_to_set::builders::AddAttachmentsToSetFluentBuilder::set_attachments):<br>required: **true**<br><p>One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.</p> <p>In the <code>Attachment</code> object, use the <code>data</code> parameter to specify the contents of the attachment file. In the previous request syntax, the value for <code>data</code> appear as <code>blob</code>, which is represented as a base64-encoded string. The value for <code>fileName</code> is the name of the attachment, such as <code>troubleshoot-screenshot.png</code>.</p><br>
8    /// - On success, responds with [`AddAttachmentsToSetOutput`](crate::operation::add_attachments_to_set::AddAttachmentsToSetOutput) with field(s):
9    ///   - [`attachment_set_id(Option<String>)`](crate::operation::add_attachments_to_set::AddAttachmentsToSetOutput::attachment_set_id): <p>The ID of the attachment set. If an <code>attachmentSetId</code> was not specified, a new attachment set is created, and the ID of the set is returned in the response. If an <code>attachmentSetId</code> was specified, the attachments are added to the specified set, if it exists.</p>
10    ///   - [`expiry_time(Option<String>)`](crate::operation::add_attachments_to_set::AddAttachmentsToSetOutput::expiry_time): <p>The time and date when the attachment set expires.</p>
11    /// - On failure, responds with [`SdkError<AddAttachmentsToSetError>`](crate::operation::add_attachments_to_set::AddAttachmentsToSetError)
12    pub fn add_attachments_to_set(&self) -> crate::operation::add_attachments_to_set::builders::AddAttachmentsToSetFluentBuilder {
13        crate::operation::add_attachments_to_set::builders::AddAttachmentsToSetFluentBuilder::new(self.handle.clone())
14    }
15}