Struct aws_sdk_lexmodelsv2::model::slot_summary::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for SlotSummary.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_slot_id(self, input: Option<String>) -> Self
pub fn set_slot_id(self, input: Option<String>) -> Self
The unique identifier of the slot.
sourcepub fn set_slot_name(self, input: Option<String>) -> Self
pub fn set_slot_name(self, input: Option<String>) -> Self
The name given to the slot.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the slot.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the slot.
sourcepub fn slot_constraint(self, input: SlotConstraint) -> Self
pub fn slot_constraint(self, input: SlotConstraint) -> Self
Whether the slot is required or optional. An intent is complete when all required slots are filled.
sourcepub fn set_slot_constraint(self, input: Option<SlotConstraint>) -> Self
pub fn set_slot_constraint(self, input: Option<SlotConstraint>) -> Self
Whether the slot is required or optional. An intent is complete when all required slots are filled.
sourcepub fn slot_type_id(self, input: impl Into<String>) -> Self
pub fn slot_type_id(self, input: impl Into<String>) -> Self
The unique identifier for the slot type that defines the values for the slot.
sourcepub fn set_slot_type_id(self, input: Option<String>) -> Self
pub fn set_slot_type_id(self, input: Option<String>) -> Self
The unique identifier for the slot type that defines the values for the slot.
sourcepub fn value_elicitation_prompt_specification(
self,
input: PromptSpecification
) -> Self
pub fn value_elicitation_prompt_specification(
self,
input: PromptSpecification
) -> Self
Prompts that are sent to the user to elicit a value for the slot.
sourcepub fn set_value_elicitation_prompt_specification(
self,
input: Option<PromptSpecification>
) -> Self
pub fn set_value_elicitation_prompt_specification(
self,
input: Option<PromptSpecification>
) -> Self
Prompts that are sent to the user to elicit a value for the slot.
sourcepub fn last_updated_date_time(self, input: DateTime) -> Self
pub fn last_updated_date_time(self, input: DateTime) -> Self
The timestamp of the last date and time that the slot was updated.
sourcepub fn set_last_updated_date_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_date_time(self, input: Option<DateTime>) -> Self
The timestamp of the last date and time that the slot was updated.
sourcepub fn build(self) -> SlotSummary
pub fn build(self) -> SlotSummary
Consumes the builder and constructs a SlotSummary.