aws_sdk_securityir/client/
get_case_attachment_upload_url.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetCaseAttachmentUploadUrl`](crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`case_id(impl Into<String>)`](crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder::case_id) / [`set_case_id(Option<String>)`](crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder::set_case_id):<br>required: **true**<br><p>Required element for GetCaseAttachmentUploadUrl to identify the case ID for uploading an attachment to.</p><br>
    ///   - [`file_name(impl Into<String>)`](crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder::file_name) / [`set_file_name(Option<String>)`](crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder::set_file_name):<br>required: **true**<br><p>Required element for GetCaseAttachmentUploadUrl to identify the file name of the attachment to upload.</p><br>
    ///   - [`content_length(i64)`](crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder::content_length) / [`set_content_length(Option<i64>)`](crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder::set_content_length):<br>required: **true**<br><p>Required element for GetCaseAttachmentUploadUrl to identify the size od the file attachment.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder::set_client_token):<br>required: **false**<br><p>Optional element for customer provided token.</p><br>
    /// - On success, responds with [`GetCaseAttachmentUploadUrlOutput`](crate::operation::get_case_attachment_upload_url::GetCaseAttachmentUploadUrlOutput) with field(s):
    ///   - [`attachment_presigned_url(String)`](crate::operation::get_case_attachment_upload_url::GetCaseAttachmentUploadUrlOutput::attachment_presigned_url): <p>Response element providing the Amazon S3 presigned UTL to upload the attachment.</p>
    /// - On failure, responds with [`SdkError<GetCaseAttachmentUploadUrlError>`](crate::operation::get_case_attachment_upload_url::GetCaseAttachmentUploadUrlError)
    pub fn get_case_attachment_upload_url(
        &self,
    ) -> crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder {
        crate::operation::get_case_attachment_upload_url::builders::GetCaseAttachmentUploadUrlFluentBuilder::new(self.handle.clone())
    }
}