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

Override settings to configure the intent state.

See Also:

* AWS * API Reference

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

The name of the intent. Only required when you're switching intents.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the intent. Only required when you're switching intents.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the intent. Only required when you're switching intents.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the intent. Only required when you're switching intents.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the intent. Only required when you're switching intents.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the intent. Only required when you're switching intents.

*/ inline IntentOverride& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the intent. Only required when you're switching intents.

*/ inline IntentOverride& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the intent. Only required when you're switching intents.

*/ inline IntentOverride& WithName(const char* value) { SetName(value); return *this;} /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline const Aws::Map& GetSlots() const{ return m_slots; } /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; } /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline void SetSlots(const Aws::Map& value) { m_slotsHasBeenSet = true; m_slots = value; } /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline void SetSlots(Aws::Map&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); } /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline IntentOverride& WithSlots(const Aws::Map& value) { SetSlots(value); return *this;} /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline IntentOverride& WithSlots(Aws::Map&& value) { SetSlots(std::move(value)); return *this;} /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline IntentOverride& AddSlots(const Aws::String& key, const SlotValueOverride& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; } /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline IntentOverride& AddSlots(Aws::String&& key, const SlotValueOverride& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), value); return *this; } /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline IntentOverride& AddSlots(const Aws::String& key, SlotValueOverride&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; } /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline IntentOverride& AddSlots(Aws::String&& key, SlotValueOverride&& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline IntentOverride& AddSlots(const char* key, SlotValueOverride&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; } /** *

A map of all of the slot value overrides for the intent. The name of the slot * maps to the value of the slot. Slots that are not included in the map aren't * overridden.

*/ inline IntentOverride& AddSlots(const char* key, const SlotValueOverride& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_slots; bool m_slotsHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws