aws_sdk_glue/operation/get_registry/
_get_registry_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetRegistryInput {
6 pub registry_id: ::std::option::Option<crate::types::RegistryId>,
8}
9impl GetRegistryInput {
10 pub fn registry_id(&self) -> ::std::option::Option<&crate::types::RegistryId> {
12 self.registry_id.as_ref()
13 }
14}
15impl GetRegistryInput {
16 pub fn builder() -> crate::operation::get_registry::builders::GetRegistryInputBuilder {
18 crate::operation::get_registry::builders::GetRegistryInputBuilder::default()
19 }
20}
21
22#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct GetRegistryInputBuilder {
26 pub(crate) registry_id: ::std::option::Option<crate::types::RegistryId>,
27}
28impl GetRegistryInputBuilder {
29 pub fn registry_id(mut self, input: crate::types::RegistryId) -> Self {
32 self.registry_id = ::std::option::Option::Some(input);
33 self
34 }
35 pub fn set_registry_id(mut self, input: ::std::option::Option<crate::types::RegistryId>) -> Self {
37 self.registry_id = input;
38 self
39 }
40 pub fn get_registry_id(&self) -> &::std::option::Option<crate::types::RegistryId> {
42 &self.registry_id
43 }
44 pub fn build(self) -> ::std::result::Result<crate::operation::get_registry::GetRegistryInput, ::aws_smithy_types::error::operation::BuildError> {
46 ::std::result::Result::Ok(crate::operation::get_registry::GetRegistryInput {
47 registry_id: self.registry_id,
48 })
49 }
50}