aws-sdk-opensearch 1.138.0

AWS SDK for Amazon OpenSearch Service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`InsightFeedback`](crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`entity(InsightFeedbackEntity)`](crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder::entity) / [`set_entity(Option<InsightFeedbackEntity>)`](crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder::set_entity):<br>required: **true**<br><p>The entity for which to submit insight feedback. Specifies the type and value of the entity, such as a domain name.</p><br>
    ///   - [`insight_id(impl Into<String>)`](crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder::insight_id) / [`set_insight_id(Option<String>)`](crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder::set_insight_id):<br>required: **true**<br><p>The unique identifier of the insight for which to submit feedback.</p><br>
    ///   - [`thumbs(InsightFeedbackThumbs)`](crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder::thumbs) / [`set_thumbs(Option<InsightFeedbackThumbs>)`](crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder::set_thumbs):<br>required: **true**<br><p>The thumbs up or thumbs down feedback for the insight. Possible values are <code>Up</code> and <code>Down</code>.</p><br>
    ///   - [`feedback_text(impl Into<String>)`](crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder::feedback_text) / [`set_feedback_text(Option<String>)`](crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder::set_feedback_text):<br>required: **false**<br><p>Optional text feedback providing additional details about the insight. Maximum length is 1000 characters.</p><br>
    /// - On success, responds with [`InsightFeedbackOutput`](crate::operation::insight_feedback::InsightFeedbackOutput) with field(s):
    ///   - [`status(Option<InsightResponseStatus>)`](crate::operation::insight_feedback::InsightFeedbackOutput::status): <p>The status of the feedback submission. Possible values are <code>SUCCESS</code> and <code>ERROR</code>.</p>
    /// - On failure, responds with [`SdkError<InsightFeedbackError>`](crate::operation::insight_feedback::InsightFeedbackError)
    pub fn insight_feedback(&self) -> crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder {
        crate::operation::insight_feedback::builders::InsightFeedbackFluentBuilder::new(self.handle.clone())
    }
}