aws_sdk_entityresolution/operation/get_matching_workflow/
_get_matching_workflow_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetMatchingWorkflowOutput {
6 pub workflow_name: ::std::string::String,
8 pub workflow_arn: ::std::string::String,
10 pub description: ::std::option::Option<::std::string::String>,
12 pub input_source_config: ::std::vec::Vec<crate::types::InputSource>,
14 pub output_source_config: ::std::vec::Vec<crate::types::OutputSource>,
16 pub resolution_techniques: ::std::option::Option<crate::types::ResolutionTechniques>,
18 pub created_at: ::aws_smithy_types::DateTime,
20 pub updated_at: ::aws_smithy_types::DateTime,
22 pub incremental_run_config: ::std::option::Option<crate::types::IncrementalRunConfig>,
24 pub role_arn: ::std::string::String,
26 pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
28 _request_id: Option<String>,
29}
30impl GetMatchingWorkflowOutput {
31 pub fn workflow_name(&self) -> &str {
33 use std::ops::Deref;
34 self.workflow_name.deref()
35 }
36 pub fn workflow_arn(&self) -> &str {
38 use std::ops::Deref;
39 self.workflow_arn.deref()
40 }
41 pub fn description(&self) -> ::std::option::Option<&str> {
43 self.description.as_deref()
44 }
45 pub fn input_source_config(&self) -> &[crate::types::InputSource] {
47 use std::ops::Deref;
48 self.input_source_config.deref()
49 }
50 pub fn output_source_config(&self) -> &[crate::types::OutputSource] {
52 use std::ops::Deref;
53 self.output_source_config.deref()
54 }
55 pub fn resolution_techniques(&self) -> ::std::option::Option<&crate::types::ResolutionTechniques> {
57 self.resolution_techniques.as_ref()
58 }
59 pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
61 &self.created_at
62 }
63 pub fn updated_at(&self) -> &::aws_smithy_types::DateTime {
65 &self.updated_at
66 }
67 pub fn incremental_run_config(&self) -> ::std::option::Option<&crate::types::IncrementalRunConfig> {
69 self.incremental_run_config.as_ref()
70 }
71 pub fn role_arn(&self) -> &str {
73 use std::ops::Deref;
74 self.role_arn.deref()
75 }
76 pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
78 self.tags.as_ref()
79 }
80}
81impl ::aws_types::request_id::RequestId for GetMatchingWorkflowOutput {
82 fn request_id(&self) -> Option<&str> {
83 self._request_id.as_deref()
84 }
85}
86impl GetMatchingWorkflowOutput {
87 pub fn builder() -> crate::operation::get_matching_workflow::builders::GetMatchingWorkflowOutputBuilder {
89 crate::operation::get_matching_workflow::builders::GetMatchingWorkflowOutputBuilder::default()
90 }
91}
92
93#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
95#[non_exhaustive]
96pub struct GetMatchingWorkflowOutputBuilder {
97 pub(crate) workflow_name: ::std::option::Option<::std::string::String>,
98 pub(crate) workflow_arn: ::std::option::Option<::std::string::String>,
99 pub(crate) description: ::std::option::Option<::std::string::String>,
100 pub(crate) input_source_config: ::std::option::Option<::std::vec::Vec<crate::types::InputSource>>,
101 pub(crate) output_source_config: ::std::option::Option<::std::vec::Vec<crate::types::OutputSource>>,
102 pub(crate) resolution_techniques: ::std::option::Option<crate::types::ResolutionTechniques>,
103 pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
104 pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
105 pub(crate) incremental_run_config: ::std::option::Option<crate::types::IncrementalRunConfig>,
106 pub(crate) role_arn: ::std::option::Option<::std::string::String>,
107 pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
108 _request_id: Option<String>,
109}
110impl GetMatchingWorkflowOutputBuilder {
111 pub fn workflow_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114 self.workflow_name = ::std::option::Option::Some(input.into());
115 self
116 }
117 pub fn set_workflow_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
119 self.workflow_name = input;
120 self
121 }
122 pub fn get_workflow_name(&self) -> &::std::option::Option<::std::string::String> {
124 &self.workflow_name
125 }
126 pub fn workflow_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129 self.workflow_arn = ::std::option::Option::Some(input.into());
130 self
131 }
132 pub fn set_workflow_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
134 self.workflow_arn = input;
135 self
136 }
137 pub fn get_workflow_arn(&self) -> &::std::option::Option<::std::string::String> {
139 &self.workflow_arn
140 }
141 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
143 self.description = ::std::option::Option::Some(input.into());
144 self
145 }
146 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
148 self.description = input;
149 self
150 }
151 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
153 &self.description
154 }
155 pub fn input_source_config(mut self, input: crate::types::InputSource) -> Self {
161 let mut v = self.input_source_config.unwrap_or_default();
162 v.push(input);
163 self.input_source_config = ::std::option::Option::Some(v);
164 self
165 }
166 pub fn set_input_source_config(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::InputSource>>) -> Self {
168 self.input_source_config = input;
169 self
170 }
171 pub fn get_input_source_config(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::InputSource>> {
173 &self.input_source_config
174 }
175 pub fn output_source_config(mut self, input: crate::types::OutputSource) -> Self {
181 let mut v = self.output_source_config.unwrap_or_default();
182 v.push(input);
183 self.output_source_config = ::std::option::Option::Some(v);
184 self
185 }
186 pub fn set_output_source_config(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OutputSource>>) -> Self {
188 self.output_source_config = input;
189 self
190 }
191 pub fn get_output_source_config(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OutputSource>> {
193 &self.output_source_config
194 }
195 pub fn resolution_techniques(mut self, input: crate::types::ResolutionTechniques) -> Self {
198 self.resolution_techniques = ::std::option::Option::Some(input);
199 self
200 }
201 pub fn set_resolution_techniques(mut self, input: ::std::option::Option<crate::types::ResolutionTechniques>) -> Self {
203 self.resolution_techniques = input;
204 self
205 }
206 pub fn get_resolution_techniques(&self) -> &::std::option::Option<crate::types::ResolutionTechniques> {
208 &self.resolution_techniques
209 }
210 pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
213 self.created_at = ::std::option::Option::Some(input);
214 self
215 }
216 pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
218 self.created_at = input;
219 self
220 }
221 pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
223 &self.created_at
224 }
225 pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
228 self.updated_at = ::std::option::Option::Some(input);
229 self
230 }
231 pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
233 self.updated_at = input;
234 self
235 }
236 pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
238 &self.updated_at
239 }
240 pub fn incremental_run_config(mut self, input: crate::types::IncrementalRunConfig) -> Self {
242 self.incremental_run_config = ::std::option::Option::Some(input);
243 self
244 }
245 pub fn set_incremental_run_config(mut self, input: ::std::option::Option<crate::types::IncrementalRunConfig>) -> Self {
247 self.incremental_run_config = input;
248 self
249 }
250 pub fn get_incremental_run_config(&self) -> &::std::option::Option<crate::types::IncrementalRunConfig> {
252 &self.incremental_run_config
253 }
254 pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
257 self.role_arn = ::std::option::Option::Some(input.into());
258 self
259 }
260 pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
262 self.role_arn = input;
263 self
264 }
265 pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
267 &self.role_arn
268 }
269 pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
275 let mut hash_map = self.tags.unwrap_or_default();
276 hash_map.insert(k.into(), v.into());
277 self.tags = ::std::option::Option::Some(hash_map);
278 self
279 }
280 pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
282 self.tags = input;
283 self
284 }
285 pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
287 &self.tags
288 }
289 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
290 self._request_id = Some(request_id.into());
291 self
292 }
293
294 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
295 self._request_id = request_id;
296 self
297 }
298 pub fn build(
308 self,
309 ) -> ::std::result::Result<crate::operation::get_matching_workflow::GetMatchingWorkflowOutput, ::aws_smithy_types::error::operation::BuildError>
310 {
311 ::std::result::Result::Ok(crate::operation::get_matching_workflow::GetMatchingWorkflowOutput {
312 workflow_name: self.workflow_name.ok_or_else(|| {
313 ::aws_smithy_types::error::operation::BuildError::missing_field(
314 "workflow_name",
315 "workflow_name was not specified but it is required when building GetMatchingWorkflowOutput",
316 )
317 })?,
318 workflow_arn: self.workflow_arn.ok_or_else(|| {
319 ::aws_smithy_types::error::operation::BuildError::missing_field(
320 "workflow_arn",
321 "workflow_arn was not specified but it is required when building GetMatchingWorkflowOutput",
322 )
323 })?,
324 description: self.description,
325 input_source_config: self.input_source_config.ok_or_else(|| {
326 ::aws_smithy_types::error::operation::BuildError::missing_field(
327 "input_source_config",
328 "input_source_config was not specified but it is required when building GetMatchingWorkflowOutput",
329 )
330 })?,
331 output_source_config: self.output_source_config.ok_or_else(|| {
332 ::aws_smithy_types::error::operation::BuildError::missing_field(
333 "output_source_config",
334 "output_source_config was not specified but it is required when building GetMatchingWorkflowOutput",
335 )
336 })?,
337 resolution_techniques: self.resolution_techniques,
338 created_at: self.created_at.ok_or_else(|| {
339 ::aws_smithy_types::error::operation::BuildError::missing_field(
340 "created_at",
341 "created_at was not specified but it is required when building GetMatchingWorkflowOutput",
342 )
343 })?,
344 updated_at: self.updated_at.ok_or_else(|| {
345 ::aws_smithy_types::error::operation::BuildError::missing_field(
346 "updated_at",
347 "updated_at was not specified but it is required when building GetMatchingWorkflowOutput",
348 )
349 })?,
350 incremental_run_config: self.incremental_run_config,
351 role_arn: self.role_arn.ok_or_else(|| {
352 ::aws_smithy_types::error::operation::BuildError::missing_field(
353 "role_arn",
354 "role_arn was not specified but it is required when building GetMatchingWorkflowOutput",
355 )
356 })?,
357 tags: self.tags,
358 _request_id: self._request_id,
359 })
360 }
361}