/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A value that Amazon Lex V2 uses to fulfill an intent. See
* Also:
AWS
* API Reference
The current value of the slot.
*/ inline const Value& 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 Value& value) { m_valueHasBeenSet = true; m_value = value; } /** *The current value of the slot.
*/ inline void SetValue(Value&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The current value of the slot.
*/ inline Slot& WithValue(const Value& value) { SetValue(value); return *this;} /** *The current value of the slot.
*/ inline Slot& WithValue(Value&& value) { SetValue(std::move(value)); return *this;} /** *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.
A list of one or more values that the user provided for the slot. For * example, if a 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, if a 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, if a 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, if a 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, if a for a slot that elicits pizza toppings, the values might be * "pepperoni" and "pineapple."
*/ inline Slot& WithValues(const Aws::VectorA list of one or more values that the user provided for the slot. For * example, if a for a slot that elicits pizza toppings, the values might be * "pepperoni" and "pineapple."
*/ inline Slot& WithValues(Aws::VectorA list of one or more values that the user provided for the slot. For * example, if a for a slot that elicits pizza toppings, the values might be * "pepperoni" and "pineapple."
*/ inline Slot& AddValues(const Slot& 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, if a for a slot that elicits pizza toppings, the values might be * "pepperoni" and "pineapple."
*/ inline Slot& AddValues(Slot&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *The constituent sub slots of a composite slot.
*/ inline const Aws::MapThe constituent sub slots of a composite slot.
*/ inline bool SubSlotsHasBeenSet() const { return m_subSlotsHasBeenSet; } /** *The constituent sub slots of a composite slot.
*/ inline void SetSubSlots(const Aws::MapThe constituent sub slots of a composite slot.
*/ inline void SetSubSlots(Aws::MapThe constituent sub slots of a composite slot.
*/ inline Slot& WithSubSlots(const Aws::MapThe constituent sub slots of a composite slot.
*/ inline Slot& WithSubSlots(Aws::MapThe constituent sub slots of a composite slot.
*/ inline Slot& AddSubSlots(const Aws::String& key, const Slot& value) { m_subSlotsHasBeenSet = true; m_subSlots.emplace(key, value); return *this; } /** *The constituent sub slots of a composite slot.
*/ inline Slot& AddSubSlots(Aws::String&& key, const Slot& value) { m_subSlotsHasBeenSet = true; m_subSlots.emplace(std::move(key), value); return *this; } /** *The constituent sub slots of a composite slot.
*/ inline Slot& AddSubSlots(const Aws::String& key, Slot&& value) { m_subSlotsHasBeenSet = true; m_subSlots.emplace(key, std::move(value)); return *this; } /** *The constituent sub slots of a composite slot.
*/ inline Slot& AddSubSlots(Aws::String&& key, Slot&& value) { m_subSlotsHasBeenSet = true; m_subSlots.emplace(std::move(key), std::move(value)); return *this; } /** *The constituent sub slots of a composite slot.
*/ inline Slot& AddSubSlots(const char* key, Slot&& value) { m_subSlotsHasBeenSet = true; m_subSlots.emplace(key, std::move(value)); return *this; } /** *The constituent sub slots of a composite slot.
*/ inline Slot& AddSubSlots(const char* key, const Slot& value) { m_subSlotsHasBeenSet = true; m_subSlots.emplace(key, value); return *this; } private: Value m_value; bool m_valueHasBeenSet = false; Shape m_shape; bool m_shapeHasBeenSet = false; Aws::Vector