pub struct Builder { /* private fields */ }Expand description
A builder for FulfillmentCodeHookSettings.
Implementations§
source§impl Builder
impl Builder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Indicates whether a Lambda function should be invoked to fulfill a specific intent.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Indicates whether a Lambda function should be invoked to fulfill a specific intent.
Examples found in repository?
6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929
pub(crate) fn deser_structure_crate_model_fulfillment_code_hook_settings<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::FulfillmentCodeHookSettings>,
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::fulfillment_code_hook_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() {
"enabled" => {
builder = builder.set_enabled(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"postFulfillmentStatusSpecification" => {
builder = builder.set_post_fulfillment_status_specification(
crate::json_deser::deser_structure_crate_model_post_fulfillment_status_specification(tokens)?
);
}
"fulfillmentUpdatesSpecification" => {
builder = builder.set_fulfillment_updates_specification(
crate::json_deser::deser_structure_crate_model_fulfillment_updates_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => 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 post_fulfillment_status_specification(
self,
input: PostFulfillmentStatusSpecification
) -> Self
pub fn post_fulfillment_status_specification(
self,
input: PostFulfillmentStatusSpecification
) -> Self
Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
sourcepub fn set_post_fulfillment_status_specification(
self,
input: Option<PostFulfillmentStatusSpecification>
) -> Self
pub fn set_post_fulfillment_status_specification(
self,
input: Option<PostFulfillmentStatusSpecification>
) -> Self
Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
Examples found in repository?
6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929
pub(crate) fn deser_structure_crate_model_fulfillment_code_hook_settings<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::FulfillmentCodeHookSettings>,
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::fulfillment_code_hook_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() {
"enabled" => {
builder = builder.set_enabled(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"postFulfillmentStatusSpecification" => {
builder = builder.set_post_fulfillment_status_specification(
crate::json_deser::deser_structure_crate_model_post_fulfillment_status_specification(tokens)?
);
}
"fulfillmentUpdatesSpecification" => {
builder = builder.set_fulfillment_updates_specification(
crate::json_deser::deser_structure_crate_model_fulfillment_updates_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => 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 fulfillment_updates_specification(
self,
input: FulfillmentUpdatesSpecification
) -> Self
pub fn fulfillment_updates_specification(
self,
input: FulfillmentUpdatesSpecification
) -> Self
Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.
sourcepub fn set_fulfillment_updates_specification(
self,
input: Option<FulfillmentUpdatesSpecification>
) -> Self
pub fn set_fulfillment_updates_specification(
self,
input: Option<FulfillmentUpdatesSpecification>
) -> Self
Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.
Examples found in repository?
6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929
pub(crate) fn deser_structure_crate_model_fulfillment_code_hook_settings<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::FulfillmentCodeHookSettings>,
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::fulfillment_code_hook_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() {
"enabled" => {
builder = builder.set_enabled(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"postFulfillmentStatusSpecification" => {
builder = builder.set_post_fulfillment_status_specification(
crate::json_deser::deser_structure_crate_model_post_fulfillment_status_specification(tokens)?
);
}
"fulfillmentUpdatesSpecification" => {
builder = builder.set_fulfillment_updates_specification(
crate::json_deser::deser_structure_crate_model_fulfillment_updates_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => 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
Determines whether the fulfillment code hook is used. When active is false, the code hook doesn't run.
sourcepub fn set_active(self, input: Option<bool>) -> Self
pub fn set_active(self, input: Option<bool>) -> Self
Determines whether the fulfillment code hook is used. When active is false, the code hook doesn't run.
Examples found in repository?
6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929
pub(crate) fn deser_structure_crate_model_fulfillment_code_hook_settings<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::FulfillmentCodeHookSettings>,
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::fulfillment_code_hook_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() {
"enabled" => {
builder = builder.set_enabled(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"postFulfillmentStatusSpecification" => {
builder = builder.set_post_fulfillment_status_specification(
crate::json_deser::deser_structure_crate_model_post_fulfillment_status_specification(tokens)?
);
}
"fulfillmentUpdatesSpecification" => {
builder = builder.set_fulfillment_updates_specification(
crate::json_deser::deser_structure_crate_model_fulfillment_updates_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => 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) -> FulfillmentCodeHookSettings
pub fn build(self) -> FulfillmentCodeHookSettings
Consumes the builder and constructs a FulfillmentCodeHookSettings.
Examples found in repository?
6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929
pub(crate) fn deser_structure_crate_model_fulfillment_code_hook_settings<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::FulfillmentCodeHookSettings>,
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::fulfillment_code_hook_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() {
"enabled" => {
builder = builder.set_enabled(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"postFulfillmentStatusSpecification" => {
builder = builder.set_post_fulfillment_status_specification(
crate::json_deser::deser_structure_crate_model_post_fulfillment_status_specification(tokens)?
);
}
"fulfillmentUpdatesSpecification" => {
builder = builder.set_fulfillment_updates_specification(
crate::json_deser::deser_structure_crate_model_fulfillment_updates_specification(tokens)?
);
}
"active" => {
builder = builder.set_active(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => 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",
),
),
}
}