/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { /** *

The value to set in a slot.

See Also:

AWS * API Reference

*/ class SlotValue { public: AWS_LEXMODELSV2_API SlotValue(); AWS_LEXMODELSV2_API SlotValue(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API SlotValue& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The value that Amazon Lex determines for the slot. The actual value depends * on the setting of the value selection strategy for the bot. You can choose to * use the value entered by the user, or you can have Amazon Lex choose the first * value in the resolvedValues list.

*/ inline const Aws::String& GetInterpretedValue() const{ return m_interpretedValue; } /** *

The value that Amazon Lex determines for the slot. The actual value depends * on the setting of the value selection strategy for the bot. You can choose to * use the value entered by the user, or you can have Amazon Lex choose the first * value in the resolvedValues list.

*/ inline bool InterpretedValueHasBeenSet() const { return m_interpretedValueHasBeenSet; } /** *

The value that Amazon Lex determines for the slot. The actual value depends * on the setting of the value selection strategy for the bot. You can choose to * use the value entered by the user, or you can have Amazon Lex choose the first * value in the resolvedValues list.

*/ inline void SetInterpretedValue(const Aws::String& value) { m_interpretedValueHasBeenSet = true; m_interpretedValue = value; } /** *

The value that Amazon Lex determines for the slot. The actual value depends * on the setting of the value selection strategy for the bot. You can choose to * use the value entered by the user, or you can have Amazon Lex choose the first * value in the resolvedValues list.

*/ inline void SetInterpretedValue(Aws::String&& value) { m_interpretedValueHasBeenSet = true; m_interpretedValue = std::move(value); } /** *

The value that Amazon Lex determines for the slot. The actual value depends * on the setting of the value selection strategy for the bot. You can choose to * use the value entered by the user, or you can have Amazon Lex choose the first * value in the resolvedValues list.

*/ inline void SetInterpretedValue(const char* value) { m_interpretedValueHasBeenSet = true; m_interpretedValue.assign(value); } /** *

The value that Amazon Lex determines for the slot. The actual value depends * on the setting of the value selection strategy for the bot. You can choose to * use the value entered by the user, or you can have Amazon Lex choose the first * value in the resolvedValues list.

*/ inline SlotValue& WithInterpretedValue(const Aws::String& value) { SetInterpretedValue(value); return *this;} /** *

The value that Amazon Lex determines for the slot. The actual value depends * on the setting of the value selection strategy for the bot. You can choose to * use the value entered by the user, or you can have Amazon Lex choose the first * value in the resolvedValues list.

*/ inline SlotValue& WithInterpretedValue(Aws::String&& value) { SetInterpretedValue(std::move(value)); return *this;} /** *

The value that Amazon Lex determines for the slot. The actual value depends * on the setting of the value selection strategy for the bot. You can choose to * use the value entered by the user, or you can have Amazon Lex choose the first * value in the resolvedValues list.

*/ inline SlotValue& WithInterpretedValue(const char* value) { SetInterpretedValue(value); return *this;} private: Aws::String m_interpretedValue; bool m_interpretedValueHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws