aws_sdk_connect/operation/resume_contact/
_resume_contact_input.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 ResumeContactInput {
6    /// <p>The identifier of the contact.</p>
7    pub contact_id: ::std::option::Option<::std::string::String>,
8    /// <p>The identifier of the Amazon Connect instance. You can find the <code>instanceId</code> in the ARN of the instance.</p>
9    pub instance_id: ::std::option::Option<::std::string::String>,
10    /// <p>The identifier of the flow.</p>
11    pub contact_flow_id: ::std::option::Option<::std::string::String>,
12}
13impl ResumeContactInput {
14    /// <p>The identifier of the contact.</p>
15    pub fn contact_id(&self) -> ::std::option::Option<&str> {
16        self.contact_id.as_deref()
17    }
18    /// <p>The identifier of the Amazon Connect instance. You can find the <code>instanceId</code> in the ARN of the instance.</p>
19    pub fn instance_id(&self) -> ::std::option::Option<&str> {
20        self.instance_id.as_deref()
21    }
22    /// <p>The identifier of the flow.</p>
23    pub fn contact_flow_id(&self) -> ::std::option::Option<&str> {
24        self.contact_flow_id.as_deref()
25    }
26}
27impl ResumeContactInput {
28    /// Creates a new builder-style object to manufacture [`ResumeContactInput`](crate::operation::resume_contact::ResumeContactInput).
29    pub fn builder() -> crate::operation::resume_contact::builders::ResumeContactInputBuilder {
30        crate::operation::resume_contact::builders::ResumeContactInputBuilder::default()
31    }
32}
33
34/// A builder for [`ResumeContactInput`](crate::operation::resume_contact::ResumeContactInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct ResumeContactInputBuilder {
38    pub(crate) contact_id: ::std::option::Option<::std::string::String>,
39    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
40    pub(crate) contact_flow_id: ::std::option::Option<::std::string::String>,
41}
42impl ResumeContactInputBuilder {
43    /// <p>The identifier of the contact.</p>
44    /// This field is required.
45    pub fn contact_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46        self.contact_id = ::std::option::Option::Some(input.into());
47        self
48    }
49    /// <p>The identifier of the contact.</p>
50    pub fn set_contact_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.contact_id = input;
52        self
53    }
54    /// <p>The identifier of the contact.</p>
55    pub fn get_contact_id(&self) -> &::std::option::Option<::std::string::String> {
56        &self.contact_id
57    }
58    /// <p>The identifier of the Amazon Connect instance. You can find the <code>instanceId</code> in the ARN of the instance.</p>
59    /// This field is required.
60    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61        self.instance_id = ::std::option::Option::Some(input.into());
62        self
63    }
64    /// <p>The identifier of the Amazon Connect instance. You can find the <code>instanceId</code> in the ARN of the instance.</p>
65    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66        self.instance_id = input;
67        self
68    }
69    /// <p>The identifier of the Amazon Connect instance. You can find the <code>instanceId</code> in the ARN of the instance.</p>
70    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
71        &self.instance_id
72    }
73    /// <p>The identifier of the flow.</p>
74    pub fn contact_flow_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
75        self.contact_flow_id = ::std::option::Option::Some(input.into());
76        self
77    }
78    /// <p>The identifier of the flow.</p>
79    pub fn set_contact_flow_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
80        self.contact_flow_id = input;
81        self
82    }
83    /// <p>The identifier of the flow.</p>
84    pub fn get_contact_flow_id(&self) -> &::std::option::Option<::std::string::String> {
85        &self.contact_flow_id
86    }
87    /// Consumes the builder and constructs a [`ResumeContactInput`](crate::operation::resume_contact::ResumeContactInput).
88    pub fn build(
89        self,
90    ) -> ::std::result::Result<crate::operation::resume_contact::ResumeContactInput, ::aws_smithy_types::error::operation::BuildError> {
91        ::std::result::Result::Ok(crate::operation::resume_contact::ResumeContactInput {
92            contact_id: self.contact_id,
93            instance_id: self.instance_id,
94            contact_flow_id: self.contact_flow_id,
95        })
96    }
97}