#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetQuickResponseOutput {
pub quick_response: ::std::option::Option<crate::types::QuickResponseData>,
_request_id: Option<String>,
}
impl GetQuickResponseOutput {
pub fn quick_response(&self) -> ::std::option::Option<&crate::types::QuickResponseData> {
self.quick_response.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetQuickResponseOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetQuickResponseOutput {
pub fn builder() -> crate::operation::get_quick_response::builders::GetQuickResponseOutputBuilder {
crate::operation::get_quick_response::builders::GetQuickResponseOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetQuickResponseOutputBuilder {
pub(crate) quick_response: ::std::option::Option<crate::types::QuickResponseData>,
_request_id: Option<String>,
}
impl GetQuickResponseOutputBuilder {
pub fn quick_response(mut self, input: crate::types::QuickResponseData) -> Self {
self.quick_response = ::std::option::Option::Some(input);
self
}
pub fn set_quick_response(mut self, input: ::std::option::Option<crate::types::QuickResponseData>) -> Self {
self.quick_response = input;
self
}
pub fn get_quick_response(&self) -> &::std::option::Option<crate::types::QuickResponseData> {
&self.quick_response
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_quick_response::GetQuickResponseOutput {
crate::operation::get_quick_response::GetQuickResponseOutput {
quick_response: self.quick_response,
_request_id: self._request_id,
}
}
}