aws_sdk_cloudwatchlogs/operation/get_delivery/
_get_delivery_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDeliveryOutput {
pub delivery: ::std::option::Option<crate::types::Delivery>,
_request_id: Option<String>,
}
impl GetDeliveryOutput {
pub fn delivery(&self) -> ::std::option::Option<&crate::types::Delivery> {
self.delivery.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetDeliveryOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetDeliveryOutput {
pub fn builder() -> crate::operation::get_delivery::builders::GetDeliveryOutputBuilder {
crate::operation::get_delivery::builders::GetDeliveryOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDeliveryOutputBuilder {
pub(crate) delivery: ::std::option::Option<crate::types::Delivery>,
_request_id: Option<String>,
}
impl GetDeliveryOutputBuilder {
pub fn delivery(mut self, input: crate::types::Delivery) -> Self {
self.delivery = ::std::option::Option::Some(input);
self
}
pub fn set_delivery(mut self, input: ::std::option::Option<crate::types::Delivery>) -> Self {
self.delivery = input;
self
}
pub fn get_delivery(&self) -> &::std::option::Option<crate::types::Delivery> {
&self.delivery
}
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::GetDeliveryOutput {
crate::operation::get_delivery::GetDeliveryOutput {
delivery: self.delivery,
_request_id: self._request_id,
}
}
}