aws_sdk_workdocs/client/
create_custom_metadata.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateCustomMetadata`](crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`authentication_token(impl Into<String>)`](crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder::set_authentication_token):<br>required: **false**<br><p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p><br>
    ///   - [`resource_id(impl Into<String>)`](crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder::set_resource_id):<br>required: **true**<br><p>The ID of the resource.</p><br>
    ///   - [`version_id(impl Into<String>)`](crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder::version_id) / [`set_version_id(Option<String>)`](crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder::set_version_id):<br>required: **false**<br><p>The ID of the version, if the custom metadata is being added to a document version.</p><br>
    ///   - [`custom_metadata(impl Into<String>, impl Into<String>)`](crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder::custom_metadata) / [`set_custom_metadata(Option<HashMap::<String, String>>)`](crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder::set_custom_metadata):<br>required: **true**<br><p>Custom metadata in the form of name-value pairs.</p><br>
    /// - On success, responds with [`CreateCustomMetadataOutput`](crate::operation::create_custom_metadata::CreateCustomMetadataOutput)
    /// - On failure, responds with [`SdkError<CreateCustomMetadataError>`](crate::operation::create_custom_metadata::CreateCustomMetadataError)
    pub fn create_custom_metadata(&self) -> crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder {
        crate::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder::new(self.handle.clone())
    }
}