#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeNamespaceInput {
#[doc(hidden)]
pub aws_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub namespace: std::option::Option<std::string::String>,
}
impl DescribeNamespaceInput {
pub fn aws_account_id(&self) -> std::option::Option<&str> {
self.aws_account_id.as_deref()
}
pub fn namespace(&self) -> std::option::Option<&str> {
self.namespace.as_deref()
}
}
impl DescribeNamespaceInput {
pub fn builder() -> crate::operation::describe_namespace::builders::DescribeNamespaceInputBuilder
{
crate::operation::describe_namespace::builders::DescribeNamespaceInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeNamespaceInputBuilder {
pub(crate) aws_account_id: std::option::Option<std::string::String>,
pub(crate) namespace: std::option::Option<std::string::String>,
}
impl DescribeNamespaceInputBuilder {
pub fn aws_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.aws_account_id = Some(input.into());
self
}
pub fn set_aws_account_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.aws_account_id = input;
self
}
pub fn namespace(mut self, input: impl Into<std::string::String>) -> Self {
self.namespace = Some(input.into());
self
}
pub fn set_namespace(mut self, input: std::option::Option<std::string::String>) -> Self {
self.namespace = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::describe_namespace::DescribeNamespaceInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::describe_namespace::DescribeNamespaceInput {
aws_account_id: self.aws_account_id,
namespace: self.namespace,
},
)
}
}