pub struct Builder { /* private fields */ }Expand description
A builder for IntentConfirmationSetting.
Implementations§
source§impl Builder
impl Builder
sourcepub fn prompt_specification(self, input: PromptSpecification) -> Self
pub fn prompt_specification(self, input: PromptSpecification) -> Self
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with the OrderPizza intent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.
sourcepub fn set_prompt_specification(self, input: Option<PromptSpecification>) -> Self
pub fn set_prompt_specification(self, input: Option<PromptSpecification>) -> Self
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with the OrderPizza intent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 declination_response(self, input: ResponseSpecification) -> Self
pub fn declination_response(self, input: ResponseSpecification) -> Self
When the user answers "no" to the question defined in promptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.
sourcepub fn set_declination_response(
self,
input: Option<ResponseSpecification>
) -> Self
pub fn set_declination_response(
self,
input: Option<ResponseSpecification>
) -> Self
When the user answers "no" to the question defined in promptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 active(self, input: bool) -> Self
pub fn active(self, input: bool) -> Self
Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and declination responses aren't sent. If the active field isn't specified, the default is true.
sourcepub fn set_active(self, input: Option<bool>) -> Self
pub fn set_active(self, input: Option<bool>) -> Self
Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and declination responses aren't sent. If the active field isn't specified, the default is true.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 confirmation_response(self, input: ResponseSpecification) -> Self
pub fn confirmation_response(self, input: ResponseSpecification) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn set_confirmation_response(
self,
input: Option<ResponseSpecification>
) -> Self
pub fn set_confirmation_response(
self,
input: Option<ResponseSpecification>
) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 confirmation_next_step(self, input: DialogState) -> Self
pub fn confirmation_next_step(self, input: DialogState) -> Self
Specifies the next step that the bot executes when the customer confirms the intent.
sourcepub fn set_confirmation_next_step(self, input: Option<DialogState>) -> Self
pub fn set_confirmation_next_step(self, input: Option<DialogState>) -> Self
Specifies the next step that the bot executes when the customer confirms the intent.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 confirmation_conditional(self, input: ConditionalSpecification) -> Self
pub fn confirmation_conditional(self, input: ConditionalSpecification) -> Self
A list of conditional branches to evaluate after the intent is closed.
sourcepub fn set_confirmation_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
pub fn set_confirmation_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
A list of conditional branches to evaluate after the intent is closed.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 declination_next_step(self, input: DialogState) -> Self
pub fn declination_next_step(self, input: DialogState) -> Self
Specifies the next step that the bot executes when the customer declines the intent.
sourcepub fn set_declination_next_step(self, input: Option<DialogState>) -> Self
pub fn set_declination_next_step(self, input: Option<DialogState>) -> Self
Specifies the next step that the bot executes when the customer declines the intent.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 declination_conditional(self, input: ConditionalSpecification) -> Self
pub fn declination_conditional(self, input: ConditionalSpecification) -> Self
A list of conditional branches to evaluate after the intent is declined.
sourcepub fn set_declination_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
pub fn set_declination_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
A list of conditional branches to evaluate after the intent is declined.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 failure_response(self, input: ResponseSpecification) -> Self
pub fn failure_response(self, input: ResponseSpecification) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn set_failure_response(self, input: Option<ResponseSpecification>) -> Self
pub fn set_failure_response(self, input: Option<ResponseSpecification>) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 failure_next_step(self, input: DialogState) -> Self
pub fn failure_next_step(self, input: DialogState) -> Self
The next step to take in the conversation if the confirmation step fails.
sourcepub fn set_failure_next_step(self, input: Option<DialogState>) -> Self
pub fn set_failure_next_step(self, input: Option<DialogState>) -> Self
The next step to take in the conversation if the confirmation step fails.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 failure_conditional(self, input: ConditionalSpecification) -> Self
pub fn failure_conditional(self, input: ConditionalSpecification) -> Self
Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
sourcepub fn set_failure_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
pub fn set_failure_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 code_hook(self, input: DialogCodeHookInvocationSetting) -> Self
pub fn code_hook(self, input: DialogCodeHookInvocationSetting) -> Self
The DialogCodeHookInvocationSetting object associated with intent's confirmation step. The dialog code hook is triggered based on these invocation settings when the confirmation next step or declination next step or failure next step is InvokeDialogCodeHook.
sourcepub fn set_code_hook(
self,
input: Option<DialogCodeHookInvocationSetting>
) -> Self
pub fn set_code_hook(
self,
input: Option<DialogCodeHookInvocationSetting>
) -> Self
The DialogCodeHookInvocationSetting object associated with intent's confirmation step. The dialog code hook is triggered based on these invocation settings when the confirmation next step or declination next step or failure next step is InvokeDialogCodeHook.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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 elicitation_code_hook(
self,
input: ElicitationCodeHookInvocationSetting
) -> Self
pub fn elicitation_code_hook(
self,
input: ElicitationCodeHookInvocationSetting
) -> Self
The DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation prompt retries.
sourcepub fn set_elicitation_code_hook(
self,
input: Option<ElicitationCodeHookInvocationSetting>
) -> Self
pub fn set_elicitation_code_hook(
self,
input: Option<ElicitationCodeHookInvocationSetting>
) -> Self
The DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation prompt retries.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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) -> IntentConfirmationSetting
pub fn build(self) -> IntentConfirmationSetting
Consumes the builder and constructs a IntentConfirmationSetting.
Examples found in repository?
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233
pub(crate) fn deser_structure_crate_model_intent_confirmation_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::IntentConfirmationSetting>,
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::intent_confirmation_setting::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() {
"promptSpecification" => {
builder = builder.set_prompt_specification(
crate::json_deser::deser_structure_crate_model_prompt_specification(tokens)?
);
}
"declinationResponse" => {
builder = builder.set_declination_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"confirmationResponse" => {
builder = builder.set_confirmation_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"confirmationNextStep" => {
builder = builder.set_confirmation_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"confirmationConditional" => {
builder = builder.set_confirmation_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"declinationNextStep" => {
builder = builder.set_declination_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"declinationConditional" => {
builder = builder.set_declination_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"failureResponse" => {
builder = builder.set_failure_response(
crate::json_deser::deser_structure_crate_model_response_specification(tokens)?
);
}
"failureNextStep" => {
builder = builder.set_failure_next_step(
crate::json_deser::deser_structure_crate_model_dialog_state(
tokens,
)?,
);
}
"failureConditional" => {
builder = builder.set_failure_conditional(
crate::json_deser::deser_structure_crate_model_conditional_specification(tokens)?
);
}
"codeHook" => {
builder = builder.set_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_invocation_setting(tokens)?
);
}
"elicitationCodeHook" => {
builder = builder.set_elicitation_code_hook(
crate::json_deser::deser_structure_crate_model_elicitation_code_hook_invocation_setting(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",
),
),
}
}