#[non_exhaustive]
pub struct PutSessionOutputBuilder { /* private fields */ }
Expand description

A builder for PutSessionOutput.

Implementations§

source§

impl PutSessionOutputBuilder

source

pub fn content_type(self, input: impl Into<String>) -> Self

Content type as specified in the Accept HTTP header in the request.

source

pub fn set_content_type(self, input: Option<String>) -> Self

Content type as specified in the Accept HTTP header in the request.

source

pub fn get_content_type(&self) -> &Option<String>

Content type as specified in the Accept HTTP header in the request.

source

pub fn intent_name(self, input: impl Into<String>) -> Self

The name of the current intent.

source

pub fn set_intent_name(self, input: Option<String>) -> Self

The name of the current intent.

source

pub fn get_intent_name(&self) -> &Option<String>

The name of the current intent.

source

pub fn slots(self, input: impl Into<String>) -> Self

Map of zero or more intent slots Amazon Lex detected from the user input during the conversation.

Amazon Lex creates a resolution list containing likely values for a slot. The value that it returns is determined by the valueSelectionStrategy selected when the slot type was created or updated. If valueSelectionStrategy is set to ORIGINAL_VALUE, the value provided by the user is returned, if the user value is similar to the slot values. If valueSelectionStrategy is set to TOP_RESOLUTION Amazon Lex returns the first value in the resolution list or, if there is no resolution list, null. If you don't specify a valueSelectionStrategy the default is ORIGINAL_VALUE.

source

pub fn set_slots(self, input: Option<String>) -> Self

Map of zero or more intent slots Amazon Lex detected from the user input during the conversation.

Amazon Lex creates a resolution list containing likely values for a slot. The value that it returns is determined by the valueSelectionStrategy selected when the slot type was created or updated. If valueSelectionStrategy is set to ORIGINAL_VALUE, the value provided by the user is returned, if the user value is similar to the slot values. If valueSelectionStrategy is set to TOP_RESOLUTION Amazon Lex returns the first value in the resolution list or, if there is no resolution list, null. If you don't specify a valueSelectionStrategy the default is ORIGINAL_VALUE.

source

pub fn get_slots(&self) -> &Option<String>

Map of zero or more intent slots Amazon Lex detected from the user input during the conversation.

Amazon Lex creates a resolution list containing likely values for a slot. The value that it returns is determined by the valueSelectionStrategy selected when the slot type was created or updated. If valueSelectionStrategy is set to ORIGINAL_VALUE, the value provided by the user is returned, if the user value is similar to the slot values. If valueSelectionStrategy is set to TOP_RESOLUTION Amazon Lex returns the first value in the resolution list or, if there is no resolution list, null. If you don't specify a valueSelectionStrategy the default is ORIGINAL_VALUE.

source

pub fn session_attributes(self, input: impl Into<String>) -> Self

Map of key/value pairs representing session-specific context information.

source

pub fn set_session_attributes(self, input: Option<String>) -> Self

Map of key/value pairs representing session-specific context information.

source

pub fn get_session_attributes(&self) -> &Option<String>

Map of key/value pairs representing session-specific context information.

source

pub fn message(self, input: impl Into<String>) -> Self

👎Deprecated: The message field is deprecated, use the encodedMessage field instead. The message field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales.

The next message that should be presented to the user.

You can only use this field in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other locales, the message field is null. You should use the encodedMessage field instead.

source

pub fn set_message(self, input: Option<String>) -> Self

👎Deprecated: The message field is deprecated, use the encodedMessage field instead. The message field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales.

The next message that should be presented to the user.

You can only use this field in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other locales, the message field is null. You should use the encodedMessage field instead.

source

pub fn get_message(&self) -> &Option<String>

👎Deprecated: The message field is deprecated, use the encodedMessage field instead. The message field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales.

The next message that should be presented to the user.

You can only use this field in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other locales, the message field is null. You should use the encodedMessage field instead.

source

pub fn encoded_message(self, input: impl Into<String>) -> Self

The next message that should be presented to the user.

The encodedMessage field is base-64 encoded. You must decode the field before you can use the value.

source

pub fn set_encoded_message(self, input: Option<String>) -> Self

The next message that should be presented to the user.

The encodedMessage field is base-64 encoded. You must decode the field before you can use the value.

source

pub fn get_encoded_message(&self) -> &Option<String>

The next message that should be presented to the user.

The encodedMessage field is base-64 encoded. You must decode the field before you can use the value.

source

pub fn message_format(self, input: MessageFormatType) -> Self

The format of the response message. One of the following values:

  • PlainText - The message contains plain UTF-8 text.

  • CustomPayload - The message is a custom format for the client.

  • SSML - The message contains text formatted for voice output.

  • Composite - The message contains an escaped JSON object containing one or more messages from the groups that messages were assigned to when the intent was created.

