#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeDeliveryStreamInput {
pub delivery_stream_name: ::std::option::Option<::std::string::String>,
pub limit: ::std::option::Option<i32>,
pub exclusive_start_destination_id: ::std::option::Option<::std::string::String>,
}
impl DescribeDeliveryStreamInput {
pub fn delivery_stream_name(&self) -> ::std::option::Option<&str> {
self.delivery_stream_name.as_deref()
}
pub fn limit(&self) -> ::std::option::Option<i32> {
self.limit
}
pub fn exclusive_start_destination_id(&self) -> ::std::option::Option<&str> {
self.exclusive_start_destination_id.as_deref()
}
}
impl DescribeDeliveryStreamInput {
pub fn builder() -> crate::operation::describe_delivery_stream::builders::DescribeDeliveryStreamInputBuilder {
crate::operation::describe_delivery_stream::builders::DescribeDeliveryStreamInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeDeliveryStreamInputBuilder {
pub(crate) delivery_stream_name: ::std::option::Option<::std::string::String>,
pub(crate) limit: ::std::option::Option<i32>,
pub(crate) exclusive_start_destination_id: ::std::option::Option<::std::string::String>,
}
impl DescribeDeliveryStreamInputBuilder {
pub fn delivery_stream_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.delivery_stream_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_delivery_stream_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.delivery_stream_name = input;
self
}
pub fn get_delivery_stream_name(&self) -> &::std::option::Option<::std::string::String> {
&self.delivery_stream_name
}
pub fn limit(mut self, input: i32) -> Self {
self.limit = ::std::option::Option::Some(input);
self
}
pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
self.limit = input;
self
}
pub fn get_limit(&self) -> &::std::option::Option<i32> {
&self.limit
}
pub fn exclusive_start_destination_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.exclusive_start_destination_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_exclusive_start_destination_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.exclusive_start_destination_id = input;
self
}
pub fn get_exclusive_start_destination_id(&self) -> &::std::option::Option<::std::string::String> {
&self.exclusive_start_destination_id
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::describe_delivery_stream::DescribeDeliveryStreamInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::describe_delivery_stream::DescribeDeliveryStreamInput {
delivery_stream_name: self.delivery_stream_name,
limit: self.limit,
exclusive_start_destination_id: self.exclusive_start_destination_id,
})
}
}