aws-sdk-agentregistrycontrol 1.0.0

AWS SDK for Agent Registry Control
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Request structure for getting a registry</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetRegistryInput {
    /// <p>The identifier of the registry to retrieve (ARN or ID)</p>
    pub registry_id: ::std::option::Option<::std::string::String>,
}
impl GetRegistryInput {
    /// <p>The identifier of the registry to retrieve (ARN or ID)</p>
    pub fn registry_id(&self) -> ::std::option::Option<&str> {
        self.registry_id.as_deref()
    }
}
impl GetRegistryInput {
    /// Creates a new builder-style object to manufacture [`GetRegistryInput`](crate::operation::get_registry::GetRegistryInput).
    pub fn builder() -> crate::operation::get_registry::builders::GetRegistryInputBuilder {
        crate::operation::get_registry::builders::GetRegistryInputBuilder::default()
    }
}

/// A builder for [`GetRegistryInput`](crate::operation::get_registry::GetRegistryInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetRegistryInputBuilder {
    pub(crate) registry_id: ::std::option::Option<::std::string::String>,
}
impl GetRegistryInputBuilder {
    /// <p>The identifier of the registry to retrieve (ARN or ID)</p>
    /// This field is required.
    pub fn registry_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.registry_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the registry to retrieve (ARN or ID)</p>
    pub fn set_registry_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.registry_id = input;
        self
    }
    /// <p>The identifier of the registry to retrieve (ARN or ID)</p>
    pub fn get_registry_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.registry_id
    }
    /// Consumes the builder and constructs a [`GetRegistryInput`](crate::operation::get_registry::GetRegistryInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_registry::GetRegistryInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_registry::GetRegistryInput {
            registry_id: self.registry_id,
        })
    }
}