aws_sdk_sagemaker/operation/describe_hub_content/
_describe_hub_content_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeHubContentOutput {
6 pub hub_content_name: ::std::option::Option<::std::string::String>,
8 pub hub_content_arn: ::std::option::Option<::std::string::String>,
10 pub hub_content_version: ::std::option::Option<::std::string::String>,
12 pub hub_content_type: ::std::option::Option<crate::types::HubContentType>,
14 pub document_schema_version: ::std::option::Option<::std::string::String>,
16 pub hub_name: ::std::option::Option<::std::string::String>,
18 pub hub_arn: ::std::option::Option<::std::string::String>,
20 pub hub_content_display_name: ::std::option::Option<::std::string::String>,
22 pub hub_content_description: ::std::option::Option<::std::string::String>,
24 pub hub_content_markdown: ::std::option::Option<::std::string::String>,
26 pub hub_content_document: ::std::option::Option<::std::string::String>,
28 pub sage_maker_public_hub_content_arn: ::std::option::Option<::std::string::String>,
30 pub reference_min_version: ::std::option::Option<::std::string::String>,
32 pub support_status: ::std::option::Option<crate::types::HubContentSupportStatus>,
34 pub hub_content_search_keywords: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
36 pub hub_content_dependencies: ::std::option::Option<::std::vec::Vec<crate::types::HubContentDependency>>,
38 pub hub_content_status: ::std::option::Option<crate::types::HubContentStatus>,
40 pub failure_reason: ::std::option::Option<::std::string::String>,
42 pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
44 pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
46 _request_id: Option<String>,
47}
48impl DescribeHubContentOutput {
49 pub fn hub_content_name(&self) -> ::std::option::Option<&str> {
51 self.hub_content_name.as_deref()
52 }
53 pub fn hub_content_arn(&self) -> ::std::option::Option<&str> {
55 self.hub_content_arn.as_deref()
56 }
57 pub fn hub_content_version(&self) -> ::std::option::Option<&str> {
59 self.hub_content_version.as_deref()
60 }
61 pub fn hub_content_type(&self) -> ::std::option::Option<&crate::types::HubContentType> {
63 self.hub_content_type.as_ref()
64 }
65 pub fn document_schema_version(&self) -> ::std::option::Option<&str> {
67 self.document_schema_version.as_deref()
68 }
69 pub fn hub_name(&self) -> ::std::option::Option<&str> {
71 self.hub_name.as_deref()
72 }
73 pub fn hub_arn(&self) -> ::std::option::Option<&str> {
75 self.hub_arn.as_deref()
76 }
77 pub fn hub_content_display_name(&self) -> ::std::option::Option<&str> {
79 self.hub_content_display_name.as_deref()
80 }
81 pub fn hub_content_description(&self) -> ::std::option::Option<&str> {
83 self.hub_content_description.as_deref()
84 }
85 pub fn hub_content_markdown(&self) -> ::std::option::Option<&str> {
87 self.hub_content_markdown.as_deref()
88 }
89 pub fn hub_content_document(&self) -> ::std::option::Option<&str> {
91 self.hub_content_document.as_deref()
92 }
93 pub fn sage_maker_public_hub_content_arn(&self) -> ::std::option::Option<&str> {
95 self.sage_maker_public_hub_content_arn.as_deref()
96 }
97 pub fn reference_min_version(&self) -> ::std::option::Option<&str> {
99 self.reference_min_version.as_deref()
100 }
101 pub fn support_status(&self) -> ::std::option::Option<&crate::types::HubContentSupportStatus> {
103 self.support_status.as_ref()
104 }
105 pub fn hub_content_search_keywords(&self) -> &[::std::string::String] {
109 self.hub_content_search_keywords.as_deref().unwrap_or_default()
110 }
111 pub fn hub_content_dependencies(&self) -> &[crate::types::HubContentDependency] {
115 self.hub_content_dependencies.as_deref().unwrap_or_default()
116 }
117 pub fn hub_content_status(&self) -> ::std::option::Option<&crate::types::HubContentStatus> {
119 self.hub_content_status.as_ref()
120 }
121 pub fn failure_reason(&self) -> ::std::option::Option<&str> {
123 self.failure_reason.as_deref()
124 }
125 pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
127 self.creation_time.as_ref()
128 }
129 pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
131 self.last_modified_time.as_ref()
132 }
133}
134impl ::aws_types::request_id::RequestId for DescribeHubContentOutput {
135 fn request_id(&self) -> Option<&str> {
136 self._request_id.as_deref()
137 }
138}
139impl DescribeHubContentOutput {
140 pub fn builder() -> crate::operation::describe_hub_content::builders::DescribeHubContentOutputBuilder {
142 crate::operation::describe_hub_content::builders::DescribeHubContentOutputBuilder::default()
143 }
144}
145
146#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
148#[non_exhaustive]
149pub struct DescribeHubContentOutputBuilder {
150 pub(crate) hub_content_name: ::std::option::Option<::std::string::String>,
151 pub(crate) hub_content_arn: ::std::option::Option<::std::string::String>,
152 pub(crate) hub_content_version: ::std::option::Option<::std::string::String>,
153 pub(crate) hub_content_type: ::std::option::Option<crate::types::HubContentType>,
154 pub(crate) document_schema_version: ::std::option::Option<::std::string::String>,
155 pub(crate) hub_name: ::std::option::Option<::std::string::String>,
156 pub(crate) hub_arn: ::std::option::Option<::std::string::String>,
157 pub(crate) hub_content_display_name: ::std::option::Option<::std::string::String>,
158 pub(crate) hub_content_description: ::std::option::Option<::std::string::String>,
159 pub(crate) hub_content_markdown: ::std::option::Option<::std::string::String>,
160 pub(crate) hub_content_document: ::std::option::Option<::std::string::String>,
161 pub(crate) sage_maker_public_hub_content_arn: ::std::option::Option<::std::string::String>,
162 pub(crate) reference_min_version: ::std::option::Option<::std::string::String>,
163 pub(crate) support_status: ::std::option::Option<crate::types::HubContentSupportStatus>,
164 pub(crate) hub_content_search_keywords: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
165 pub(crate) hub_content_dependencies: ::std::option::Option<::std::vec::Vec<crate::types::HubContentDependency>>,
166 pub(crate) hub_content_status: ::std::option::Option<crate::types::HubContentStatus>,
167 pub(crate) failure_reason: ::std::option::Option<::std::string::String>,
168 pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
169 pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
170 _request_id: Option<String>,
171}
172impl DescribeHubContentOutputBuilder {
173 pub fn hub_content_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
176 self.hub_content_name = ::std::option::Option::Some(input.into());
177 self
178 }
179 pub fn set_hub_content_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
181 self.hub_content_name = input;
182 self
183 }
184 pub fn get_hub_content_name(&self) -> &::std::option::Option<::std::string::String> {
186 &self.hub_content_name
187 }
188 pub fn hub_content_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
191 self.hub_content_arn = ::std::option::Option::Some(input.into());
192 self
193 }
194 pub fn set_hub_content_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
196 self.hub_content_arn = input;
197 self
198 }
199 pub fn get_hub_content_arn(&self) -> &::std::option::Option<::std::string::String> {
201 &self.hub_content_arn
202 }
203 pub fn hub_content_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
206 self.hub_content_version = ::std::option::Option::Some(input.into());
207 self
208 }
209 pub fn set_hub_content_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
211 self.hub_content_version = input;
212 self
213 }
214 pub fn get_hub_content_version(&self) -> &::std::option::Option<::std::string::String> {
216 &self.hub_content_version
217 }
218 pub fn hub_content_type(mut self, input: crate::types::HubContentType) -> Self {
221 self.hub_content_type = ::std::option::Option::Some(input);
222 self
223 }
224 pub fn set_hub_content_type(mut self, input: ::std::option::Option<crate::types::HubContentType>) -> Self {
226 self.hub_content_type = input;
227 self
228 }
229 pub fn get_hub_content_type(&self) -> &::std::option::Option<crate::types::HubContentType> {
231 &self.hub_content_type
232 }
233 pub fn document_schema_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
236 self.document_schema_version = ::std::option::Option::Some(input.into());
237 self
238 }
239 pub fn set_document_schema_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
241 self.document_schema_version = input;
242 self
243 }
244 pub fn get_document_schema_version(&self) -> &::std::option::Option<::std::string::String> {
246 &self.document_schema_version
247 }
248 pub fn hub_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
251 self.hub_name = ::std::option::Option::Some(input.into());
252 self
253 }
254 pub fn set_hub_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
256 self.hub_name = input;
257 self
258 }
259 pub fn get_hub_name(&self) -> &::std::option::Option<::std::string::String> {
261 &self.hub_name
262 }
263 pub fn hub_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
266 self.hub_arn = ::std::option::Option::Some(input.into());
267 self
268 }
269 pub fn set_hub_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
271 self.hub_arn = input;
272 self
273 }
274 pub fn get_hub_arn(&self) -> &::std::option::Option<::std::string::String> {
276 &self.hub_arn
277 }
278 pub fn hub_content_display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
280 self.hub_content_display_name = ::std::option::Option::Some(input.into());
281 self
282 }
283 pub fn set_hub_content_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
285 self.hub_content_display_name = input;
286 self
287 }
288 pub fn get_hub_content_display_name(&self) -> &::std::option::Option<::std::string::String> {
290 &self.hub_content_display_name
291 }
292 pub fn hub_content_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
294 self.hub_content_description = ::std::option::Option::Some(input.into());
295 self
296 }
297 pub fn set_hub_content_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
299 self.hub_content_description = input;
300 self
301 }
302 pub fn get_hub_content_description(&self) -> &::std::option::Option<::std::string::String> {
304 &self.hub_content_description
305 }
306 pub fn hub_content_markdown(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
308 self.hub_content_markdown = ::std::option::Option::Some(input.into());
309 self
310 }
311 pub fn set_hub_content_markdown(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
313 self.hub_content_markdown = input;
314 self
315 }
316 pub fn get_hub_content_markdown(&self) -> &::std::option::Option<::std::string::String> {
318 &self.hub_content_markdown
319 }
320 pub fn hub_content_document(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
323 self.hub_content_document = ::std::option::Option::Some(input.into());
324 self
325 }
326 pub fn set_hub_content_document(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
328 self.hub_content_document = input;
329 self
330 }
331 pub fn get_hub_content_document(&self) -> &::std::option::Option<::std::string::String> {
333 &self.hub_content_document
334 }
335 pub fn sage_maker_public_hub_content_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
337 self.sage_maker_public_hub_content_arn = ::std::option::Option::Some(input.into());
338 self
339 }
340 pub fn set_sage_maker_public_hub_content_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
342 self.sage_maker_public_hub_content_arn = input;
343 self
344 }
345 pub fn get_sage_maker_public_hub_content_arn(&self) -> &::std::option::Option<::std::string::String> {
347 &self.sage_maker_public_hub_content_arn
348 }
349 pub fn reference_min_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
351 self.reference_min_version = ::std::option::Option::Some(input.into());
352 self
353 }
354 pub fn set_reference_min_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
356 self.reference_min_version = input;
357 self
358 }
359 pub fn get_reference_min_version(&self) -> &::std::option::Option<::std::string::String> {
361 &self.reference_min_version
362 }
363 pub fn support_status(mut self, input: crate::types::HubContentSupportStatus) -> Self {
365 self.support_status = ::std::option::Option::Some(input);
366 self
367 }
368 pub fn set_support_status(mut self, input: ::std::option::Option<crate::types::HubContentSupportStatus>) -> Self {
370 self.support_status = input;
371 self
372 }
373 pub fn get_support_status(&self) -> &::std::option::Option<crate::types::HubContentSupportStatus> {
375 &self.support_status
376 }
377 pub fn hub_content_search_keywords(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
383 let mut v = self.hub_content_search_keywords.unwrap_or_default();
384 v.push(input.into());
385 self.hub_content_search_keywords = ::std::option::Option::Some(v);
386 self
387 }
388 pub fn set_hub_content_search_keywords(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
390 self.hub_content_search_keywords = input;
391 self
392 }
393 pub fn get_hub_content_search_keywords(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
395 &self.hub_content_search_keywords
396 }
397 pub fn hub_content_dependencies(mut self, input: crate::types::HubContentDependency) -> Self {
403 let mut v = self.hub_content_dependencies.unwrap_or_default();
404 v.push(input);
405 self.hub_content_dependencies = ::std::option::Option::Some(v);
406 self
407 }
408 pub fn set_hub_content_dependencies(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::HubContentDependency>>) -> Self {
410 self.hub_content_dependencies = input;
411 self
412 }
413 pub fn get_hub_content_dependencies(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::HubContentDependency>> {
415 &self.hub_content_dependencies
416 }
417 pub fn hub_content_status(mut self, input: crate::types::HubContentStatus) -> Self {
420 self.hub_content_status = ::std::option::Option::Some(input);
421 self
422 }
423 pub fn set_hub_content_status(mut self, input: ::std::option::Option<crate::types::HubContentStatus>) -> Self {
425 self.hub_content_status = input;
426 self
427 }
428 pub fn get_hub_content_status(&self) -> &::std::option::Option<crate::types::HubContentStatus> {
430 &self.hub_content_status
431 }
432 pub fn failure_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
434 self.failure_reason = ::std::option::Option::Some(input.into());
435 self
436 }
437 pub fn set_failure_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
439 self.failure_reason = input;
440 self
441 }
442 pub fn get_failure_reason(&self) -> &::std::option::Option<::std::string::String> {
444 &self.failure_reason
445 }
446 pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
449 self.creation_time = ::std::option::Option::Some(input);
450 self
451 }
452 pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
454 self.creation_time = input;
455 self
456 }
457 pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
459 &self.creation_time
460 }
461 pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
463 self.last_modified_time = ::std::option::Option::Some(input);
464 self
465 }
466 pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
468 self.last_modified_time = input;
469 self
470 }
471 pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
473 &self.last_modified_time
474 }
475 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
476 self._request_id = Some(request_id.into());
477 self
478 }
479
480 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
481 self._request_id = request_id;
482 self
483 }
484 pub fn build(self) -> crate::operation::describe_hub_content::DescribeHubContentOutput {
486 crate::operation::describe_hub_content::DescribeHubContentOutput {
487 hub_content_name: self.hub_content_name,
488 hub_content_arn: self.hub_content_arn,
489 hub_content_version: self.hub_content_version,
490 hub_content_type: self.hub_content_type,
491 document_schema_version: self.document_schema_version,
492 hub_name: self.hub_name,
493 hub_arn: self.hub_arn,
494 hub_content_display_name: self.hub_content_display_name,
495 hub_content_description: self.hub_content_description,
496 hub_content_markdown: self.hub_content_markdown,
497 hub_content_document: self.hub_content_document,
498 sage_maker_public_hub_content_arn: self.sage_maker_public_hub_content_arn,
499 reference_min_version: self.reference_min_version,
500 support_status: self.support_status,
501 hub_content_search_keywords: self.hub_content_search_keywords,
502 hub_content_dependencies: self.hub_content_dependencies,
503 hub_content_status: self.hub_content_status,
504 failure_reason: self.failure_reason,
505 creation_time: self.creation_time,
506 last_modified_time: self.last_modified_time,
507 _request_id: self._request_id,
508 }
509 }
510}