aws_sdk_devopsguru/operation/put_feedback/
_put_feedback_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct PutFeedbackInput {
6 pub insight_feedback: ::std::option::Option<crate::types::InsightFeedback>,
8}
9impl PutFeedbackInput {
10 pub fn insight_feedback(&self) -> ::std::option::Option<&crate::types::InsightFeedback> {
12 self.insight_feedback.as_ref()
13 }
14}
15impl PutFeedbackInput {
16 pub fn builder() -> crate::operation::put_feedback::builders::PutFeedbackInputBuilder {
18 crate::operation::put_feedback::builders::PutFeedbackInputBuilder::default()
19 }
20}
21
22#[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 pub fn insight_feedback(mut self, input: crate::types::InsightFeedback) -> Self {
31 self.insight_feedback = ::std::option::Option::Some(input);
32 self
33 }
34 pub fn set_insight_feedback(mut self, input: ::std::option::Option<crate::types::InsightFeedback>) -> Self {
36 self.insight_feedback = input;
37 self
38 }
39 pub fn get_insight_feedback(&self) -> &::std::option::Option<crate::types::InsightFeedback> {
41 &self.insight_feedback
42 }
43 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}