pub struct Builder { /* private fields */ }Expand description
A builder for ConversationLogSettings.
Implementations§
source§impl Builder
impl Builder
sourcepub fn text_log_settings(self, input: TextLogSetting) -> Self
pub fn text_log_settings(self, input: TextLogSetting) -> Self
Appends an item to text_log_settings.
To override the contents of this collection use set_text_log_settings.
The Amazon CloudWatch Logs settings for logging text and metadata.
sourcepub fn set_text_log_settings(self, input: Option<Vec<TextLogSetting>>) -> Self
pub fn set_text_log_settings(self, input: Option<Vec<TextLogSetting>>) -> Self
The Amazon CloudWatch Logs settings for logging text and metadata.
Examples found in repository?
src/json_deser.rs (lines 6539-6541)
6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569
pub(crate) fn deser_structure_crate_model_conversation_log_settings<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ConversationLogSettings>,
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::conversation_log_settings::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() {
"textLogSettings" => {
builder = builder.set_text_log_settings(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_text_log_settings_list(tokens)?
);
}
"audioLogSettings" => {
builder = builder.set_audio_log_settings(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_audio_log_settings_list(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 audio_log_settings(self, input: AudioLogSetting) -> Self
pub fn audio_log_settings(self, input: AudioLogSetting) -> Self
Appends an item to audio_log_settings.
To override the contents of this collection use set_audio_log_settings.
The Amazon S3 settings for logging audio to an S3 bucket.
sourcepub fn set_audio_log_settings(self, input: Option<Vec<AudioLogSetting>>) -> Self
pub fn set_audio_log_settings(self, input: Option<Vec<AudioLogSetting>>) -> Self
The Amazon S3 settings for logging audio to an S3 bucket.
Examples found in repository?
src/json_deser.rs (lines 6544-6546)
6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569
pub(crate) fn deser_structure_crate_model_conversation_log_settings<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ConversationLogSettings>,
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::conversation_log_settings::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() {
"textLogSettings" => {
builder = builder.set_text_log_settings(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_text_log_settings_list(tokens)?
);
}
"audioLogSettings" => {
builder = builder.set_audio_log_settings(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_audio_log_settings_list(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) -> ConversationLogSettings
pub fn build(self) -> ConversationLogSettings
Consumes the builder and constructs a ConversationLogSettings.
Examples found in repository?
src/json_deser.rs (line 6561)
6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569
pub(crate) fn deser_structure_crate_model_conversation_log_settings<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ConversationLogSettings>,
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::conversation_log_settings::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() {
"textLogSettings" => {
builder = builder.set_text_log_settings(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_text_log_settings_list(tokens)?
);
}
"audioLogSettings" => {
builder = builder.set_audio_log_settings(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_audio_log_settings_list(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",
),
),
}
}