aws_sdk_lexmodelsv2/operation/update_test_set/
_update_test_set_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateTestSetOutput {
6    /// <p>The test set Id for which update test operation to be performed.</p>
7    pub test_set_id: ::std::option::Option<::std::string::String>,
8    /// <p>The test set name for the updated test set.</p>
9    pub test_set_name: ::std::option::Option<::std::string::String>,
10    /// <p>The test set description for the updated test set.</p>
11    pub description: ::std::option::Option<::std::string::String>,
12    /// <p>Indicates whether audio or text is used for the updated test set.</p>
13    pub modality: ::std::option::Option<crate::types::TestSetModality>,
14    /// <p>The status for the updated test set.</p>
15    pub status: ::std::option::Option<crate::types::TestSetStatus>,
16    /// <p>The roleARN used for any operation in the test set to access resources in the Amazon Web Services account.</p>
17    pub role_arn: ::std::option::Option<::std::string::String>,
18    /// <p>The number of conversation turns from the updated test set.</p>
19    pub num_turns: ::std::option::Option<i32>,
20    /// <p>The Amazon S3 storage location for the updated test set.</p>
21    pub storage_location: ::std::option::Option<crate::types::TestSetStorageLocation>,
22    /// <p>The creation date and time for the updated test set.</p>
23    pub creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
24    /// <p>The date and time of the last update for the updated test set.</p>
25    pub last_updated_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
26    _request_id: Option<String>,
27}
28impl UpdateTestSetOutput {
29    /// <p>The test set Id for which update test operation to be performed.</p>
30    pub fn test_set_id(&self) -> ::std::option::Option<&str> {
31        self.test_set_id.as_deref()
32    }
33    /// <p>The test set name for the updated test set.</p>
34    pub fn test_set_name(&self) -> ::std::option::Option<&str> {
35        self.test_set_name.as_deref()
36    }
37    /// <p>The test set description for the updated test set.</p>
38    pub fn description(&self) -> ::std::option::Option<&str> {
39        self.description.as_deref()
40    }
41    /// <p>Indicates whether audio or text is used for the updated test set.</p>
42    pub fn modality(&self) -> ::std::option::Option<&crate::types::TestSetModality> {
43        self.modality.as_ref()
44    }
45    /// <p>The status for the updated test set.</p>
46    pub fn status(&self) -> ::std::option::Option<&crate::types::TestSetStatus> {
47        self.status.as_ref()
48    }
49    /// <p>The roleARN used for any operation in the test set to access resources in the Amazon Web Services account.</p>
50    pub fn role_arn(&self) -> ::std::option::Option<&str> {
51        self.role_arn.as_deref()
52    }
53    /// <p>The number of conversation turns from the updated test set.</p>
54    pub fn num_turns(&self) -> ::std::option::Option<i32> {
55        self.num_turns
56    }
57    /// <p>The Amazon S3 storage location for the updated test set.</p>
58    pub fn storage_location(&self) -> ::std::option::Option<&crate::types::TestSetStorageLocation> {
59        self.storage_location.as_ref()
60    }
61    /// <p>The creation date and time for the updated test set.</p>
62    pub fn creation_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
63        self.creation_date_time.as_ref()
64    }
65    /// <p>The date and time of the last update for the updated test set.</p>
66    pub fn last_updated_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
67        self.last_updated_date_time.as_ref()
68    }
69}
70impl ::aws_types::request_id::RequestId for UpdateTestSetOutput {
71    fn request_id(&self) -> Option<&str> {
72        self._request_id.as_deref()
73    }
74}
75impl UpdateTestSetOutput {
76    /// Creates a new builder-style object to manufacture [`UpdateTestSetOutput`](crate::operation::update_test_set::UpdateTestSetOutput).
77    pub fn builder() -> crate::operation::update_test_set::builders::UpdateTestSetOutputBuilder {
78        crate::operation::update_test_set::builders::UpdateTestSetOutputBuilder::default()
79    }
80}
81
82/// A builder for [`UpdateTestSetOutput`](crate::operation::update_test_set::UpdateTestSetOutput).
83#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
84#[non_exhaustive]
85pub struct UpdateTestSetOutputBuilder {
86    pub(crate) test_set_id: ::std::option::Option<::std::string::String>,
87    pub(crate) test_set_name: ::std::option::Option<::std::string::String>,
88    pub(crate) description: ::std::option::Option<::std::string::String>,
89    pub(crate) modality: ::std::option::Option<crate::types::TestSetModality>,
90    pub(crate) status: ::std::option::Option<crate::types::TestSetStatus>,
91    pub(crate) role_arn: ::std::option::Option<::std::string::String>,
92    pub(crate) num_turns: ::std::option::Option<i32>,
93    pub(crate) storage_location: ::std::option::Option<crate::types::TestSetStorageLocation>,
94    pub(crate) creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
95    pub(crate) last_updated_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
96    _request_id: Option<String>,
97}
98impl UpdateTestSetOutputBuilder {
99    /// <p>The test set Id for which update test operation to be performed.</p>
100    pub fn test_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
101        self.test_set_id = ::std::option::Option::Some(input.into());
102        self
103    }
104    /// <p>The test set Id for which update test operation to be performed.</p>
105    pub fn set_test_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106        self.test_set_id = input;
107        self
108    }
109    /// <p>The test set Id for which update test operation to be performed.</p>
110    pub fn get_test_set_id(&self) -> &::std::option::Option<::std::string::String> {
111        &self.test_set_id
112    }
113    /// <p>The test set name for the updated test set.</p>
114    pub fn test_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
115        self.test_set_name = ::std::option::Option::Some(input.into());
116        self
117    }
118    /// <p>The test set name for the updated test set.</p>
119    pub fn set_test_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120        self.test_set_name = input;
121        self
122    }
123    /// <p>The test set name for the updated test set.</p>
124    pub fn get_test_set_name(&self) -> &::std::option::Option<::std::string::String> {
125        &self.test_set_name
126    }
127    /// <p>The test set description for the updated test set.</p>
128    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129        self.description = ::std::option::Option::Some(input.into());
130        self
131    }
132    /// <p>The test set description for the updated test set.</p>
133    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
134        self.description = input;
135        self
136    }
137    /// <p>The test set description for the updated test set.</p>
138    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
139        &self.description
140    }
141    /// <p>Indicates whether audio or text is used for the updated test set.</p>
142    pub fn modality(mut self, input: crate::types::TestSetModality) -> Self {
143        self.modality = ::std::option::Option::Some(input);
144        self
145    }
146    /// <p>Indicates whether audio or text is used for the updated test set.</p>
147    pub fn set_modality(mut self, input: ::std::option::Option<crate::types::TestSetModality>) -> Self {
148        self.modality = input;
149        self
150    }
151    /// <p>Indicates whether audio or text is used for the updated test set.</p>
152    pub fn get_modality(&self) -> &::std::option::Option<crate::types::TestSetModality> {
153        &self.modality
154    }
155    /// <p>The status for the updated test set.</p>
156    pub fn status(mut self, input: crate::types::TestSetStatus) -> Self {
157        self.status = ::std::option::Option::Some(input);
158        self
159    }
160    /// <p>The status for the updated test set.</p>
161    pub fn set_status(mut self, input: ::std::option::Option<crate::types::TestSetStatus>) -> Self {
162        self.status = input;
163        self
164    }
165    /// <p>The status for the updated test set.</p>
166    pub fn get_status(&self) -> &::std::option::Option<crate::types::TestSetStatus> {
167        &self.status
168    }
169    /// <p>The roleARN used for any operation in the test set to access resources in the Amazon Web Services account.</p>
170    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
171        self.role_arn = ::std::option::Option::Some(input.into());
172        self
173    }
174    /// <p>The roleARN used for any operation in the test set to access resources in the Amazon Web Services account.</p>
175    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
176        self.role_arn = input;
177        self
178    }
179    /// <p>The roleARN used for any operation in the test set to access resources in the Amazon Web Services account.</p>
180    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
181        &self.role_arn
182    }
183    /// <p>The number of conversation turns from the updated test set.</p>
184    pub fn num_turns(mut self, input: i32) -> Self {
185        self.num_turns = ::std::option::Option::Some(input);
186        self
187    }
188    /// <p>The number of conversation turns from the updated test set.</p>
189    pub fn set_num_turns(mut self, input: ::std::option::Option<i32>) -> Self {
190        self.num_turns = input;
191        self
192    }
193    /// <p>The number of conversation turns from the updated test set.</p>
194    pub fn get_num_turns(&self) -> &::std::option::Option<i32> {
195        &self.num_turns
196    }
197    /// <p>The Amazon S3 storage location for the updated test set.</p>
198    pub fn storage_location(mut self, input: crate::types::TestSetStorageLocation) -> Self {
199        self.storage_location = ::std::option::Option::Some(input);
200        self
201    }
202    /// <p>The Amazon S3 storage location for the updated test set.</p>
203    pub fn set_storage_location(mut self, input: ::std::option::Option<crate::types::TestSetStorageLocation>) -> Self {
204        self.storage_location = input;
205        self
206    }
207    /// <p>The Amazon S3 storage location for the updated test set.</p>
208    pub fn get_storage_location(&self) -> &::std::option::Option<crate::types::TestSetStorageLocation> {
209        &self.storage_location
210    }
211    /// <p>The creation date and time for the updated test set.</p>
212    pub fn creation_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
213        self.creation_date_time = ::std::option::Option::Some(input);
214        self
215    }
216    /// <p>The creation date and time for the updated test set.</p>
217    pub fn set_creation_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
218        self.creation_date_time = input;
219        self
220    }
221    /// <p>The creation date and time for the updated test set.</p>
222    pub fn get_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
223        &self.creation_date_time
224    }
225    /// <p>The date and time of the last update for the updated test set.</p>
226    pub fn last_updated_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
227        self.last_updated_date_time = ::std::option::Option::Some(input);
228        self
229    }
230    /// <p>The date and time of the last update for the updated test set.</p>
231    pub fn set_last_updated_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
232        self.last_updated_date_time = input;
233        self
234    }
235    /// <p>The date and time of the last update for the updated test set.</p>
236    pub fn get_last_updated_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
237        &self.last_updated_date_time
238    }
239    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
240        self._request_id = Some(request_id.into());
241        self
242    }
243
244    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
245        self._request_id = request_id;
246        self
247    }
248    /// Consumes the builder and constructs a [`UpdateTestSetOutput`](crate::operation::update_test_set::UpdateTestSetOutput).
249    pub fn build(self) -> crate::operation::update_test_set::UpdateTestSetOutput {
250        crate::operation::update_test_set::UpdateTestSetOutput {
251            test_set_id: self.test_set_id,
252            test_set_name: self.test_set_name,
253            description: self.description,
254            modality: self.modality,
255            status: self.status,
256            role_arn: self.role_arn,
257            num_turns: self.num_turns,
258            storage_location: self.storage_location,
259            creation_date_time: self.creation_date_time,
260            last_updated_date_time: self.last_updated_date_time,
261            _request_id: self._request_id,
262        }
263    }
264}