aws_sdk_cloudwatchlogs/operation/get_delivery/
_get_delivery_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDeliveryInput {
pub id: ::std::option::Option<::std::string::String>,
}
impl GetDeliveryInput {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
}
impl GetDeliveryInput {
pub fn builder() -> crate::operation::get_delivery::builders::GetDeliveryInputBuilder {
crate::operation::get_delivery::builders::GetDeliveryInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDeliveryInputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
}
impl GetDeliveryInputBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_delivery::GetDeliveryInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_delivery::GetDeliveryInput { id: self.id })
}
}