aws_sdk_devopsguru/operation/put_feedback/
_put_feedback_input.rs

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