aws-sdk-kafka 1.126.0

AWS SDK for Managed Streaming for Kafka
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeReplicatorInput {
    /// <p>The Amazon Resource Name (ARN) of the replicator to be described.</p>
    pub replicator_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeReplicatorInput {
    /// <p>The Amazon Resource Name (ARN) of the replicator to be described.</p>
    pub fn replicator_arn(&self) -> ::std::option::Option<&str> {
        self.replicator_arn.as_deref()
    }
}
impl DescribeReplicatorInput {
    /// Creates a new builder-style object to manufacture [`DescribeReplicatorInput`](crate::operation::describe_replicator::DescribeReplicatorInput).
    pub fn builder() -> crate::operation::describe_replicator::builders::DescribeReplicatorInputBuilder {
        crate::operation::describe_replicator::builders::DescribeReplicatorInputBuilder::default()
    }
}

/// A builder for [`DescribeReplicatorInput`](crate::operation::describe_replicator::DescribeReplicatorInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeReplicatorInputBuilder {
    pub(crate) replicator_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeReplicatorInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the replicator to be described.</p>
    /// This field is required.
    pub fn replicator_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.replicator_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the replicator to be described.</p>
    pub fn set_replicator_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.replicator_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the replicator to be described.</p>
    pub fn get_replicator_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.replicator_arn
    }
    /// Consumes the builder and constructs a [`DescribeReplicatorInput`](crate::operation::describe_replicator::DescribeReplicatorInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_replicator::DescribeReplicatorInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_replicator::DescribeReplicatorInput {
            replicator_arn: self.replicator_arn,
        })
    }
}