aws_sdk_lexmodelsv2/operation/update_test_set/
_update_test_set_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateTestSetOutput {
6 pub test_set_id: ::std::option::Option<::std::string::String>,
8 pub test_set_name: ::std::option::Option<::std::string::String>,
10 pub description: ::std::option::Option<::std::string::String>,
12 pub modality: ::std::option::Option<crate::types::TestSetModality>,
14 pub status: ::std::option::Option<crate::types::TestSetStatus>,
16 pub role_arn: ::std::option::Option<::std::string::String>,
18 pub num_turns: ::std::option::Option<i32>,
20 pub storage_location: ::std::option::Option<crate::types::TestSetStorageLocation>,
22 pub creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
24 pub last_updated_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
26 _request_id: Option<String>,
27}
28impl UpdateTestSetOutput {
29 pub fn test_set_id(&self) -> ::std::option::Option<&str> {
31 self.test_set_id.as_deref()
32 }
33 pub fn test_set_name(&self) -> ::std::option::Option<&str> {
35 self.test_set_name.as_deref()
36 }
37 pub fn description(&self) -> ::std::option::Option<&str> {
39 self.description.as_deref()
40 }
41 pub fn modality(&self) -> ::std::option::Option<&crate::types::TestSetModality> {
43 self.modality.as_ref()
44 }
45 pub fn status(&self) -> ::std::option::Option<&crate::types::TestSetStatus> {
47 self.status.as_ref()
48 }
49 pub fn role_arn(&self) -> ::std::option::Option<&str> {
51 self.role_arn.as_deref()
52 }
53 pub fn num_turns(&self) -> ::std::option::Option<i32> {
55 self.num_turns
56 }
57 pub fn storage_location(&self) -> ::std::option::Option<&crate::types::TestSetStorageLocation> {
59 self.storage_location.as_ref()
60 }
61 pub fn creation_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
63 self.creation_date_time.as_ref()
64 }
65 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 pub fn builder() -> crate::operation::update_test_set::builders::UpdateTestSetOutputBuilder {
78 crate::operation::update_test_set::builders::UpdateTestSetOutputBuilder::default()
79 }
80}
81
82#[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 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 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 pub fn get_test_set_id(&self) -> &::std::option::Option<::std::string::String> {
111 &self.test_set_id
112 }
113 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 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 pub fn get_test_set_name(&self) -> &::std::option::Option<::std::string::String> {
125 &self.test_set_name
126 }
127 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 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
134 self.description = input;
135 self
136 }
137 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
139 &self.description
140 }
141 pub fn modality(mut self, input: crate::types::TestSetModality) -> Self {
143 self.modality = ::std::option::Option::Some(input);
144 self
145 }
146 pub fn set_modality(mut self, input: ::std::option::Option<crate::types::TestSetModality>) -> Self {
148 self.modality = input;
149 self
150 }
151 pub fn get_modality(&self) -> &::std::option::Option<crate::types::TestSetModality> {
153 &self.modality
154 }
155 pub fn status(mut self, input: crate::types::TestSetStatus) -> Self {
157 self.status = ::std::option::Option::Some(input);
158 self
159 }
160 pub fn set_status(mut self, input: ::std::option::Option<crate::types::TestSetStatus>) -> Self {
162 self.status = input;
163 self
164 }
165 pub fn get_status(&self) -> &::std::option::Option<crate::types::TestSetStatus> {
167 &self.status
168 }
169 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 pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
176 self.role_arn = input;
177 self
178 }
179 pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
181 &self.role_arn
182 }
183 pub fn num_turns(mut self, input: i32) -> Self {
185 self.num_turns = ::std::option::Option::Some(input);
186 self
187 }
188 pub fn set_num_turns(mut self, input: ::std::option::Option<i32>) -> Self {
190 self.num_turns = input;
191 self
192 }
193 pub fn get_num_turns(&self) -> &::std::option::Option<i32> {
195 &self.num_turns
196 }
197 pub fn storage_location(mut self, input: crate::types::TestSetStorageLocation) -> Self {
199 self.storage_location = ::std::option::Option::Some(input);
200 self
201 }
202 pub fn set_storage_location(mut self, input: ::std::option::Option<crate::types::TestSetStorageLocation>) -> Self {
204 self.storage_location = input;
205 self
206 }
207 pub fn get_storage_location(&self) -> &::std::option::Option<crate::types::TestSetStorageLocation> {
209 &self.storage_location
210 }
211 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 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 pub fn get_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
223 &self.creation_date_time
224 }
225 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 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 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 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}