#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDeliverySourceOutput {
pub delivery_source: ::std::option::Option<crate::types::DeliverySource>,
_request_id: Option<String>,
}
impl GetDeliverySourceOutput {
pub fn delivery_source(&self) -> ::std::option::Option<&crate::types::DeliverySource> {
self.delivery_source.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetDeliverySourceOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetDeliverySourceOutput {
pub fn builder() -> crate::operation::get_delivery_source::builders::GetDeliverySourceOutputBuilder {
crate::operation::get_delivery_source::builders::GetDeliverySourceOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDeliverySourceOutputBuilder {
pub(crate) delivery_source: ::std::option::Option<crate::types::DeliverySource>,
_request_id: Option<String>,
}
impl GetDeliverySourceOutputBuilder {
pub fn delivery_source(mut self, input: crate::types::DeliverySource) -> Self {
self.delivery_source = ::std::option::Option::Some(input);
self
}
pub fn set_delivery_source(mut self, input: ::std::option::Option<crate::types::DeliverySource>) -> Self {
self.delivery_source = input;
self
}
pub fn get_delivery_source(&self) -> &::std::option::Option<crate::types::DeliverySource> {
&self.delivery_source
}
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_delivery_source::GetDeliverySourceOutput {
crate::operation::get_delivery_source::GetDeliverySourceOutput {
delivery_source: self.delivery_source,
_request_id: self._request_id,
}
}
}