#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetPushTemplateOutput {
pub push_notification_template_response: ::std::option::Option<crate::types::PushNotificationTemplateResponse>,
_request_id: Option<String>,
}
impl GetPushTemplateOutput {
pub fn push_notification_template_response(&self) -> ::std::option::Option<&crate::types::PushNotificationTemplateResponse> {
self.push_notification_template_response.as_ref()
}
}
impl ::aws_http::request_id::RequestId for GetPushTemplateOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetPushTemplateOutput {
pub fn builder() -> crate::operation::get_push_template::builders::GetPushTemplateOutputBuilder {
crate::operation::get_push_template::builders::GetPushTemplateOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetPushTemplateOutputBuilder {
pub(crate) push_notification_template_response: ::std::option::Option<crate::types::PushNotificationTemplateResponse>,
_request_id: Option<String>,
}
impl GetPushTemplateOutputBuilder {
pub fn push_notification_template_response(mut self, input: crate::types::PushNotificationTemplateResponse) -> Self {
self.push_notification_template_response = ::std::option::Option::Some(input);
self
}
pub fn set_push_notification_template_response(mut self, input: ::std::option::Option<crate::types::PushNotificationTemplateResponse>) -> Self {
self.push_notification_template_response = input;
self
}
pub fn get_push_notification_template_response(&self) -> &::std::option::Option<crate::types::PushNotificationTemplateResponse> {
&self.push_notification_template_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_push_template::GetPushTemplateOutput {
crate::operation::get_push_template::GetPushTemplateOutput {
push_notification_template_response: self.push_notification_template_response,
_request_id: self._request_id,
}
}
}