/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The slot values that Amazon Lex uses when it sets slot values in a dialog
* step.See Also:
AWS
* API Reference
When the shape value is List
, it indicates that the
* values
field contains a list of slot values. When the value is
* Scalar
, it indicates that the value
field contains a
* single value.
When the shape value is List
, it indicates that the
* values
field contains a list of slot values. When the value is
* Scalar
, it indicates that the value
field contains a
* single value.
When the shape value is List
, it indicates that the
* values
field contains a list of slot values. When the value is
* Scalar
, it indicates that the value
field contains a
* single value.
When the shape value is List
, it indicates that the
* values
field contains a list of slot values. When the value is
* Scalar
, it indicates that the value
field contains a
* single value.
When the shape value is List
, it indicates that the
* values
field contains a list of slot values. When the value is
* Scalar
, it indicates that the value
field contains a
* single value.
When the shape value is List
, it indicates that the
* values
field contains a list of slot values. When the value is
* Scalar
, it indicates that the value
field contains a
* single value.
The current value of the slot.
*/ inline const SlotValue& GetValue() const{ return m_value; } /** *The current value of the slot.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The current value of the slot.
*/ inline void SetValue(const SlotValue& value) { m_valueHasBeenSet = true; m_value = value; } /** *The current value of the slot.
*/ inline void SetValue(SlotValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The current value of the slot.
*/ inline SlotValueOverride& WithValue(const SlotValue& value) { SetValue(value); return *this;} /** *The current value of the slot.
*/ inline SlotValueOverride& WithValue(SlotValue&& value) { SetValue(std::move(value)); return *this;} /** *A list of one or more values that the user provided for the slot. For * example, for a slot that elicits pizza toppings, the values might be "pepperoni" * and "pineapple."
*/ inline const Aws::VectorA list of one or more values that the user provided for the slot. For * example, for a slot that elicits pizza toppings, the values might be "pepperoni" * and "pineapple."
*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *A list of one or more values that the user provided for the slot. For * example, for a slot that elicits pizza toppings, the values might be "pepperoni" * and "pineapple."
*/ inline void SetValues(const Aws::VectorA list of one or more values that the user provided for the slot. For * example, for a slot that elicits pizza toppings, the values might be "pepperoni" * and "pineapple."
*/ inline void SetValues(Aws::VectorA list of one or more values that the user provided for the slot. For * example, for a slot that elicits pizza toppings, the values might be "pepperoni" * and "pineapple."
*/ inline SlotValueOverride& WithValues(const Aws::VectorA list of one or more values that the user provided for the slot. For * example, for a slot that elicits pizza toppings, the values might be "pepperoni" * and "pineapple."
*/ inline SlotValueOverride& WithValues(Aws::VectorA list of one or more values that the user provided for the slot. For * example, for a slot that elicits pizza toppings, the values might be "pepperoni" * and "pineapple."
*/ inline SlotValueOverride& AddValues(const SlotValueOverride& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *A list of one or more values that the user provided for the slot. For * example, for a slot that elicits pizza toppings, the values might be "pepperoni" * and "pineapple."
*/ inline SlotValueOverride& AddValues(SlotValueOverride&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } private: SlotShape m_shape; bool m_shapeHasBeenSet = false; SlotValue m_value; bool m_valueHasBeenSet = false; Aws::Vector