aws_sdk_connectparticipant/client/start_attachment_upload.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`StartAttachmentUpload`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`content_type(impl Into<String>)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::set_content_type):<br>required: **true**<br><p>Describes the MIME file type of the attachment. For a list of supported file types, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/feature-limits.html">Feature specifications</a> in the <i>Amazon Connect Administrator Guide</i>.</p><br>
/// - [`attachment_size_in_bytes(i64)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::attachment_size_in_bytes) / [`set_attachment_size_in_bytes(Option<i64>)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::set_attachment_size_in_bytes):<br>required: **true**<br><p>The size of the attachment in bytes.</p><br>
/// - [`attachment_name(impl Into<String>)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::attachment_name) / [`set_attachment_name(Option<String>)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::set_attachment_name):<br>required: **true**<br><p>A case-sensitive name of the attachment being uploaded.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::set_client_token):<br>required: **true**<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="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p><br>
/// - [`connection_token(impl Into<String>)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::connection_token) / [`set_connection_token(Option<String>)`](crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::set_connection_token):<br>required: **true**<br><p>The authentication token associated with the participant's connection.</p><br>
/// - On success, responds with [`StartAttachmentUploadOutput`](crate::operation::start_attachment_upload::StartAttachmentUploadOutput) with field(s):
/// - [`attachment_id(Option<String>)`](crate::operation::start_attachment_upload::StartAttachmentUploadOutput::attachment_id): <p>A unique identifier for the attachment.</p>
/// - [`upload_metadata(Option<UploadMetadata>)`](crate::operation::start_attachment_upload::StartAttachmentUploadOutput::upload_metadata): <p>The headers to be provided while uploading the file to the URL.</p>
/// - On failure, responds with [`SdkError<StartAttachmentUploadError>`](crate::operation::start_attachment_upload::StartAttachmentUploadError)
pub fn start_attachment_upload(&self) -> crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder {
crate::operation::start_attachment_upload::builders::StartAttachmentUploadFluentBuilder::new(self.handle.clone())
}
}