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

The value of a slot.

See Also:

AWS * API Reference

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

The text of the utterance from the user that was entered for the slot.

*/ inline const Aws::String& GetOriginalValue() const{ return m_originalValue; } /** *

The text of the utterance from the user that was entered for the slot.

*/ inline bool OriginalValueHasBeenSet() const { return m_originalValueHasBeenSet; } /** *

The text of the utterance from the user that was entered for the slot.

*/ inline void SetOriginalValue(const Aws::String& value) { m_originalValueHasBeenSet = true; m_originalValue = value; } /** *

The text of the utterance from the user that was entered for the slot.

*/ inline void SetOriginalValue(Aws::String&& value) { m_originalValueHasBeenSet = true; m_originalValue = std::move(value); } /** *

The text of the utterance from the user that was entered for the slot.

*/ inline void SetOriginalValue(const char* value) { m_originalValueHasBeenSet = true; m_originalValue.assign(value); } /** *

The text of the utterance from the user that was entered for the slot.

*/ inline Value& WithOriginalValue(const Aws::String& value) { SetOriginalValue(value); return *this;} /** *

The text of the utterance from the user that was entered for the slot.

*/ inline Value& WithOriginalValue(Aws::String&& value) { SetOriginalValue(std::move(value)); return *this;} /** *

The text of the utterance from the user that was entered for the slot.

*/ inline Value& WithOriginalValue(const char* value) { SetOriginalValue(value); return *this;} /** *

The value that Amazon Lex V2 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 V2 * choose the first value in the resolvedValues list.

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

The value that Amazon Lex V2 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 V2 * choose the first value in the resolvedValues list.

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

The value that Amazon Lex V2 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 V2 * 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 V2 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 V2 * 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 V2 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 V2 * 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 V2 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 V2 * choose the first value in the resolvedValues list.

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

The value that Amazon Lex V2 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 V2 * choose the first value in the resolvedValues list.

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

The value that Amazon Lex V2 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 V2 * choose the first value in the resolvedValues list.

*/ inline Value& WithInterpretedValue(const char* value) { SetInterpretedValue(value); return *this;} /** *

A list of additional values that have been recognized for the slot.

*/ inline const Aws::Vector& GetResolvedValues() const{ return m_resolvedValues; } /** *

A list of additional values that have been recognized for the slot.

*/ inline bool ResolvedValuesHasBeenSet() const { return m_resolvedValuesHasBeenSet; } /** *

A list of additional values that have been recognized for the slot.

*/ inline void SetResolvedValues(const Aws::Vector& value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues = value; } /** *

A list of additional values that have been recognized for the slot.

*/ inline void SetResolvedValues(Aws::Vector&& value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues = std::move(value); } /** *

A list of additional values that have been recognized for the slot.

*/ inline Value& WithResolvedValues(const Aws::Vector& value) { SetResolvedValues(value); return *this;} /** *

A list of additional values that have been recognized for the slot.

*/ inline Value& WithResolvedValues(Aws::Vector&& value) { SetResolvedValues(std::move(value)); return *this;} /** *

A list of additional values that have been recognized for the slot.

*/ inline Value& AddResolvedValues(const Aws::String& value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues.push_back(value); return *this; } /** *

A list of additional values that have been recognized for the slot.

*/ inline Value& AddResolvedValues(Aws::String&& value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues.push_back(std::move(value)); return *this; } /** *

A list of additional values that have been recognized for the slot.

*/ inline Value& AddResolvedValues(const char* value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues.push_back(value); return *this; } private: Aws::String m_originalValue; bool m_originalValueHasBeenSet = false; Aws::String m_interpretedValue; bool m_interpretedValueHasBeenSet = false; Aws::Vector m_resolvedValues; bool m_resolvedValuesHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws