Struct aws_sdk_connect::model::quick_connect_config::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for QuickConnectConfig
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn quick_connect_type(self, input: QuickConnectType) -> Self
pub fn quick_connect_type(self, input: QuickConnectType) -> Self
The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).
sourcepub fn set_quick_connect_type(self, input: Option<QuickConnectType>) -> Self
pub fn set_quick_connect_type(self, input: Option<QuickConnectType>) -> Self
The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).
Examples found in repository?
10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640
pub(crate) fn deser_structure_crate_model_quick_connect_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::QuickConnectConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::quick_connect_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"QuickConnectType" => {
builder = builder.set_quick_connect_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::QuickConnectType::from(u.as_ref())
})
})
.transpose()?,
);
}
"UserConfig" => {
builder = builder.set_user_config(
crate::json_deser::deser_structure_crate_model_user_quick_connect_config(tokens)?
);
}
"QueueConfig" => {
builder = builder.set_queue_config(
crate::json_deser::deser_structure_crate_model_queue_quick_connect_config(tokens)?
);
}
"PhoneConfig" => {
builder = builder.set_phone_config(
crate::json_deser::deser_structure_crate_model_phone_number_quick_connect_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn user_config(self, input: UserQuickConnectConfig) -> Self
pub fn user_config(self, input: UserQuickConnectConfig) -> Self
The user configuration. This is required only if QuickConnectType is USER.
sourcepub fn set_user_config(self, input: Option<UserQuickConnectConfig>) -> Self
pub fn set_user_config(self, input: Option<UserQuickConnectConfig>) -> Self
The user configuration. This is required only if QuickConnectType is USER.
Examples found in repository?
10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640
pub(crate) fn deser_structure_crate_model_quick_connect_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::QuickConnectConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::quick_connect_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"QuickConnectType" => {
builder = builder.set_quick_connect_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::QuickConnectType::from(u.as_ref())
})
})
.transpose()?,
);
}
"UserConfig" => {
builder = builder.set_user_config(
crate::json_deser::deser_structure_crate_model_user_quick_connect_config(tokens)?
);
}
"QueueConfig" => {
builder = builder.set_queue_config(
crate::json_deser::deser_structure_crate_model_queue_quick_connect_config(tokens)?
);
}
"PhoneConfig" => {
builder = builder.set_phone_config(
crate::json_deser::deser_structure_crate_model_phone_number_quick_connect_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn queue_config(self, input: QueueQuickConnectConfig) -> Self
pub fn queue_config(self, input: QueueQuickConnectConfig) -> Self
The queue configuration. This is required only if QuickConnectType is QUEUE.
sourcepub fn set_queue_config(self, input: Option<QueueQuickConnectConfig>) -> Self
pub fn set_queue_config(self, input: Option<QueueQuickConnectConfig>) -> Self
The queue configuration. This is required only if QuickConnectType is QUEUE.
Examples found in repository?
10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640
pub(crate) fn deser_structure_crate_model_quick_connect_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::QuickConnectConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::quick_connect_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"QuickConnectType" => {
builder = builder.set_quick_connect_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::QuickConnectType::from(u.as_ref())
})
})
.transpose()?,
);
}
"UserConfig" => {
builder = builder.set_user_config(
crate::json_deser::deser_structure_crate_model_user_quick_connect_config(tokens)?
);
}
"QueueConfig" => {
builder = builder.set_queue_config(
crate::json_deser::deser_structure_crate_model_queue_quick_connect_config(tokens)?
);
}
"PhoneConfig" => {
builder = builder.set_phone_config(
crate::json_deser::deser_structure_crate_model_phone_number_quick_connect_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn phone_config(self, input: PhoneNumberQuickConnectConfig) -> Self
pub fn phone_config(self, input: PhoneNumberQuickConnectConfig) -> Self
The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.
sourcepub fn set_phone_config(
self,
input: Option<PhoneNumberQuickConnectConfig>
) -> Self
pub fn set_phone_config(
self,
input: Option<PhoneNumberQuickConnectConfig>
) -> Self
The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.
Examples found in repository?
10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640
pub(crate) fn deser_structure_crate_model_quick_connect_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::QuickConnectConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::quick_connect_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"QuickConnectType" => {
builder = builder.set_quick_connect_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::QuickConnectType::from(u.as_ref())
})
})
.transpose()?,
);
}
"UserConfig" => {
builder = builder.set_user_config(
crate::json_deser::deser_structure_crate_model_user_quick_connect_config(tokens)?
);
}
"QueueConfig" => {
builder = builder.set_queue_config(
crate::json_deser::deser_structure_crate_model_queue_quick_connect_config(tokens)?
);
}
"PhoneConfig" => {
builder = builder.set_phone_config(
crate::json_deser::deser_structure_crate_model_phone_number_quick_connect_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> QuickConnectConfig
pub fn build(self) -> QuickConnectConfig
Consumes the builder and constructs a QuickConnectConfig
.
Examples found in repository?
10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640
pub(crate) fn deser_structure_crate_model_quick_connect_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::QuickConnectConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::quick_connect_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"QuickConnectType" => {
builder = builder.set_quick_connect_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::QuickConnectType::from(u.as_ref())
})
})
.transpose()?,
);
}
"UserConfig" => {
builder = builder.set_user_config(
crate::json_deser::deser_structure_crate_model_user_quick_connect_config(tokens)?
);
}
"QueueConfig" => {
builder = builder.set_queue_config(
crate::json_deser::deser_structure_crate_model_queue_quick_connect_config(tokens)?
);
}
"PhoneConfig" => {
builder = builder.set_phone_config(
crate::json_deser::deser_structure_crate_model_phone_number_quick_connect_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}