aws_sdk_glue/operation/get_registry/
_get_registry_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetRegistryOutput {
6 pub registry_name: ::std::option::Option<::std::string::String>,
8 pub registry_arn: ::std::option::Option<::std::string::String>,
10 pub description: ::std::option::Option<::std::string::String>,
12 pub status: ::std::option::Option<crate::types::RegistryStatus>,
14 pub created_time: ::std::option::Option<::std::string::String>,
16 pub updated_time: ::std::option::Option<::std::string::String>,
18 _request_id: Option<String>,
19}
20impl GetRegistryOutput {
21 pub fn registry_name(&self) -> ::std::option::Option<&str> {
23 self.registry_name.as_deref()
24 }
25 pub fn registry_arn(&self) -> ::std::option::Option<&str> {
27 self.registry_arn.as_deref()
28 }
29 pub fn description(&self) -> ::std::option::Option<&str> {
31 self.description.as_deref()
32 }
33 pub fn status(&self) -> ::std::option::Option<&crate::types::RegistryStatus> {
35 self.status.as_ref()
36 }
37 pub fn created_time(&self) -> ::std::option::Option<&str> {
39 self.created_time.as_deref()
40 }
41 pub fn updated_time(&self) -> ::std::option::Option<&str> {
43 self.updated_time.as_deref()
44 }
45}
46impl ::aws_types::request_id::RequestId for GetRegistryOutput {
47 fn request_id(&self) -> Option<&str> {
48 self._request_id.as_deref()
49 }
50}
51impl GetRegistryOutput {
52 pub fn builder() -> crate::operation::get_registry::builders::GetRegistryOutputBuilder {
54 crate::operation::get_registry::builders::GetRegistryOutputBuilder::default()
55 }
56}
57
58#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
60#[non_exhaustive]
61pub struct GetRegistryOutputBuilder {
62 pub(crate) registry_name: ::std::option::Option<::std::string::String>,
63 pub(crate) registry_arn: ::std::option::Option<::std::string::String>,
64 pub(crate) description: ::std::option::Option<::std::string::String>,
65 pub(crate) status: ::std::option::Option<crate::types::RegistryStatus>,
66 pub(crate) created_time: ::std::option::Option<::std::string::String>,
67 pub(crate) updated_time: ::std::option::Option<::std::string::String>,
68 _request_id: Option<String>,
69}
70impl GetRegistryOutputBuilder {
71 pub fn registry_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
73 self.registry_name = ::std::option::Option::Some(input.into());
74 self
75 }
76 pub fn set_registry_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78 self.registry_name = input;
79 self
80 }
81 pub fn get_registry_name(&self) -> &::std::option::Option<::std::string::String> {
83 &self.registry_name
84 }
85 pub fn registry_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
87 self.registry_arn = ::std::option::Option::Some(input.into());
88 self
89 }
90 pub fn set_registry_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92 self.registry_arn = input;
93 self
94 }
95 pub fn get_registry_arn(&self) -> &::std::option::Option<::std::string::String> {
97 &self.registry_arn
98 }
99 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
101 self.description = ::std::option::Option::Some(input.into());
102 self
103 }
104 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106 self.description = input;
107 self
108 }
109 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
111 &self.description
112 }
113 pub fn status(mut self, input: crate::types::RegistryStatus) -> Self {
115 self.status = ::std::option::Option::Some(input);
116 self
117 }
118 pub fn set_status(mut self, input: ::std::option::Option<crate::types::RegistryStatus>) -> Self {
120 self.status = input;
121 self
122 }
123 pub fn get_status(&self) -> &::std::option::Option<crate::types::RegistryStatus> {
125 &self.status
126 }
127 pub fn created_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129 self.created_time = ::std::option::Option::Some(input.into());
130 self
131 }
132 pub fn set_created_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
134 self.created_time = input;
135 self
136 }
137 pub fn get_created_time(&self) -> &::std::option::Option<::std::string::String> {
139 &self.created_time
140 }
141 pub fn updated_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
143 self.updated_time = ::std::option::Option::Some(input.into());
144 self
145 }
146 pub fn set_updated_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
148 self.updated_time = input;
149 self
150 }
151 pub fn get_updated_time(&self) -> &::std::option::Option<::std::string::String> {
153 &self.updated_time
154 }
155 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
156 self._request_id = Some(request_id.into());
157 self
158 }
159
160 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
161 self._request_id = request_id;
162 self
163 }
164 pub fn build(self) -> crate::operation::get_registry::GetRegistryOutput {
166 crate::operation::get_registry::GetRegistryOutput {
167 registry_name: self.registry_name,
168 registry_arn: self.registry_arn,
169 description: self.description,
170 status: self.status,
171 created_time: self.created_time,
172 updated_time: self.updated_time,
173 _request_id: self._request_id,
174 }
175 }
176}