Skip to main content

aws_sdk_sagemaker/types/
_human_task_ui_summary.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Container for human task user interface information.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct HumanTaskUiSummary {
7    /// <p>The name of the human task user interface.</p>
8    pub human_task_ui_name: ::std::option::Option<::std::string::String>,
9    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
10    pub human_task_ui_arn: ::std::option::Option<::std::string::String>,
11    /// <p>A timestamp when SageMaker created the human task user interface.</p>
12    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
13}
14impl HumanTaskUiSummary {
15    /// <p>The name of the human task user interface.</p>
16    pub fn human_task_ui_name(&self) -> ::std::option::Option<&str> {
17        self.human_task_ui_name.as_deref()
18    }
19    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
20    pub fn human_task_ui_arn(&self) -> ::std::option::Option<&str> {
21        self.human_task_ui_arn.as_deref()
22    }
23    /// <p>A timestamp when SageMaker created the human task user interface.</p>
24    pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
25        self.creation_time.as_ref()
26    }
27}
28impl HumanTaskUiSummary {
29    /// Creates a new builder-style object to manufacture [`HumanTaskUiSummary`](crate::types::HumanTaskUiSummary).
30    pub fn builder() -> crate::types::builders::HumanTaskUiSummaryBuilder {
31        crate::types::builders::HumanTaskUiSummaryBuilder::default()
32    }
33}
34
35/// A builder for [`HumanTaskUiSummary`](crate::types::HumanTaskUiSummary).
36#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct HumanTaskUiSummaryBuilder {
39    pub(crate) human_task_ui_name: ::std::option::Option<::std::string::String>,
40    pub(crate) human_task_ui_arn: ::std::option::Option<::std::string::String>,
41    pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
42}
43impl HumanTaskUiSummaryBuilder {
44    /// <p>The name of the human task user interface.</p>
45    /// This field is required.
46    pub fn human_task_ui_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
47        self.human_task_ui_name = ::std::option::Option::Some(input.into());
48        self
49    }
50    /// <p>The name of the human task user interface.</p>
51    pub fn set_human_task_ui_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
52        self.human_task_ui_name = input;
53        self
54    }
55    /// <p>The name of the human task user interface.</p>
56    pub fn get_human_task_ui_name(&self) -> &::std::option::Option<::std::string::String> {
57        &self.human_task_ui_name
58    }
59    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
60    /// This field is required.
61    pub fn human_task_ui_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
62        self.human_task_ui_arn = ::std::option::Option::Some(input.into());
63        self
64    }
65    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
66    pub fn set_human_task_ui_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
67        self.human_task_ui_arn = input;
68        self
69    }
70    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
71    pub fn get_human_task_ui_arn(&self) -> &::std::option::Option<::std::string::String> {
72        &self.human_task_ui_arn
73    }
74    /// <p>A timestamp when SageMaker created the human task user interface.</p>
75    /// This field is required.
76    pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
77        self.creation_time = ::std::option::Option::Some(input);
78        self
79    }
80    /// <p>A timestamp when SageMaker created the human task user interface.</p>
81    pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
82        self.creation_time = input;
83        self
84    }
85    /// <p>A timestamp when SageMaker created the human task user interface.</p>
86    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
87        &self.creation_time
88    }
89    /// Consumes the builder and constructs a [`HumanTaskUiSummary`](crate::types::HumanTaskUiSummary).
90    pub fn build(self) -> crate::types::HumanTaskUiSummary {
91        crate::types::HumanTaskUiSummary {
92            human_task_ui_name: self.human_task_ui_name,
93            human_task_ui_arn: self.human_task_ui_arn,
94            creation_time: self.creation_time,
95        }
96    }
97}