1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct PutFeedbackInput {
    /// <p>The feedback from customers is about the recommendations in this insight.</p>
    pub insight_feedback: ::std::option::Option<crate::types::InsightFeedback>,
}
impl PutFeedbackInput {
    /// <p>The feedback from customers is about the recommendations in this insight.</p>
    pub fn insight_feedback(&self) -> ::std::option::Option<&crate::types::InsightFeedback> {
        self.insight_feedback.as_ref()
    }
}
impl PutFeedbackInput {
    /// Creates a new builder-style object to manufacture [`PutFeedbackInput`](crate::operation::put_feedback::PutFeedbackInput).
    pub fn builder() -> crate::operation::put_feedback::builders::PutFeedbackInputBuilder {
        crate::operation::put_feedback::builders::PutFeedbackInputBuilder::default()
    }
}

/// A builder for [`PutFeedbackInput`](crate::operation::put_feedback::PutFeedbackInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct PutFeedbackInputBuilder {
    pub(crate) insight_feedback: ::std::option::Option<crate::types::InsightFeedback>,
}
impl PutFeedbackInputBuilder {
    /// <p>The feedback from customers is about the recommendations in this insight.</p>
    pub fn insight_feedback(mut self, input: crate::types::InsightFeedback) -> Self {
        self.insight_feedback = ::std::option::Option::Some(input);
        self
    }
    /// <p>The feedback from customers is about the recommendations in this insight.</p>
    pub fn set_insight_feedback(mut self, input: ::std::option::Option<crate::types::InsightFeedback>) -> Self {
        self.insight_feedback = input;
        self
    }
    /// <p>The feedback from customers is about the recommendations in this insight.</p>
    pub fn get_insight_feedback(&self) -> &::std::option::Option<crate::types::InsightFeedback> {
        &self.insight_feedback
    }
    /// Consumes the builder and constructs a [`PutFeedbackInput`](crate::operation::put_feedback::PutFeedbackInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::put_feedback::PutFeedbackInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::put_feedback::PutFeedbackInput {
            insight_feedback: self.insight_feedback,
        })
    }
}