#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateChannelInput {
pub channel_arn: ::std::option::Option<::std::string::String>,
pub cluster_arn: ::std::option::Option<::std::string::String>,
pub iceberg_destination_update: ::std::option::Option<crate::types::IcebergDestinationUpdate>,
pub s3_destination_update: ::std::option::Option<crate::types::S3DestinationUpdate>,
}
impl UpdateChannelInput {
pub fn channel_arn(&self) -> ::std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn cluster_arn(&self) -> ::std::option::Option<&str> {
self.cluster_arn.as_deref()
}
pub fn iceberg_destination_update(&self) -> ::std::option::Option<&crate::types::IcebergDestinationUpdate> {
self.iceberg_destination_update.as_ref()
}
pub fn s3_destination_update(&self) -> ::std::option::Option<&crate::types::S3DestinationUpdate> {
self.s3_destination_update.as_ref()
}
}
impl UpdateChannelInput {
pub fn builder() -> crate::operation::update_channel::builders::UpdateChannelInputBuilder {
crate::operation::update_channel::builders::UpdateChannelInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateChannelInputBuilder {
pub(crate) channel_arn: ::std::option::Option<::std::string::String>,
pub(crate) cluster_arn: ::std::option::Option<::std::string::String>,
pub(crate) iceberg_destination_update: ::std::option::Option<crate::types::IcebergDestinationUpdate>,
pub(crate) s3_destination_update: ::std::option::Option<crate::types::S3DestinationUpdate>,
}
impl UpdateChannelInputBuilder {
pub fn channel_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.channel_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn get_channel_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.channel_arn
}
pub fn cluster_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_arn = input;
self
}
pub fn get_cluster_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_arn
}
pub fn iceberg_destination_update(mut self, input: crate::types::IcebergDestinationUpdate) -> Self {
self.iceberg_destination_update = ::std::option::Option::Some(input);
self
}
pub fn set_iceberg_destination_update(mut self, input: ::std::option::Option<crate::types::IcebergDestinationUpdate>) -> Self {
self.iceberg_destination_update = input;
self
}
pub fn get_iceberg_destination_update(&self) -> &::std::option::Option<crate::types::IcebergDestinationUpdate> {
&self.iceberg_destination_update
}
pub fn s3_destination_update(mut self, input: crate::types::S3DestinationUpdate) -> Self {
self.s3_destination_update = ::std::option::Option::Some(input);
self
}
pub fn set_s3_destination_update(mut self, input: ::std::option::Option<crate::types::S3DestinationUpdate>) -> Self {
self.s3_destination_update = input;
self
}
pub fn get_s3_destination_update(&self) -> &::std::option::Option<crate::types::S3DestinationUpdate> {
&self.s3_destination_update
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_channel::UpdateChannelInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_channel::UpdateChannelInput {
channel_arn: self.channel_arn,
cluster_arn: self.cluster_arn,
iceberg_destination_update: self.iceberg_destination_update,
s3_destination_update: self.s3_destination_update,
})
}
}