aws_sdk_connectcases/client/
create_related_item.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 [`CreateRelatedItem`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain_id(impl Into<String>)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::domain_id) / [`set_domain_id(Option<String>)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::set_domain_id):<br>required: **true**<br><p>The unique identifier of the Cases domain.</p><br>
    ///   - [`case_id(impl Into<String>)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::case_id) / [`set_case_id(Option<String>)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::set_case_id):<br>required: **true**<br><p>A unique identifier of the case.</p><br>
    ///   - [`r#type(RelatedItemType)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::type) / [`set_type(Option<RelatedItemType>)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::set_type):<br>required: **true**<br><p>The type of a related item.</p><br>
    ///   - [`content(RelatedItemInputContent)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::content) / [`set_content(Option<RelatedItemInputContent>)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::set_content):<br>required: **true**<br><p>The content of a related item to be created.</p><br>
    ///   - [`performed_by(UserUnion)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::performed_by) / [`set_performed_by(Option<UserUnion>)`](crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::set_performed_by):<br>required: **false**<br><p>Represents the creator of the related item.</p><br>
    /// - On success, responds with [`CreateRelatedItemOutput`](crate::operation::create_related_item::CreateRelatedItemOutput) with field(s):
    ///   - [`related_item_id(String)`](crate::operation::create_related_item::CreateRelatedItemOutput::related_item_id): <p>The unique identifier of the related item.</p>
    ///   - [`related_item_arn(String)`](crate::operation::create_related_item::CreateRelatedItemOutput::related_item_arn): <p>The Amazon Resource Name (ARN) of the related item.</p>
    /// - On failure, responds with [`SdkError<CreateRelatedItemError>`](crate::operation::create_related_item::CreateRelatedItemError)
    pub fn create_related_item(&self) -> crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder {
        crate::operation::create_related_item::builders::CreateRelatedItemFluentBuilder::new(self.handle.clone())
    }
}