aws_sdk_connect/operation/transfer_contact/_transfer_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 TransferContactInput {
6 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
7 pub instance_id: ::std::option::Option<::std::string::String>,
8 /// <p>The identifier of the contact in this instance of Amazon Connect.</p>
9 pub contact_id: ::std::option::Option<::std::string::String>,
10 /// <p>The identifier for the queue.</p>
11 pub queue_id: ::std::option::Option<::std::string::String>,
12 /// <p>The identifier for the user. This can be the ID or the ARN of the user.</p>
13 pub user_id: ::std::option::Option<::std::string::String>,
14 /// <p>The identifier of the flow.</p>
15 pub contact_flow_id: ::std::option::Option<::std::string::String>,
16 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
17 pub client_token: ::std::option::Option<::std::string::String>,
18}
19impl TransferContactInput {
20 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
21 pub fn instance_id(&self) -> ::std::option::Option<&str> {
22 self.instance_id.as_deref()
23 }
24 /// <p>The identifier of the contact in this instance of Amazon Connect.</p>
25 pub fn contact_id(&self) -> ::std::option::Option<&str> {
26 self.contact_id.as_deref()
27 }
28 /// <p>The identifier for the queue.</p>
29 pub fn queue_id(&self) -> ::std::option::Option<&str> {
30 self.queue_id.as_deref()
31 }
32 /// <p>The identifier for the user. This can be the ID or the ARN of the user.</p>
33 pub fn user_id(&self) -> ::std::option::Option<&str> {
34 self.user_id.as_deref()
35 }
36 /// <p>The identifier of the flow.</p>
37 pub fn contact_flow_id(&self) -> ::std::option::Option<&str> {
38 self.contact_flow_id.as_deref()
39 }
40 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
41 pub fn client_token(&self) -> ::std::option::Option<&str> {
42 self.client_token.as_deref()
43 }
44}
45impl TransferContactInput {
46 /// Creates a new builder-style object to manufacture [`TransferContactInput`](crate::operation::transfer_contact::TransferContactInput).
47 pub fn builder() -> crate::operation::transfer_contact::builders::TransferContactInputBuilder {
48 crate::operation::transfer_contact::builders::TransferContactInputBuilder::default()
49 }
50}
51
52/// A builder for [`TransferContactInput`](crate::operation::transfer_contact::TransferContactInput).
53#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
54#[non_exhaustive]
55pub struct TransferContactInputBuilder {
56 pub(crate) instance_id: ::std::option::Option<::std::string::String>,
57 pub(crate) contact_id: ::std::option::Option<::std::string::String>,
58 pub(crate) queue_id: ::std::option::Option<::std::string::String>,
59 pub(crate) user_id: ::std::option::Option<::std::string::String>,
60 pub(crate) contact_flow_id: ::std::option::Option<::std::string::String>,
61 pub(crate) client_token: ::std::option::Option<::std::string::String>,
62}
63impl TransferContactInputBuilder {
64 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
65 /// This field is required.
66 pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67 self.instance_id = ::std::option::Option::Some(input.into());
68 self
69 }
70 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
71 pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72 self.instance_id = input;
73 self
74 }
75 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
76 pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
77 &self.instance_id
78 }
79 /// <p>The identifier of the contact in this instance of Amazon Connect.</p>
80 /// This field is required.
81 pub fn contact_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82 self.contact_id = ::std::option::Option::Some(input.into());
83 self
84 }
85 /// <p>The identifier of the contact in this instance of Amazon Connect.</p>
86 pub fn set_contact_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87 self.contact_id = input;
88 self
89 }
90 /// <p>The identifier of the contact in this instance of Amazon Connect.</p>
91 pub fn get_contact_id(&self) -> &::std::option::Option<::std::string::String> {
92 &self.contact_id
93 }
94 /// <p>The identifier for the queue.</p>
95 pub fn queue_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
96 self.queue_id = ::std::option::Option::Some(input.into());
97 self
98 }
99 /// <p>The identifier for the queue.</p>
100 pub fn set_queue_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
101 self.queue_id = input;
102 self
103 }
104 /// <p>The identifier for the queue.</p>
105 pub fn get_queue_id(&self) -> &::std::option::Option<::std::string::String> {
106 &self.queue_id
107 }
108 /// <p>The identifier for the user. This can be the ID or the ARN of the user.</p>
109 pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
110 self.user_id = ::std::option::Option::Some(input.into());
111 self
112 }
113 /// <p>The identifier for the user. This can be the ID or the ARN of the user.</p>
114 pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
115 self.user_id = input;
116 self
117 }
118 /// <p>The identifier for the user. This can be the ID or the ARN of the user.</p>
119 pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
120 &self.user_id
121 }
122 /// <p>The identifier of the flow.</p>
123 /// This field is required.
124 pub fn contact_flow_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
125 self.contact_flow_id = ::std::option::Option::Some(input.into());
126 self
127 }
128 /// <p>The identifier of the flow.</p>
129 pub fn set_contact_flow_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
130 self.contact_flow_id = input;
131 self
132 }
133 /// <p>The identifier of the flow.</p>
134 pub fn get_contact_flow_id(&self) -> &::std::option::Option<::std::string::String> {
135 &self.contact_flow_id
136 }
137 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
138 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
139 self.client_token = ::std::option::Option::Some(input.into());
140 self
141 }
142 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
143 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
144 self.client_token = input;
145 self
146 }
147 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
148 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
149 &self.client_token
150 }
151 /// Consumes the builder and constructs a [`TransferContactInput`](crate::operation::transfer_contact::TransferContactInput).
152 pub fn build(
153 self,
154 ) -> ::std::result::Result<crate::operation::transfer_contact::TransferContactInput, ::aws_smithy_types::error::operation::BuildError> {
155 ::std::result::Result::Ok(crate::operation::transfer_contact::TransferContactInput {
156 instance_id: self.instance_id,
157 contact_id: self.contact_id,
158 queue_id: self.queue_id,
159 user_id: self.user_id,
160 contact_flow_id: self.contact_flow_id,
161 client_token: self.client_token,
162 })
163 }
164}