Skip to main content

aws_sdk_lexmodelsv2/types/
_test_execution_summary.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Summarizes metadata about the test execution.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct TestExecutionSummary {
7    /// <p>The unique identifier of the test execution.</p>
8    pub test_execution_id: ::std::option::Option<::std::string::String>,
9    /// <p>The date and time at which the test execution was created.</p>
10    pub creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
11    /// <p>The date and time at which the test execution was last updated.</p>
12    pub last_updated_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
13    /// <p>The current status of the test execution.</p>
14    pub test_execution_status: ::std::option::Option<crate::types::TestExecutionStatus>,
15    /// <p>The unique identifier of the test set used in the test execution.</p>
16    pub test_set_id: ::std::option::Option<::std::string::String>,
17    /// <p>The name of the test set used in the test execution.</p>
18    pub test_set_name: ::std::option::Option<::std::string::String>,
19    /// <p>Contains information about the bot used for the test execution..</p>
20    pub target: ::std::option::Option<crate::types::TestExecutionTarget>,
21    /// <p>Specifies whether the API mode for the test execution is streaming or non-streaming.</p>
22    pub api_mode: ::std::option::Option<crate::types::TestExecutionApiMode>,
23    /// <p>Specifies whether the data used for the test execution is written or spoken.</p>
24    pub test_execution_modality: ::std::option::Option<crate::types::TestExecutionModality>,
25}
26impl TestExecutionSummary {
27    /// <p>The unique identifier of the test execution.</p>
28    pub fn test_execution_id(&self) -> ::std::option::Option<&str> {
29        self.test_execution_id.as_deref()
30    }
31    /// <p>The date and time at which the test execution was created.</p>
32    pub fn creation_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
33        self.creation_date_time.as_ref()
34    }
35    /// <p>The date and time at which the test execution was last updated.</p>
36    pub fn last_updated_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
37        self.last_updated_date_time.as_ref()
38    }
39    /// <p>The current status of the test execution.</p>
40    pub fn test_execution_status(&self) -> ::std::option::Option<&crate::types::TestExecutionStatus> {
41        self.test_execution_status.as_ref()
42    }
43    /// <p>The unique identifier of the test set used in the test execution.</p>
44    pub fn test_set_id(&self) -> ::std::option::Option<&str> {
45        self.test_set_id.as_deref()
46    }
47    /// <p>The name of the test set used in the test execution.</p>
48    pub fn test_set_name(&self) -> ::std::option::Option<&str> {
49        self.test_set_name.as_deref()
50    }
51    /// <p>Contains information about the bot used for the test execution..</p>
52    pub fn target(&self) -> ::std::option::Option<&crate::types::TestExecutionTarget> {
53        self.target.as_ref()
54    }
55    /// <p>Specifies whether the API mode for the test execution is streaming or non-streaming.</p>
56    pub fn api_mode(&self) -> ::std::option::Option<&crate::types::TestExecutionApiMode> {
57        self.api_mode.as_ref()
58    }
59    /// <p>Specifies whether the data used for the test execution is written or spoken.</p>
60    pub fn test_execution_modality(&self) -> ::std::option::Option<&crate::types::TestExecutionModality> {
61        self.test_execution_modality.as_ref()
62    }
63}
64impl TestExecutionSummary {
65    /// Creates a new builder-style object to manufacture [`TestExecutionSummary`](crate::types::TestExecutionSummary).
66    pub fn builder() -> crate::types::builders::TestExecutionSummaryBuilder {
67        crate::types::builders::TestExecutionSummaryBuilder::default()
68    }
69}
70
71/// A builder for [`TestExecutionSummary`](crate::types::TestExecutionSummary).
72#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
73#[non_exhaustive]
74pub struct TestExecutionSummaryBuilder {
75    pub(crate) test_execution_id: ::std::option::Option<::std::string::String>,
76    pub(crate) creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
77    pub(crate) last_updated_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
78    pub(crate) test_execution_status: ::std::option::Option<crate::types::TestExecutionStatus>,
79    pub(crate) test_set_id: ::std::option::Option<::std::string::String>,
80    pub(crate) test_set_name: ::std::option::Option<::std::string::String>,
81    pub(crate) target: ::std::option::Option<crate::types::TestExecutionTarget>,
82    pub(crate) api_mode: ::std::option::Option<crate::types::TestExecutionApiMode>,
83    pub(crate) test_execution_modality: ::std::option::Option<crate::types::TestExecutionModality>,
84}
85impl TestExecutionSummaryBuilder {
86    /// <p>The unique identifier of the test execution.</p>
87    pub fn test_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
88        self.test_execution_id = ::std::option::Option::Some(input.into());
89        self
90    }
91    /// <p>The unique identifier of the test execution.</p>
92    pub fn set_test_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
93        self.test_execution_id = input;
94        self
95    }
96    /// <p>The unique identifier of the test execution.</p>
97    pub fn get_test_execution_id(&self) -> &::std::option::Option<::std::string::String> {
98        &self.test_execution_id
99    }
100    /// <p>The date and time at which the test execution was created.</p>
101    pub fn creation_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
102        self.creation_date_time = ::std::option::Option::Some(input);
103        self
104    }
105    /// <p>The date and time at which the test execution was created.</p>
106    pub fn set_creation_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
107        self.creation_date_time = input;
108        self
109    }
110    /// <p>The date and time at which the test execution was created.</p>
111    pub fn get_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
112        &self.creation_date_time
113    }
114    /// <p>The date and time at which the test execution was last updated.</p>
115    pub fn last_updated_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
116        self.last_updated_date_time = ::std::option::Option::Some(input);
117        self
118    }
119    /// <p>The date and time at which the test execution was last updated.</p>
120    pub fn set_last_updated_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
121        self.last_updated_date_time = input;
122        self
123    }
124    /// <p>The date and time at which the test execution was last updated.</p>
125    pub fn get_last_updated_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
126        &self.last_updated_date_time
127    }
128    /// <p>The current status of the test execution.</p>
129    pub fn test_execution_status(mut self, input: crate::types::TestExecutionStatus) -> Self {
130        self.test_execution_status = ::std::option::Option::Some(input);
131        self
132    }
133    /// <p>The current status of the test execution.</p>
134    pub fn set_test_execution_status(mut self, input: ::std::option::Option<crate::types::TestExecutionStatus>) -> Self {
135        self.test_execution_status = input;
136        self
137    }
138    /// <p>The current status of the test execution.</p>
139    pub fn get_test_execution_status(&self) -> &::std::option::Option<crate::types::TestExecutionStatus> {
140        &self.test_execution_status
141    }
142    /// <p>The unique identifier of the test set used in the test execution.</p>
143    pub fn test_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144        self.test_set_id = ::std::option::Option::Some(input.into());
145        self
146    }
147    /// <p>The unique identifier of the test set used in the test execution.</p>
148    pub fn set_test_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149        self.test_set_id = input;
150        self
151    }
152    /// <p>The unique identifier of the test set used in the test execution.</p>
153    pub fn get_test_set_id(&self) -> &::std::option::Option<::std::string::String> {
154        &self.test_set_id
155    }
156    /// <p>The name of the test set used in the test execution.</p>
157    pub fn test_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158        self.test_set_name = ::std::option::Option::Some(input.into());
159        self
160    }
161    /// <p>The name of the test set used in the test execution.</p>
162    pub fn set_test_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
163        self.test_set_name = input;
164        self
165    }
166    /// <p>The name of the test set used in the test execution.</p>
167    pub fn get_test_set_name(&self) -> &::std::option::Option<::std::string::String> {
168        &self.test_set_name
169    }
170    /// <p>Contains information about the bot used for the test execution..</p>
171    pub fn target(mut self, input: crate::types::TestExecutionTarget) -> Self {
172        self.target = ::std::option::Option::Some(input);
173        self
174    }
175    /// <p>Contains information about the bot used for the test execution..</p>
176    pub fn set_target(mut self, input: ::std::option::Option<crate::types::TestExecutionTarget>) -> Self {
177        self.target = input;
178        self
179    }
180    /// <p>Contains information about the bot used for the test execution..</p>
181    pub fn get_target(&self) -> &::std::option::Option<crate::types::TestExecutionTarget> {
182        &self.target
183    }
184    /// <p>Specifies whether the API mode for the test execution is streaming or non-streaming.</p>
185    pub fn api_mode(mut self, input: crate::types::TestExecutionApiMode) -> Self {
186        self.api_mode = ::std::option::Option::Some(input);
187        self
188    }
189    /// <p>Specifies whether the API mode for the test execution is streaming or non-streaming.</p>
190    pub fn set_api_mode(mut self, input: ::std::option::Option<crate::types::TestExecutionApiMode>) -> Self {
191        self.api_mode = input;
192        self
193    }
194    /// <p>Specifies whether the API mode for the test execution is streaming or non-streaming.</p>
195    pub fn get_api_mode(&self) -> &::std::option::Option<crate::types::TestExecutionApiMode> {
196        &self.api_mode
197    }
198    /// <p>Specifies whether the data used for the test execution is written or spoken.</p>
199    pub fn test_execution_modality(mut self, input: crate::types::TestExecutionModality) -> Self {
200        self.test_execution_modality = ::std::option::Option::Some(input);
201        self
202    }
203    /// <p>Specifies whether the data used for the test execution is written or spoken.</p>
204    pub fn set_test_execution_modality(mut self, input: ::std::option::Option<crate::types::TestExecutionModality>) -> Self {
205        self.test_execution_modality = input;
206        self
207    }
208    /// <p>Specifies whether the data used for the test execution is written or spoken.</p>
209    pub fn get_test_execution_modality(&self) -> &::std::option::Option<crate::types::TestExecutionModality> {
210        &self.test_execution_modality
211    }
212    /// Consumes the builder and constructs a [`TestExecutionSummary`](crate::types::TestExecutionSummary).
213    pub fn build(self) -> crate::types::TestExecutionSummary {
214        crate::types::TestExecutionSummary {
215            test_execution_id: self.test_execution_id,
216            creation_date_time: self.creation_date_time,
217            last_updated_date_time: self.last_updated_date_time,
218            test_execution_status: self.test_execution_status,
219            test_set_id: self.test_set_id,
220            test_set_name: self.test_set_name,
221            target: self.target,
222            api_mode: self.api_mode,
223            test_execution_modality: self.test_execution_modality,
224        }
225    }
226}