#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct PutFeedbackInput {
pub insight_feedback: ::std::option::Option<crate::types::InsightFeedback>,
}
impl PutFeedbackInput {
pub fn insight_feedback(&self) -> ::std::option::Option<&crate::types::InsightFeedback> {
self.insight_feedback.as_ref()
}
}
impl PutFeedbackInput {
pub fn builder() -> crate::operation::put_feedback::builders::PutFeedbackInputBuilder {
crate::operation::put_feedback::builders::PutFeedbackInputBuilder::default()
}
}
#[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 {
pub fn insight_feedback(mut self, input: crate::types::InsightFeedback) -> Self {
self.insight_feedback = ::std::option::Option::Some(input);
self
}
pub fn set_insight_feedback(mut self, input: ::std::option::Option<crate::types::InsightFeedback>) -> Self {
self.insight_feedback = input;
self
}
pub fn get_insight_feedback(&self) -> &::std::option::Option<crate::types::InsightFeedback> {
&self.insight_feedback
}
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,
})
}
}