aws_sdk_wisdom/client/
create_quick_response.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateQuickResponse`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_name):<br>required: **true**<br><p>The name of the quick response.</p><br>
    ///   - [`content(QuickResponseDataProvider)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::content) / [`set_content(Option<QuickResponseDataProvider>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_content):<br>required: **true**<br><p>The content of the quick response.</p><br>
    ///   - [`content_type(impl Into<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_content_type):<br>required: **false**<br><p>The media type of the quick response content.</p> <ul>  <li>   <p>Use <code>application/x.quickresponse;format=plain</code> for a quick response written in plain text.</p></li>  <li>   <p>Use <code>application/x.quickresponse;format=markdown</code> for a quick response written in richtext.</p></li> </ul><br>
    ///   - [`grouping_configuration(GroupingConfiguration)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::grouping_configuration) / [`set_grouping_configuration(Option<GroupingConfiguration>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_grouping_configuration):<br>required: **false**<br><p>The configuration information of the user groups that the quick response is accessible to.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_description):<br>required: **false**<br><p>The description of the quick response.</p><br>
    ///   - [`shortcut_key(impl Into<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::shortcut_key) / [`set_shortcut_key(Option<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_shortcut_key):<br>required: **false**<br><p>The shortcut key of the quick response. The value should be unique across the knowledge base.</p><br>
    ///   - [`is_active(bool)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::is_active) / [`set_is_active(Option<bool>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_is_active):<br>required: **false**<br><p>Whether the quick response is active.</p><br>
    ///   - [`channels(impl Into<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::channels) / [`set_channels(Option<Vec::<String>>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_channels):<br>required: **false**<br><p>The Amazon Connect channels this quick response applies to.</p><br>
    ///   - [`language(impl Into<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::language) / [`set_language(Option<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_language):<br>required: **false**<br><p>The language code value for the language in which the quick response is written. The supported language codes include <code>de_DE</code>, <code>en_US</code>, <code>es_ES</code>, <code>fr_FR</code>, <code>id_ID</code>, <code>it_IT</code>, <code>ja_JP</code>, <code>ko_KR</code>, <code>pt_BR</code>, <code>zh_CN</code>, <code>zh_TW</code></p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_client_token):<br>required: **false**<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>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource.</p><br>
    /// - On success, responds with [`CreateQuickResponseOutput`](crate::operation::create_quick_response::CreateQuickResponseOutput) with field(s):
    ///   - [`quick_response(Option<QuickResponseData>)`](crate::operation::create_quick_response::CreateQuickResponseOutput::quick_response): <p>The quick response.</p>
    /// - On failure, responds with [`SdkError<CreateQuickResponseError>`](crate::operation::create_quick_response::CreateQuickResponseError)
    pub fn create_quick_response(&self) -> crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder {
        crate::operation::create_quick_response::builders::CreateQuickResponseFluentBuilder::new(self.handle.clone())
    }
}