source

pub fn set_message_format(self, input: Option<MessageFormatType>) -> Self

The format of the response message. One of the following values:

  • PlainText - The message contains plain UTF-8 text.

  • CustomPayload - The message is a custom format for the client.

  • SSML - The message contains text formatted for voice output.

  • Composite - The message contains an escaped JSON object containing one or more messages from the groups that messages were assigned to when the intent was created.

source

pub fn get_message_format(&self) -> &Option<MessageFormatType>

The format of the response message. One of the following values:

  • PlainText - The message contains plain UTF-8 text.

  • CustomPayload - The message is a custom format for the client.

  • SSML - The message contains text formatted for voice output.

  • Composite - The message contains an escaped JSON object containing one or more messages from the groups that messages were assigned to when the intent was created.

source

pub fn dialog_state(self, input: DialogState) -> Self

  • ConfirmIntent - Amazon Lex is expecting a "yes" or "no" response to confirm the intent before fulfilling an intent.

  • ElicitIntent - Amazon Lex wants to elicit the user's intent.

  • ElicitSlot - Amazon Lex is expecting the value of a slot for the current intent.

  • Failed - Conveys that the conversation with the user has failed. This can happen for various reasons, including the user does not provide an appropriate response to prompts from the service, or if the Lambda function fails to fulfill the intent.

  • Fulfilled - Conveys that the Lambda function has sucessfully fulfilled the intent.

  • ReadyForFulfillment - Conveys that the client has to fulfill the intent.

source

pub fn set_dialog_state(self, input: Option<DialogState>) -> Self

  • ConfirmIntent - Amazon Lex is expecting a "yes" or "no" response to confirm the intent before fulfilling an intent.

  • ElicitIntent - Amazon Lex wants to elicit the user's intent.

  • ElicitSlot - Amazon Lex is expecting the value of a slot for the current intent.

  • Failed - Conveys that the conversation with the user has failed. This can happen for various reasons, including the user does not provide an appropriate response to prompts from the service, or if the Lambda function fails to fulfill the intent.

  • Fulfilled - Conveys that the Lambda function has sucessfully fulfilled the intent.

  • ReadyForFulfillment - Conveys that the client has to fulfill the intent.

source

pub fn get_dialog_state(&self) -> &Option<DialogState>

  • ConfirmIntent - Amazon Lex is expecting a "yes" or "no" response to confirm the intent before fulfilling an intent.

  • ElicitIntent - Amazon Lex wants to elicit the user's intent.

  • ElicitSlot - Amazon Lex is expecting the value of a slot for the current intent.

  • Failed - Conveys that the conversation with the user has failed. This can happen for various reasons, including the user does not provide an appropriate response to prompts from the service, or if the Lambda function fails to fulfill the intent.

  • Fulfilled - Conveys that the Lambda function has sucessfully fulfilled the intent.

  • ReadyForFulfillment - Conveys that the client has to fulfill the intent.

source

pub fn slot_to_elicit(self, input: impl Into<String>) -> Self

If the dialogState is ElicitSlot, returns the name of the slot for which Amazon Lex is eliciting a value.

source

pub fn set_slot_to_elicit(self, input: Option<String>) -> Self

If the dialogState is ElicitSlot, returns the name of the slot for which Amazon Lex is eliciting a value.

source

pub fn get_slot_to_elicit(&self) -> &Option<String>

If the dialogState is ElicitSlot, returns the name of the slot for which Amazon Lex is eliciting a value.

source

pub fn audio_stream(self, input: ByteStream) -> Self

The audio version of the message to convey to the user.

source

pub fn set_audio_stream(self, input: Option<ByteStream>) -> Self

The audio version of the message to convey to the user.

source

pub fn get_audio_stream(&self) -> &Option<ByteStream>

The audio version of the message to convey to the user.

source

pub fn session_id(self, input: impl Into<String>) -> Self

A unique identifier for the session.

source

pub fn set_session_id(self, input: Option<String>) -> Self

A unique identifier for the session.

source

pub fn get_session_id(&self) -> &Option<String>

A unique identifier for the session.

source

pub fn active_contexts(self, input: impl Into<String>) -> Self

A list of active contexts for the session.

source

pub fn set_active_contexts(self, input: Option<String>) -> Self

A list of active contexts for the session.

source

pub fn get_active_contexts(&self) -> &Option<String>

A list of active contexts for the session.

source

pub fn build(self) -> PutSessionOutput

Consumes the builder and constructs a PutSessionOutput.

Trait Implementations§

source§

impl Debug for PutSessionOutputBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PutSessionOutputBuilder

source§

fn default() -> PutSessionOutputBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more