#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct EnableKinesisStreamingDestinationInput {
pub table_name: ::std::option::Option<::std::string::String>,
pub stream_arn: ::std::option::Option<::std::string::String>,
pub enable_kinesis_streaming_configuration: ::std::option::Option<crate::types::EnableKinesisStreamingConfiguration>,
}
impl EnableKinesisStreamingDestinationInput {
pub fn table_name(&self) -> ::std::option::Option<&str> {
self.table_name.as_deref()
}
pub fn stream_arn(&self) -> ::std::option::Option<&str> {
self.stream_arn.as_deref()
}
pub fn enable_kinesis_streaming_configuration(&self) -> ::std::option::Option<&crate::types::EnableKinesisStreamingConfiguration> {
self.enable_kinesis_streaming_configuration.as_ref()
}
}
impl EnableKinesisStreamingDestinationInput {
pub fn builder() -> crate::operation::enable_kinesis_streaming_destination::builders::EnableKinesisStreamingDestinationInputBuilder {
crate::operation::enable_kinesis_streaming_destination::builders::EnableKinesisStreamingDestinationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct EnableKinesisStreamingDestinationInputBuilder {
pub(crate) table_name: ::std::option::Option<::std::string::String>,
pub(crate) stream_arn: ::std::option::Option<::std::string::String>,
pub(crate) enable_kinesis_streaming_configuration: ::std::option::Option<crate::types::EnableKinesisStreamingConfiguration>,
}
impl EnableKinesisStreamingDestinationInputBuilder {
pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.table_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.table_name = input;
self
}
pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
&self.table_name
}
pub fn stream_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stream_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_stream_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stream_arn = input;
self
}
pub fn get_stream_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.stream_arn
}
pub fn enable_kinesis_streaming_configuration(mut self, input: crate::types::EnableKinesisStreamingConfiguration) -> Self {
self.enable_kinesis_streaming_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_enable_kinesis_streaming_configuration(
mut self,
input: ::std::option::Option<crate::types::EnableKinesisStreamingConfiguration>,
) -> Self {
self.enable_kinesis_streaming_configuration = input;
self
}
pub fn get_enable_kinesis_streaming_configuration(&self) -> &::std::option::Option<crate::types::EnableKinesisStreamingConfiguration> {
&self.enable_kinesis_streaming_configuration
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::enable_kinesis_streaming_destination::EnableKinesisStreamingDestinationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(
crate::operation::enable_kinesis_streaming_destination::EnableKinesisStreamingDestinationInput {
table_name: self.table_name,
stream_arn: self.stream_arn,
enable_kinesis_streaming_configuration: self.enable_kinesis_streaming_configuration,
},
)
}
}