aws_sdk_connectparticipant/client/get_attachment.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetAttachment`](crate::operation::get_attachment::builders::GetAttachmentFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`attachment_id(impl Into<String>)`](crate::operation::get_attachment::builders::GetAttachmentFluentBuilder::attachment_id) / [`set_attachment_id(Option<String>)`](crate::operation::get_attachment::builders::GetAttachmentFluentBuilder::set_attachment_id):<br>required: **true**<br><p>A unique identifier for the attachment.</p><br>
/// - [`connection_token(impl Into<String>)`](crate::operation::get_attachment::builders::GetAttachmentFluentBuilder::connection_token) / [`set_connection_token(Option<String>)`](crate::operation::get_attachment::builders::GetAttachmentFluentBuilder::set_connection_token):<br>required: **true**<br><p>The authentication token associated with the participant's connection.</p><br>
/// - [`url_expiry_in_seconds(i32)`](crate::operation::get_attachment::builders::GetAttachmentFluentBuilder::url_expiry_in_seconds) / [`set_url_expiry_in_seconds(Option<i32>)`](crate::operation::get_attachment::builders::GetAttachmentFluentBuilder::set_url_expiry_in_seconds):<br>required: **false**<br><p>The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.</p><br>
/// - On success, responds with [`GetAttachmentOutput`](crate::operation::get_attachment::GetAttachmentOutput) with field(s):
/// - [`url(Option<String>)`](crate::operation::get_attachment::GetAttachmentOutput::url): <p>This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_StartAttachmentUpload.html">StartAttachmentUpload</a>.</p>
/// - [`url_expiry(Option<String>)`](crate::operation::get_attachment::GetAttachmentOutput::url_expiry): <p>The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.</p>
/// - [`attachment_size_in_bytes(i64)`](crate::operation::get_attachment::GetAttachmentOutput::attachment_size_in_bytes): <p>The size of the attachment in bytes.</p>
/// - On failure, responds with [`SdkError<GetAttachmentError>`](crate::operation::get_attachment::GetAttachmentError)
pub fn get_attachment(&self) -> crate::operation::get_attachment::builders::GetAttachmentFluentBuilder {
crate::operation::get_attachment::builders::GetAttachmentFluentBuilder::new(self.handle.clone())
}
}